https://github.com/muthhukumar/sole-and-ankle
https://github.com/muthhukumar/sole-and-ankle
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/muthhukumar/sole-and-ankle
- Owner: muthhukumar
- License: other
- Created: 2022-01-01T14:15:13.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-01-01T14:18:54.000Z (over 3 years ago)
- Last Synced: 2025-01-29T03:48:38.683Z (4 months ago)
- Language: JavaScript
- Homepage: https://sole-and-ankle.pages.dev/
- Size: 7.95 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Sole&Ankle — Module 4 workshop
In this workshop, our goal is to finish building an e-commerce store!
The good news is, most of our work is done already. We just need to write some additional CSS to construct the layout; things are a bit messy right now!
- Access the Figma: https://www.figma.com/file/kAL3AumTUV11y1IqHhltB6/Sole-and-Ankle-%E2%80%94-Mockup
This project uses Create React App. To get started, run the following terminal commands:
- `npm install`
- `npm run start`You can then visit the app in-browser; it defaults to http://localhost:3000.
_Note that we're only focusing on the design._ The links and inputs don't do anything.
> **Want a bigger challenge?**
>
> This workshop comes with a lot of starter code — we'll be adding
> Flex-specific properties, but for the most part, we don't have a
> ton of code to write. If you'd prefer, you can build the app from
> scratch, to practice all the CSS we've learned so far!
>
> If you go that route, you can find the sneaker assets you need in
> `/public/assets`, and their metadata in `/src/data.js`. Design
> tokens can be found in `/src/constants`. The custom font is
> Raleway, from Google Fonts.## Exercise 1: Superheader
Let's build the “Superheader” a thin grey strip that runs along the top of the page:

Use Flexbox to correctly align the elements within `src/components/SuperHeader`.
## Exercise 2: Header
Continuing on down, let's tackle the main header:

## Exercise 3: Shell
Next up, we want to tackle the "framing" around the shoe grid — the sidebar and title/filter.

_NOTE:_ To make life a bit easier, you may wish to comment out the `` component. We'll work on integrating it in the next exercise.
## Exercise 4: Shoe Grid
This exercise features two mini-challenges. The second one is a chance to revisit some of the lessons learned in previous modules, and isn't as specific to Flexbox.
### 4A: Grid layout
Time to tackle the main feature of this application, the shoes!
Here's a screenshot of the final result:

This is a tricky problem to solve with Flexbox—CSS Grid is a better tool for this job! Nevertheless, it can be done using Flexbox, with one caveat: the last row may be oversized:

In a future module, we'll revisit this and see how CSS Grid can help us out :)
## 4B: Final touches
Our sneaker store is in pretty good shape, but there's a couple small bits of polish missing: the "New Release" / "Sale" flag, and the sale price detail.
_NOTE:_ This exercise has minimal flexbox implications, and is mainly about revisiting lessons learned in the previous modules (including positioned layout and styled-components). Feel free to skip it if you'd prefer!

## To be continued!
Our sneaker store can flex to support different screen sizes, but there isn't a proper mobile or tablet view. Don't fret — we will revisit this workshop in a future module!
In the meantime, take a moment to congratulate yourself for making it through the Flexbox module!!