Code Monkey home page Code Monkey logo

fossi-foundation-web's Introduction

www.fossi-foundation.org website sources

This repository contains the source code for the fossi-foundation.org website. The site is built using Nuxt and Nuxt Content and deployed to Netlify. Most content is written in Markdown for easier editing, with the full power of Vue available for advanced use cases.

Contributing content

To contribute content to the website you don't need any local development setup: edit any Markdown file in the content directory and open a pull request -- you'll get a preview build of the full website as part of the pull request.

You can add new Markdown files within the existing directories in content which will show up as sub-page without further configuration.

In addition to plain Markdown, you can make use of pre-defined components from the style guide using the MDC syntax. Look for existing pages using the :: syntax for inspiration.

Contributing more than content

To dive deeper into the website development you need a local development environment, either through a VS Code Dev Container, or through a native Node.js installation.

Option 1: Local installation

Make sure that you have installed the following tools on your local machine.

  • Node.js 18 (LTS). Other versions of Node.js might work, but also break occasionally. Using a LTS version is strongly recommended.
  • Yarn
yarn install

# Start the development server on http://localhost:3000
# (Setting HOST is not strictly required, but helps if the HOST environment
# variable has a strange value.)
HOST=localhost yarn dev

# Build the application for production:
yarn run build

# Locally preview production build:
yarn run preview

Option 2: VS Code Dev Container

  • Open with Visual Studio Code with "Dev Containers" extension installed.
  • After opening the repo, it will ask you if you want to reopen in container, which you want.
  • Run above commands or run debug target "server: nuxt"

Design

The website design follows the the FOSSi Foundation style guide. Make sure that changes to the design are also reflected in the style guide, where necessary.

Further topics

Icons

We use icons from Font Awesome Brands and Phosphor Icons. To keep the bundle size low all icons have to be explicitly imported in a template.

Here's an example.vue component:

<script setup>
import IconFabLinkedinIn from '~icons/fa6-brands/linkedin-in'
</script>

<template>
  <div>
    <IconFabLinkedinIn/>
  </div>
</template>

You can use https://icones.js.org/collection/ph and https://icones.js.org/collection/fa6-brands to efficiently search for suitable icons.

License

Text content is licensed under CC BY 4.0, "software" (JavaScript, HTML, CSS, etc.) is MIT-licensed. See LICENSE for details.

fossi-foundation-web's People

Contributors

imphil avatar olofk avatar jbalkind avatar ghalfacree avatar fabianschuiki avatar donn avatar vikashsprem avatar dependabot[bot] avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.