This repository is a hands-on practice project for developers looking to master modern CSS layout techniques by replicating a real-world store landing page.
Your goal is to write the HTML and CSS to recreate the landing page shown in the screenshot below.
-
Study the Goal:
- Look closely at the screenshot above.
- Open the original
decathlon.htmlfile in your browser to see the live page and how it behaves.
-
Build Your Solution:
- Create your own new files (e.g.,
index.htmlandstyle.css). - Using the provided image assets in the repository, try to build your own version from scratch.
- Create your own new files (e.g.,
-
Review the Original Code:
- Once you're done, or if you get stuck, open the
decathlon.htmlfile. - This file contains the original solution code (all HTML and CSS). Compare your work to the original to see how it was built and learn new techniques.
- Once you're done, or if you get stuck, open the
This single-page challenge is an excellent exercise for:
- CSS Grid: Building a complex, asymmetrical grid for the info section.
- Flexbox: Creating a responsive, wrapped product card gallery.
- Flex
orderProperty: Manipulating the visual order of elements. - Layout & Positioning: Using
position: fixedfor the navbar andposition: relativefor text on images. - Backgrounds & Media: Implementing
background-size: coverandobject-fit: coverfor responsive media. - Semantic HTML: Structuring a complete webpage (
<nav>,<header>,<section>, etc.).
No server, compilation, or dependencies are required.
-
Clone the repository:
git clone https://github.com/ayoubabbadi/Decathlon-Landing-Page-CSS-Challenge.git
-
Navigate to the directory:
cd Decathlon-Landing-Page-CSS-Challenge -
Start the challenge!
- Open
decathlon.htmlto see the goal in action. - Create your own files and start building.
- Open
This repository contains all necessary files for the challenge.
decathlon.html: The Original Solution File containing all HTML and CSS.final-result.png: (Or your screenshot name) The target design.- All Image/Video Assets:
logo.png,decathlon.mp4,Running Shoes.png,Yoga Mat.jpg, etc.
