Refactor. JS time!
This commit is contained in:
@@ -0,0 +1,161 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>Lighthouse Island Bistro</title>
|
||||
<meta charset="utf-8">
|
||||
<style>
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
body {
|
||||
font-family: Verdana, Arial, sans-serif;
|
||||
background-color: #00005D;
|
||||
}
|
||||
#wrapper {
|
||||
background-color: #b3c7e6;
|
||||
color: #000066;
|
||||
width: 80%;
|
||||
margin: auto;
|
||||
min-width:940px;
|
||||
}
|
||||
header {
|
||||
background-color: #869dc7;
|
||||
color: #000000;
|
||||
font-size: 100%;
|
||||
padding: 10px 10px 10px 155px;
|
||||
background-color: #CCCCC;
|
||||
background-repeat: no-repeat;
|
||||
height: 130px;
|
||||
}
|
||||
nav {
|
||||
float: left;
|
||||
width: 150px;
|
||||
letter-spacing: 0.1em;
|
||||
font-weight: bold;
|
||||
}
|
||||
nav ul {
|
||||
list-style-type: none;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
nav a {
|
||||
text-decoration: none;
|
||||
display: block;
|
||||
padding: 20px;
|
||||
background-color: #b3c7e6;
|
||||
border-bottom: 1px solid #ffffff;
|
||||
}
|
||||
nav a:link {
|
||||
color: #ffffff;
|
||||
}
|
||||
nav a:visited {
|
||||
color: #eaeaea;
|
||||
}
|
||||
nav a:hover {
|
||||
background-color: #eaeaea;
|
||||
color: #869dc7;
|
||||
}
|
||||
main {
|
||||
background-color: #ffffff;
|
||||
color: #000000;
|
||||
padding: 10px 20px;
|
||||
overflow: auto;
|
||||
display: block;
|
||||
font-family: "Times New Roman", serif;
|
||||
font-size: 12pt;
|
||||
}
|
||||
h1 {
|
||||
margin-bottom: 0;
|
||||
|
||||
}
|
||||
h2 {
|
||||
color: #869dc7;
|
||||
font-family: arial, sans-serif;
|
||||
margin: 5px;
|
||||
}
|
||||
nav {display: none;}
|
||||
span {
|
||||
size: 90em;
|
||||
font-family: italic;
|
||||
color: #00005D;
|
||||
padding-left: 15em;
|
||||
}
|
||||
figure {
|
||||
float: right;
|
||||
width: 260px;
|
||||
margin: 10px;
|
||||
}
|
||||
figcaption {
|
||||
text-align: center;
|
||||
font-size: .8em;
|
||||
font-style: italic;
|
||||
}
|
||||
footer {
|
||||
font-size:70%;
|
||||
text-align: center;
|
||||
padding: 10px;
|
||||
background-color: #869dc7;
|
||||
clear: both;
|
||||
}
|
||||
article {
|
||||
background-color: #FFFFFF;
|
||||
height: auto;
|
||||
#font-size: 80em; //idk why but this declaration completely breaks it - Caleb
|
||||
font-style: italic;
|
||||
padding-left: 15em;
|
||||
color: #00005D;
|
||||
}
|
||||
aside {
|
||||
float: right;
|
||||
width: 15em;
|
||||
padding: 1em;
|
||||
background-color: lightgray;
|
||||
position: relative;
|
||||
top: -20px;
|
||||
font-size: 100%;
|
||||
left-padding: 0;
|
||||
height: auto;
|
||||
}
|
||||
#header1 {
|
||||
background-image: url("lighthouselogo.jpg");
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="wrapper">
|
||||
<header id="header1">
|
||||
<h1>Lighthouse Island Bistro</h1>
|
||||
<span>the best coffee on the coast</span>
|
||||
</header>
|
||||
<nav>
|
||||
<ul>
|
||||
<li><a href="index.html">Home</a></li>
|
||||
<li><a href="menu.html">Menu</a></li>
|
||||
<li><a href="directions.html">Directions</a></li>
|
||||
<li><a href="contact.html">Contact</a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
<main>
|
||||
<section>
|
||||
<h2>Bistro Blog</h2>
|
||||
<aside>Watch for the March Madness Wrap next month!</aside>
|
||||
<article>
|
||||
<header><h3>Valentine Wrap</h3></header>
|
||||
<time datetime="2018-02-01">February 1, 2018</time>
|
||||
<p>The February special sandwich is the Valentine Wrap —
|
||||
heart-healthy organic chicken with roasted red peppers on a whole wheat wrap.</p>
|
||||
</article>
|
||||
<article>
|
||||
<header><h3>New Coffee of the Day Promotion</h3></header>
|
||||
<time datetime="2018-01-12">January 12, 2018</time>
|
||||
<p>Enjoy the best coffee on the coast in the comfort of your home. We will feature a different flavor of our gourmet, locally roasted coffee each day with free bistro tastings and a discount on one-pound bags.</p>
|
||||
</article>
|
||||
</section>
|
||||
</main>
|
||||
<footer>Copyright © 2018
|
||||
</footer>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
150
Assignments/HTML/lab08_CalebFontenot/public_html/8.8/index.html
Executable file
150
Assignments/HTML/lab08_CalebFontenot/public_html/8.8/index.html
Executable file
@@ -0,0 +1,150 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>Lighthouse Island Bistro</title>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<style>
|
||||
* { box-sizing: border-box; }
|
||||
body { font-family:Verdana, Arial, sans-serif;
|
||||
background-color: #00005D;
|
||||
}
|
||||
#wrapper { background-color: #b3c7e6;
|
||||
color: #000066;
|
||||
width: 80%;
|
||||
margin: auto;
|
||||
}
|
||||
header { background-color: #869dc7;
|
||||
color: #00005D;
|
||||
padding: 10px;
|
||||
}
|
||||
header h1 { padding-left: 20px;
|
||||
}
|
||||
|
||||
header span { font-style: italic;
|
||||
font-weight: bold;
|
||||
color: #00005D;
|
||||
padding-right: 15px;
|
||||
text-align: right;
|
||||
display: block;
|
||||
}
|
||||
nav { float: left;
|
||||
width: 150px;
|
||||
letter-spacing:0.1em;
|
||||
font-weight: bold;
|
||||
}
|
||||
nav ul { list-style-type: none;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
nav li { padding: 15px;
|
||||
}
|
||||
nav a { text-decoration: none;
|
||||
}
|
||||
nav a:link { color: #ffffff; }
|
||||
nav a:visited { color: #eaeaea; }
|
||||
nav a:hover { color: #869dc7;}
|
||||
main { background-color: #ffffff;
|
||||
color: #000000;
|
||||
padding: 10px 20px;
|
||||
margin-left: 150px;
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
h2 { color: #869dc7;
|
||||
font-family: arial, sans-serif;
|
||||
margin: 5px;
|
||||
}
|
||||
|
||||
figure { float: right;
|
||||
margin: 10px;
|
||||
padding-left: 20px;
|
||||
}
|
||||
figcaption { text-align: center;
|
||||
font-size: .8em;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
footer {font-size:70%;
|
||||
text-align: center;
|
||||
padding: 10px;
|
||||
background-color: #869dc7;
|
||||
clear: both;
|
||||
}
|
||||
@media only screen and (max-width: 1024px) {
|
||||
main { margin-left: 0;}
|
||||
nav{ float: none; width:auto;}
|
||||
}
|
||||
@media only screen and (max-width: 1024px) {
|
||||
body { margin: 0; }
|
||||
#wrapper { width: auto; }
|
||||
main { margin-left: 0; }
|
||||
nav { float: none; width: auto; }
|
||||
nav li {
|
||||
display: inline-block;
|
||||
padding: 0.5em;
|
||||
}
|
||||
nav ul {
|
||||
text-align: center;
|
||||
}
|
||||
nav a { boader-style: none; }
|
||||
h1, h2 { font-size: 120% }
|
||||
p { font-size: 90% }
|
||||
|
||||
}
|
||||
@media only screen and (max-width: 768px) {
|
||||
h1, h2 { font-size: 100%;}
|
||||
span { font-size : 80%}
|
||||
figure { display: none; }
|
||||
nav, nav ul, nav li { padding: 0;}
|
||||
nav li { display: block;}
|
||||
nav a {
|
||||
display: block;
|
||||
padding: 0.5em 0;
|
||||
boarder-bottom: 2px ridge #00005D;
|
||||
}
|
||||
}
|
||||
|
||||
header, main, nav, footer, figure, figcaption { display: block; }
|
||||
</style>
|
||||
<!--[if lt IE 9]>
|
||||
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"> </script>
|
||||
<![endif]-->
|
||||
</head>
|
||||
<body>
|
||||
<div id="wrapper">
|
||||
<header>
|
||||
<h1>Lighthouse Island Bistro</h1>
|
||||
<span>the best coffee on the coast</span>
|
||||
</header>
|
||||
<nav>
|
||||
<ul>
|
||||
<li><a href="index.html">Home</a></li>
|
||||
<li><a href="menu.html">Menu</a></li>
|
||||
<li><a href="directions.html">Directions</a></li>
|
||||
<li><a href="contact.html">Contact</a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
<main>
|
||||
<figure>
|
||||
<img src="lighthouseisland.jpg" width="250" height="355" alt="Lighthouse Island">
|
||||
<figcaption>Island Lighthouse, Built in 1870</figcaption>
|
||||
</figure>
|
||||
<h2>Locally Roasted Free-Trade Coffee</h2>
|
||||
<p>Indulge in the aroma of freshly ground roast coffee. Specialty drinks are available hot or cold.</p>
|
||||
<h2>Specialty Pastries</h2>
|
||||
<p>Enjoy a selection of our fresh-baked, organic pastries, including
|
||||
fresh-fruit muffins, scones, croissants, and cinnamon rolls.</p>
|
||||
<h2>Lunchtime is Anytime</h2>
|
||||
<p>Savor delicious wraps and sandwiches on hearty, whole-grain breads with locally-grown salad, fruit, and vegetables. </p>
|
||||
<h2>Panoramic View</h2>
|
||||
<p>Take in some scenery!</p>
|
||||
<p>The top of our lighthouse offers a panoramic view of the countryside. Challenge your friends to climb our 100-stair tower.</p>
|
||||
</main>
|
||||
<footer>Copyright © 2018
|
||||
</footer>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
Binary file not shown.
After Width: | Height: | Size: 28 KiB |
Binary file not shown.
After Width: | Height: | Size: 4.1 KiB |
Reference in New Issue
Block a user