diff --git a/README.md b/README.md index 0b9b059..26e12ba 100644 --- a/README.md +++ b/README.md @@ -43,10 +43,10 @@ All the template layout must be in a single `*.hbs` file that located in `/src` ### Data -In `/data` folder, you can find multiple `*.json` files. +You will find multiple `*.json` files in `/data` folder after the first run of `npm start`. These files are used as data sources in layout. By reviewing these files you can understand what parameters you have and -how the data is stored. +how the data is stored. Don't change or edit these files - use the data as it is. There are multiple data sources since the block can be reused in different situations with different data. We have to make sure that the block is always rendered properly. @@ -73,10 +73,32 @@ aspect ratio. ### Global Styling -The development environment includes CSS rules of the original project. The CSS file is embedded in served HTML. +The development environment includes CSS rules of the original project. This is including fonts, CSS variables, +container logic etc... + +The CSS file is embedded in served HTML. + +# JavaScript + +## Sliders + +For any kind of slides animations - use [SwiperJS](https://swiperjs.com/get-started). + +The lib is included in the project and ready for use. Test with `window.Swiper` in browser console. # Testing ## Development Toolbar Use development toolbar to switch between data sources and test responsiveness of block. + +## Pixel Perfect Test + +Compare the final result with provided screenshots. + +You can use +available [Browser Extensions](https://chrome.google.com/webstore/detail/perfectpixel-by-welldonec/dkaagdgjmgdmbnecmcefdhjekcoceebi?hl=en) +or any other tool/approach that you're familiar with. + +The idea is to have "pretty close" result to requested design. + diff --git a/layouts/page-container.hbs b/layouts/page-container.hbs index d6de78a..3d07220 100644 --- a/layouts/page-container.hbs +++ b/layouts/page-container.hbs @@ -1,19 +1,18 @@ -
- - - - - +{{> layouts/partials/head }} -Review the `/data` folder with JSON data files.
+
+ Review the `/data` folder with JSON data files.
+ Don't change data JSON files - use the data as it is.
+
Build the layout based on provided data structure.