Our public website made by members.
Go to file
2024-02-16 18:52:58 +01:00
app new times pick-up and intro 2024-02-16 18:52:58 +01:00
gulp/templates Completed automatic sprite generation (not logo and icon-1) 2020-10-21 17:43:28 +02:00
.gitignore dutch index and en version 2020-11-24 17:56:41 +01:00
compose.yml Revert "Remove compose config out of repo" 2021-05-22 09:00:41 +02:00
Dockerfile Use serve instead 2020-11-25 09:33:31 +01:00
gulpfile.js more info on the website and how it works 2021-05-26 11:53:59 +02:00
makefile fix: and reset context 2023-03-08 01:11:03 +01:00
package-lock.json README pass & new lock file (node v14) 2023-02-27 20:15:08 +01:00
package.json everything moved in app 2021-05-26 10:55:18 +02:00
README.md "auto-deploy" 2023-02-28 11:10:10 +01:00
webpack.config.js Run formatter, work out README further 2020-11-23 10:57:52 +01:00

biobulkbende.org

biobulkbende.org

Our public website made by members.

Hacking

  • Make sure you have installed git, node (v14 LTS) and npm
  • Clone this repo: git clone https://github.com/biobulkbende/biobulkbende.org
  • From within the folder install all packages: npm install
  • Run gulp for automation: gulp watch

Deployment

(You need to be a member of the systems workgroup to do this).

make

Structure

The website is served from the folder /app. The folder /assets is only for development while the folder /bundle contains the files linked to index.html and /en/index.html

HTML

There are two pages:

  • index.html (Dutch)
  • /en/index.html (English)

Changes to the text can be done directly to these files without having to run any automation.

(S)CSS

The CSS files to be changed are stored in /assets/scss which contains:

  • /base (global CSS declarations)
  • /modules (specific CSS declarations)

The CSS is written in SCSS and after changing it must be compiled and bundled together. The command gulp watch runs automation and make sure that when you save the change in automatic everything is compiled and bundled. The final file is stored in /bundle/styles and provide the CSS to index.html and /en/index.html.

JS

The JS files to be changed are stored in assets/js/modules. The JS is written in ES6 and after changing it must be compiled in ES5 and bundled together. The command gulp watch runs automation and make sure that when you save the change in automatic everything is compiled and bundled. The final file is stored in /bundle/scripts and provide the JS to index.html and /en/index.html.

Media

The media are stored in /assets/media containing:

  • Icons
  • Fonts
  • Images

Icons are compressed in a sprite through the command gulp icons. (This is complicated as it generates a single sprite with all the icons together and a CSS which points at the right icon in the sprite). After this command automation for the CSS must be run.

Images are minified through the command gulp images. All the media are copied with the command gulp copyMediaInBundle (it also minified the images) into the folder /bundle/media which provide the media to index.html and /en/index.html.

If you want to change an Image you have to put it in /assets/media/images and run gulp copyMediaInBundle. The html must refer to the image that has been copied and minified in /bundle/media/images.

Video

The video is stored on vimeo.