Giter Club home page Giter Club logo

css-bakery's Introduction

The Component Bakery

You're going to build a website for a bakery where the website is made up of two major components:

  1. A Title
  2. Bread Cards, which repeat

Here's what the site will look like when it's done:

preview

Step 1: Make the Title

Add some style to the container dive and title component to make it look like this:

Header

You can do this in any order you like, but a recommended order might be:

  1. Add a super light grey background to the container.
  2. Make sure the font is right for the whole body.
  3. Make sure the background of the title is black.
  4. Adjust the padding and margin.
  5. Adjust the font sizes.
  6. Adjust the text alignment.
  7. Make any final tweaks.

Step 2: Make the Cards

Add some style to the container dive and title component to make it look like this:

Cards

You can do this in any order you like, but some of the best places to start include:

  1. Adding a background to the cards.
  2. Adjusting margin & padding for the cards.
  3. Adjust typography.

Then move on to some of the smaller, subtler details. Pay close attention to the mockups.

Step 3: Fix the Fifth Bread

Uh oh! Looks like the developer messed up the last bread and didn't follow the conventions of the component when building it, so the css rules don't quite seem to apply.

Let's fix this component.

Step 4: Add a Sixth Bread

Now that you've fixed the bakery, it's time to add a bread of your own. Have fun!

css-bakery's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.