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

Jordan-Brewer | IntroCSS #666

Open
wants to merge 1 commit into
base: main
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
173 changes: 173 additions & 0 deletions index.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,173 @@
/* http://meyerweb.com/eric/tools/css/reset/
v2.0 | 20110126
License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
margin: 0;
padding: 0;
border: 0;
font-size: 100%;
font: inherit;
vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
display: block;
}
body {
line-height: 1;
}
ol, ul {
list-style: none;
}
blockquote, q {
quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
content: '';
content: none;
}
table {
border-collapse: collapse;
border-spacing: 0;
}

* {
box-sizing: border-box;
font-size: 1rem;
}

html {
font-size: 1rem;
}

body {
font-family: 'Roboto Mono';
font-size: 1vh;
margin: 0 10%;
}

nav {
font-size: .65rem;
margin: 2rem 10%;
}

a {
height: 2.5rem;
width: 5.5rem;
padding: 1% 1%;
margin: .5rem 3rem;
display: inline-block;
text-align: center;
border-radius: 10px;
vertical-align: middle;
text-decoration: none;
color: white;
}



.box1 {
background-color: #FF764E;
}

.box2 {
background-color: #5ED3EB;
}

.box3 {
background-color: #FFCD69;
}

.box4 {
background-color: #DDB9A3;
color: white;
font-size: 1rem;
text-align: center;
padding: 2%;
margin: 2% 0;
}
#guide img {
border-radius: 50%;
margin: 0 3%;
}

h1 {
font-size: 4vh;
font-family: "Chelsea Market";
}

.hero {
text-align: center;
display: inline-block;
margin: auto;
}

.guideimg {
display: inline-block;
}

#guide {
display: inline-block;
width: 100%;
vertical-align: middle;
}

.line1 {
margin: 1rem 0rem;
font-size: .75rem;
}

.line2 {
font-size: .75rem;
max-width: 50%;
text-align: center;
margin: 2.5% 30%;
}

.fire {
text-align: center;
}

b {
font-weight: bold;
}

.fire img {
display:block;
margin-left: auto;
margin-right: auto;
}

.fire p {
max-width: 25%;
display: block;
margin-left: auto;
margin-right: auto;
margin-bottom: 5%;
}

footer img {
height: 10rem;
object-fit: cover;
object-position: top;
}

footer {
background-color: #F9E7DC;
}
72 changes: 49 additions & 23 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,35 +3,61 @@
<html lang="en">
<head>
<!-- Link your CSS stylesheet -->

<link rel="stylesheet" href="index.css">
<link rel="stylesheet"
href="https://fonts.googleapis.com/css?family=Chelsea+Market">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto+Mono">
</head>
<body>
Plan your Visit
Learn about the Park
Get Involved


"header_img.jpg"
Yosemite Park Guide
Come explore California’s beautiful wilderness.
Always open. Reservations are not available or required to enter the park.



<header>
<nav>
<a class="box1" href="#guide">Plan your Visit</a>
<a class="box2" href="#learn">Learn about the Park</a>
<a class="box3" href="#info">Get Involved</a>
</nav>
</header>
<section id="guide">
<div class="guideimg">
<img src="assets/header_img.jpg" alt="Yosemite Park" width=200rem height=200rem>
</div>
<div class="hero">
<h1>Yosemite Park Guide</h1>

<p class="line1">Come explore California’s beautiful wilderness.</p>
<p class="line2">Always open. Reservations are not available or required to enter the park.</p>
</div>

</section>

<section id="learn">
<div class="box box4">
Not just a great valley, but a shrine to human foresight, the strength of granite, the power of glaciers, the persistence of life, and the tranquility of the High Sierra.

First protected in 1864, Yosemite National Park is best known for its waterfalls, but within its nearly 1,200 square miles, you can find deep valleys, grand meadows, ancient giant sequoias, a vast wilderness area, and much more.

"campfire.png"
Fire is a natural and essential part of Yosemite. We manage fire carefully and study how it interacts with the park’s ecosystems. This blog provides updates about fires in Yosemite. Check for current fire restrictions.

"camper.png"
We strongly recommend that you make reservations for lodging, camping, and backpacking. You can pay the park entrance fee upon arrival (there's no need to pay it in advance).
</div>
</section>

<div class="fire">
<img src="assets/campfire.png" height="50%" width="15%">

<p>Fire is a natural and essential part of Yosemite. We manage fire carefully and study how it interacts with the park’s ecosystems. This blog provides updates about fires in Yosemite. <b>Check for current fire restrictions.</b> </p>
</div>

<div class="fire">
<img src="assets/camper.png" height="50%" width="15%">
<p>We strongly recommend that you make reservations for lodging, camping, and backpacking. You can pay the <b>park entrance fee</b> upon arrival (there's no need to pay it in advance).</p>
</div>

"footer_img.png"


Plan your Visit
Learn about the Park
Get Involved
<footer>
<img src="assets/footer_img.jpg" width="100%";>
<nav>
<a class="box1" href="#guide">Plan your Visit</a>
<a class="box2" href="#learn">Learn about the Park</a>
<a class="box3" href="#info">Get Involved</a>
</nav>
</footer>

</body>
</html>
6 changes: 6 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.