Skip to content

umersaqib160/01-Button-sprint

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

Background & Objectives

Work on three different button designs (two given by us, one of your choice). Here is your objective. We have already put the HTML code in index.html

<a href="#" class="btn-medium">Write a story</a>
<a href="#" class="btn-treehouse">Start now</a>
<a href="#" class="btn-yours">Your call</a>

Your job is now to write the associated CSS in button.css

Further suggestions & resources

Organize your CSS with component files

From this point, you will start organizing your CSS code with one CSS file for each component. A button is a standard component, such as an avatar, a card, a list, a navbar, a tab, a form, etc.. All these guys deserve their own CSS file. Your project architecture will look like:

.
├── css
│   ├── components
│   │   ├── avatar.css
│   │   ├── banner.css
│   │   └── button.css
│   └── style.css
└── index.html

Then in style.css:

/* Importing all components file */
@import url("components/avatar.css");
@import url("components/banner.css");
@import url("components/button.css");

/* General style rules for fonts and colors */
body {
  margin: 0;
  font-family: 'Open Sans', sans-serif;
}
h1, h2, h3 {
  font-family: Raleway, Helvetica, sans-serif;
}

Then you just need one unique link to style.css in your HTML file:

<head>
  <link rel="stylesheet" href="css/style.css">
</head>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published