Skip to content

initial update #7

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

Closed
wants to merge 1 commit into from
Closed
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
98 changes: 41 additions & 57 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,59 +1,43 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<title>Bethany's Pie Shop</title>
<link rel="stylesheet" href="site.css" type="text/css" />
<style>
h1 {
font-size: 3em;
margin-top: 0.5em;
}

.banner {
max-width: 100%;
}

.sub-title {
background-color: #fff;
font-size: 1.5em;
padding: 10px;
}
</style>
</head>
<body>
<header>
<nav>
<ul>
<li><a href="/">Home</a></li>
<li><a href="pies.html">Pies</a></li>
<li><a href="contact.html">Contact</a></li>
</ul>
</nav>
</header>
<main>
<aside><img src="images/logo.png" alt="Bethany's Pie Shop" /></aside>
<article>
<img src="images/banner.png" class="banner" alt="Bethany's Pie Shop" />
<h1>Welcome to Bethany's Pie Shop</h1>
<p class="sub-title">
From pecan to plum, our pies are are made in with the warmth and
tradition of home. Take a moment to
<a href="pies.html">browse our pies</a> and see which of our
delectable desserts are soon to arrive on your doorstep.
</p>
</article>
</main>
<footer>
<nav>
<ul>
<li><a href="/">Home</a></li>
<li><a href="pies.html">Pies</a></li>
<li><a href="contact.html">Contact</a></li>
</ul>
</nav>
</footer>
</body>
</html>
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="site.css" type="text/css" />
<title>Document</title>
</head>
<body>
<header>
<nav>
<ul>
<li><a href="/">Home</a></li>
<li><a href="pies.html">Pies</a></li>
<li><a href="contact.html">Contact</a></li>
</ul>
</nav>
</header>
<main>
<aside><img src="images/logo.png" alt="Bethany's Pie Shop" /></aside>
<article>
<img src="images/banner.png" class="banner" alt="Bethany's Pie Shop" />
<h1>Welcome to Bethany's Pie Shop</h1>
<p class="subtitle">
From pecan to plum, our pies are are made in with the warmth and tradition.
Take a moment to
<a href="pies.html">browse our pies</a>
and see which of our delectible
desserts are soon to arrive on your doorstep.
</p>
</article>
</main>
<footer>
<nav>
<ul>
<li><a href="/">Home</a></li>
<li><a href="pies.html">Pies</a></li>
<li><a href="contact.html">Contact</a></li>
</ul>
</nav>
</footer>
</body>
</html>
63 changes: 3 additions & 60 deletions site.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
margin: 0;
}

html,
body {
html, body {
height: 100%;
}

Expand All @@ -13,7 +12,7 @@ body {
}

p {
margin: 0.5em 0 0.5em 0;
margin: .5em 0 .5em 0;
}

header {
Expand Down Expand Up @@ -63,62 +62,6 @@ article {
aside {
text-align: center;
}

article {
width: 75%;
}

.columns {
display: flex;
}

@media only screen and (min-width: 768px) {
main {
display: flex;
}

aside {
margin-left: 2%;
}

.columns-desktop {
display: flex;
}
}

/* Pie */
.pie {
width: 200px;
padding: 10px;
margin: 10px;
background-color: #fff;
border: solid 1px #ccc;
}

.pie img {
width: 100%;
}

.pie .title {
font-weight: bold;
}

.pie .price {
text-align: right;
}

.pie .columns {
width: 100%;
}

.pie .columns div {
width: 50%;
}

.pie button {
background-color: #f6aeae;
padding: 10px;
border: solid 1px #f6aeae;
border-radius: 3px;
color: #fff;
}
}