GithubHelp home page GithubHelp logo

printpagestopdf / klimawende-prototype Goto Github PK

View Code? Open in Web Editor NEW

This project forked from zoff-kollektiv/klimawende-prototype

0.0 2.0 0.0 9.18 MB

Home Page: https://klimawende-prototype.netlify.com

License: MIT License

JavaScript 61.04% CSS 38.96%

klimawende-prototype's Introduction

Klimawende von unten - Prototype

Structure

  • data/ data for the prototype, which are passed into components, templates and pages later on. All json files are also added to the GraphQL API.
  • lib/ helper functions for the build process
  • public/ and .cache/ are Gatsby specific and contain all compiled files
  • src/
    • src/components all React components, which are shared across pages
    • src/pages all files and folders in this directory are used to create the accessible routes of the prototype
    • src/templates templates are similar to pages, except they represent dynamic pages (such as projects)
    • src/_mixins.scss SASS mixins
    • src/_variables.scss SASS variables (fonts, colors ...)
    • src/style.scss entry file for the compiled CSS file, which contains all styles
  • static/ static files, such as images and fonts
    • static/json/ geoJSON and topoJSON files, used to render the map. The federal states of Germany were pulled from here.
  • webpack.config.js webpack configuration for the extra CSS build step, which generates a CSS file in public containing all CSS used in components

Components

Some components bring their own documentation:

Develop

The prototype is based on Gatsby, a very flexible static site generator.

After you checked out the repository, you have to install dependencies

npm install

Afterwards you are able to start the development server.

npm run develop

The prototype is now running on localhost:8000.

Production

Running

npm run build

will build the static site into one single folder, which can then be served by any webserver.

Static styles & JavaScript

Through an additional build step, two additional files are created:

  • style.css Contains all styles in a single file
  • bundle.js Contains all the transpiled JS in a single file

klimawende-prototype's People

Watchers

 avatar  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.