Hello! Thanks for taking the time to complete this project to help evaluate CSS and WordPress skills.
-
Fork the _s repository (a theme maintained by Automattic) into your own account.
-
You will be building out a page template to display a product grid, which should look like this on a desktop screen when complete.
Don't worry about getting all the colors and dimensions pixel perfect, we're just looking for a close representation.
-
Set up a new page template called "Product Grid" with the default theme header and footer from _s.
-
We're looking to see how you implement different design details with CSS, so please use the following markup to display the grid.
<div class="product-grid">
<div>
[Image: Replace this placeholder with code to output image]
<div class="price">10</div>
</div>
<div>
[Image: Replace this placeholder with code to output image]
<div class="price">20</div>
</div>
<div>
[Image: Replace this placeholder with code to output image]
<div class="price">30</div>
</div>
<div>
[Image: Replace this placeholder with code to output image]
<div class="price">40</div>
</div>
</div>
For the image, use WordPress functions to load the image path from the theme. The image yum.png can be found in this repository.
You shouldn't need to add any classes or extra markup in order to display the product grid as shown in the above screenshot (aside from the markup for rendering the image).
-
Styles should be written in sass and compile the same way other scss files in the _s theme do.
-
The screenshot above shows how the grid should display on a larger desktop screens. Please use your best judgment when coding how it will display on smaller mobile screens.
-
Add some sort of fun animation or effect when the product square has a hover state.
-
Optimize the image rendering for efficient load times.