Name: aito-website
Owner: Futurice
Description: null
Created: 2018-01-24 18:07:34.0
Updated: 2018-03-27 08:30:12.0
Pushed: 2018-03-27 08:30:10.0
Homepage: null
Size: 51322
Language: CSS
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
This is a first MVP for aito project. Here I will describe the architecture foe the website in static mode:
For budlig I am usig: https://www.sitepoint.com/bundle-static-site-webpack/ this is a guide for webpack. this is specifically for webpack 4
npm i webpack –save-dev npm i webpack-cli –save-dev
cofigured the file as in: https://www.valentinog.com/blog/webpack-4-tutorial/
I did pm istall jquery to load jquery
Favicis: https://scotch.io/tutorials/all-favicons-for-all-devices-and-sizes https://css-tricks.com/favicon-quiz/
For styles we are usig sass ad postcss for style compilation.
Onlie guides:
Usig reset: https://www.webpagefx.com/blog/web-design/should-you-reset-your-css/
Centering: https://css-tricks.com/centering-css-complete-guide/
SASS architecture: https://www.sitepoint.com/architecture-in-sass/ http://matthewelsom.com/blog/simple-scss-playbook.html https://scotch.io/tutorials/aesthetic-sass-1-architecture-and-style-organization#architecture https://medium.com/@elad/css-architecture-for-multiple-websites-with-sass-7e923fc53f7a http://matthewelsom.com/blog/simple-scss-playbook.html
Image processing:
This app uses ImageMagic for resizig icomig images.
You ca read more about it i a SmashigMagazie blog post: https://www.smashingmagazine.com/2015/06/efficient-image-resizing-with-imagemagick/
If you want to optimize a image for assests, do the following:
Mac OS
- Install Homebrew
- Install ImageMagic via Homebrew: brew install imagemagick
- Now you have a CLI for ImageMagic image processig
- run this commad
magick mogrify -path OUTPUT_DIRECTORY(TEST/) -filter Triangle -define filter:support=2 -thumbnail OUTPUT_SIZE -unsharp 0.25x0.08+8.3+0.045 -dither None -posterize 136 -quality 82 -define jpeg:fancy-upsampling=off -define png:compression-filter=5 -define png:compression-level=9 -define png:compression-strategy=1 -define png:exclude-chunk=all -interlace none -colorspace sRGB IPUT_IMAGE
usually it will be somethin like:
magick mogrify -path OUTPUT_DIRECTORY(TEST/) -filter Triangle -define filter:support=2 -thumbnail OUTPUT_SIZE -unsharp 0.25x0.08+8.3+0.045 -dither None -posterize 136 -quality 82 -define jpeg:fancy-upsampling=off -define png:compression-filter=5 -define png:compression-level=9 -define png:compression-strategy=1 -define png:exclude-chunk=all -interlace none -colorspace sRGB IPUT_IMAGE
currently script image-magick does this in a build directory.
For animatios we might use:
This is somethig cool: https://tympanus.net/Tutorials/NaturalLanguageForm/