Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Buttons are not the right size #1

Open
wants to merge 7 commits into
base: gh-pages
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
107 changes: 107 additions & 0 deletions css/main.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
html {
box-sizing: border-box;

font-family: "Open Sans", sans-serif;
}

*, *::before, *::after {
box-sizing: inherit;
}

.btn {
padding: .5em;
text-align: left;
font-size: 0.875rem;
text-decoration: none;
border-radius: 8px;
background-color: #333;
border: 3px solid #333;
margin-right: 0;
}

.btn-small {
text-decoration: none;
color: white;
text-align: left;
}

.btn:hover {
background-color: #000;
border-color: #000;
border-width: 3px;
}

body {
background-color: #f2f2f2;
padding: .5em;
margin: 0;
}

h3 {
font-style: italic;
font-size: .875rem;
font-weight: 400;
margin-bottom: 0;
margin-top: .5em;
}

h2 {
font-size: 1rem;
font-weight: 700;
margin-bottom: 0;
margin-top: 0;
}

.card {
float: left;
width: 25%;
border-left: 1px solid #333;
font-size: 0.875rem;
padding: 1em 1em 1em 1em;
min-height: 30em;
}

.card1 {
background-color: #e2e2e2;
}

.card2 {
background-color: #ccc;
}

.card3 {
background-color: #aaa;
}

.card4 {
background-color: #999;
border-right: 1px solid #333;
}

img {
width: 115px;
margin: auto;
text-align: center;
display: block;
padding-bottom: 2em;
}

.images {
text-align: center;
padding-left: 1em;
}

h1 {
font-size: 2rem;
text-align: center;
}

p {
margin-top: 0;
margin-bottom: 1em;
font-size: 1rem;
}

a {
max-width: 10%;
}
69 changes: 69 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
<!DOCTYPE html>
<html lang="en-ca">
<head>
<meta charset="utf-8">
<title>Colums</title>
<meta name="viewport" content="width=device-width,initial-scale=1">
<link href="css/main.css" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Open+Sans:400,700" rel="stylesheet">
</head>
<body>
<header>
<h1>Featuerd books</h1>
</header>
<section>
<div class="card card1">
<div>
<img class="images" src="images/placeholder-2by3.svg" alt="">
</div>
<div>
<h2>The Quest for Anderon</h2>
<h3><i>Tabatha R. Barrett</i></h3>
<p>A fun & engaging kids book that harkens back to classic fantasy quest stories.</p>
</div>
<div>
<a class="btn btn-small" href="#">Read now</a>
</div>
</div>
<div class="card card2">
<div>
<img class="images" src="images/placeholder-2by3.svg" alt="">
</div>
<div>
<h2>Dinosaur Knights</h2>
<h3>Thomas S. Hedegaard</h3>
<p>Aliens land on Earth in the distant past and ride dinosaurs. It’s about as awesome as it gets.</p>
</div>
<div>
<a class="btn btn-small" href="#">Read now</a>
</div>
</div>
<div class="card card3">
<div>
<img class="images" src="images/placeholder-2by3.svg" alt="">
</div>
<div>
<h2>The Black Dragon</h2>
<h3>Hana Čejková</h3>
<p>A action-packed middle-grade interactive story adventure with a plucky hero.</p>
</div>
<div>
<a class="btn btn-small" href="#">Read now</a>
</div>
</div>
<div class="card card4">
<div>
<img class="images" src="images/placeholder-2by3.svg" alt="">
</div>
<div>
<h2>Light Speed Laser Ships</h2>
<h3>Felicity Orta Olivárez</h3>
<p>Military sci-fi that’s top notch. Missiles. Explosions. Lasers. Fleets. Planets. Light Speed.</p>
</div>
<div>
<a class="btn btn-small" href="#">Read now</a>
</div>
</div>
</section>
</body>
</html>