Skip to content
Snippets Groups Projects
Select Git revision
  • readme-calendar
  • master default protected
  • marcjeanmougin-master-patch-26012
  • CRogers-master-patch-59295
  • fun-import-fix
  • wikidata-activity-published
6 results

marketing-site

  • Clone with SSH
  • Clone with HTTPS
  • Farhaan Bukhsh's avatar
    Farhaan Bukhsh authored
    Because of the move to MFE the link cannot be reached, hence
    the link is swaped with the about link instead of the MFE link.
    
    Signed-off-by: default avatarFarhaan Bukhsh <farhaan@opencraft.com>
    ee5f5de0
    History
    Code owners
    Assign users and groups as approvers for specific file changes. Learn more.

    MOOC FLOSS Marketing Site

    Installation

    This project uses SvelteKit to generate a static site for the MOOC FLOSS course.

    Note: Make sure you are using Node >= 14

    Install dependencies from the marketing site folder using NPM:

    $ npm install

    Development

    For convenience, there's a .tmuxinator.yml.example file that can be used to quickly bring up a full dev environment with a single command. Install tmuxinator, copy the example config, and then run tmuxinator in the root of this project:

    $ brew install tmuxinator
    
    $ cp .tmuxinator.yml{.example,}
    
    $ tmuxinator

    Or, you can run the project manually:

    npm run dev
    
    # or start the server and open the app in a new browser tab
    npm run dev -- --open

    Changelog-friendly commit messages

    For creating changelog-friendly commits, you can use npm run commit once changes are staged. This will use commitizen to prompt you for information about your commits.

    SVGs

    Different vector creation tools generate vectors differently. To account for this, SVGs that are imported using sveltekit-svg have a few transforms applied to them (see svelte.config.js):

    • IDs are removed from svg elements to fix accessibility issues with multiple IDs with the same value rendered in the document
    • width attributes are added to svg elements to ensure SVGs are by default rendered at their native dimensions

    Building

    npm run build

    Sass and PostCSS

    This projects uses Sass to build styles, and uses PostCSS for the following features:

    • support for legacy browsers via autoprefixer
    • support for CSS logical properties via postcss-logical
    • support for CSS custom properties via postcss-custom-properties

    SVG Sprite

    An SVG Sprite is built into ./src/assets/img/sprite/build before building and during development when files in ./src/assets/img/svg/sprite change. See package.json for svg scripts.

    CI / CD

    Changes to any files in ./marketing-site will trigger a pipeline in GitLab. Previews of the marketing site are built for every pipeline, and are accessible via [https://mooc-floss.gitlab.io/mooc-floss/:pipeline_id]. Please see the pipeline logs for output.

    The following files are used for builds and deployments: