Skip to content
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
213 changes: 213 additions & 0 deletions index.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,213 @@
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;
}
*{
box-sizing:border-box; /*this rule says, if I give an element a width I want it to respect that width - if I add padding or a border, apply it within the width given not in addition to it*/
border:1px solid grey;
max-width:100%; /*this says you can never be bigger than your parent*/
}
/*General Styles*/
html{
font-size:62.5%;
}
body{
font-size:1.6rem;
line-height:1.5;
font-family: 'Roboto Mono', monospace;
color:#4F4F4F;
}
h1{
font-family: 'Chelsea Market', cursive;
font-size:5rem;
}
span{
font-weight:bold;
}
a{
text-decoration:none;
color:#4F4F4F;
}
section{
padding:4% 0;
}
/*navigation Styles*/
/* .stay{
width:100%;
position:fixed;
z-index:9999;
} */
nav{
padding:2% 0;
display:flex;
justify-content: space-around;
}
nav a{
display:inline-block;
padding:1% 0;
width:10%;
border-radius:10px;
text-align:center;
color:#fff;
}
.orange{
background-color: #FF764E;
}
.blue{
background-color:#5ED3EB;
}
.yellow{
background-color:#FFCD69;
}
.sr-only:not(:focus):not(:active) {
clip: rect(0 0 0 0);
clip-path: inset(50%);
height: 1px;
overflow: hidden;
position: absolute;
white-space: nowrap;
width: 1px;
}
/*header section styles*/
header{
display:flex;
justify-content: space-around;
padding:4% 0;
}
.image{
width:40%;
display:flex;
justify-content: center;
align-items: center;
}
.image img{
border-radius:50%;
width:60%;
}
.title{
width:55%;
display:flex;
justify-content: center;
align-items: center;
text-align: center;
}
.title div{
width:80%;
}
/*Main Section Styles*/
.main div{
background-color: #DDB9A3;
width:80%;
margin:0 auto;
padding:2%;
color:#fff;
}
.main div p{
margin:1% 0;
}
/*Camp section styles*/
.camp{
display:flex;
flex-direction:column;
justify-content: center;
align-items: center;
}
.camp div{
width:35%;
text-align:center;
margin:4% 0;
}
.camp div img{
width:80%;
}
/*background image section*/
.bg-img{
background-image:url('assets/footer_img.jpg');
background-size:cover;
background-position:top;
background-repeat: no-repeat;
height:40vh;
/* background-attachment: fixed; */ /*make it look like the image stays in once place when you scroll*/
}
/*footer section styles*/
footer{
background-color:#F9E7DC;
}
/*Media Queries*/
/*Tablet View*/
/*this rule is for 800px screen or smaller*/
@media (max-width:800px){
nav a{
width:15%;
}
/*header section styles*/
.image img{
width:80%;
}
/*camp section styles*/
.camp div{
width:45%;
}
/*background image section*/
.bg-img{
height:60vh;
background-position:center;
}
}
/*Phone View*/
@media (max-width:500px){
nav{
flex-direction:column;
justify-content: center;
align-items: center;
}
nav a{
width:50%;
margin:2% 0;
}
.blue{
order:-1;
}
/*header styles*/
header{
flex-wrap:wrap;
}
.image{
width:80%;
}
.title{
width:80%;
margin-top:4%;
}
.title div{
width:100%;
}
/*camp section styles*/
.camp div{
width:80%;
}
.camp div img{
width:60%;
}
/*bg img section*/
.bg-img{
height:40vh;
/* display:none; */
}
}
80 changes: 51 additions & 29 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,36 +2,58 @@
<!DOCTYPE html>
<html lang="en">
<head>
<!--Viewport meta tag-->
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Link to fonts-->
<link href="https://fonts.googleapis.com/css2?family=Chelsea+Market&family=Roboto+Mono:wght@400;700&display=swap" rel="stylesheet">
<!-- Link your CSS stylesheet -->

<link rel="stylesheet" href="index.css">
</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.

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.

"https://image.flaticon.com/icons/svg/2979/2979348.svg"
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.

"https://image.flaticon.com/icons/svg/820/820374.svg"
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).

"footer_img.png"


Plan your Visit
Learn about the Park
Get Involved

<a href="#main" class="sr-only">skip to go to main content</a>
<nav class="stay">
<a class="orange" href="#">Plan your<br>Visit</a>
<a class="blue" href="#">Learn about<br>the Park</a>
<a class="yellow" href="#">Get<br>Involved</a>
</nav>
<header>
<div class="image">
<img src="assets/header_img.jpg" alt="landscape of mountains at Yosemite national park at sunset">
</div>
<span id="main"></span>
<div class="title">
<div>
<h1>Yosemite Park Guide</h1>
<h2>Come explore California's beautiful wilderness.</h2>
<p>Always open. Reservations are not available or required to enter the park.</p>
</div>
</div>
</header>
<section class="main">
<div>
<p>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.</p>
<p>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.</p>
</div>
</section>
<section class="camp">
<div>
<img src="https://image.flaticon.com/icons/svg/2979/2979348.svg" alt="illustration of campfire">
<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. Check for <span>current fire restrictions</span>.</p>
</div>
<div>
<img src="https://image.flaticon.com/icons/svg/820/820374.svg" alt="illustration of a camper van">
<p>We strongly recommend that you make reservations for lodging, camping, and backpacking. You can pay the <span>park entrance fee</span> upon arrival (there's no need to pay it in advance).</p>
</div>
</section>
<section class="bg-img" role="banner" aria-label="background image of national park">
<!--empty section with background image-->
</section>
<footer>
<nav>
<a class="orange" href="#">Plan your<br>Visit</a>
<a class="blue" href="#">Learn about<br>the Park</a>
<a class="yellow" href="#">Get<br>Involved</a>
</nav>
</footer>
</body>
</html>
</html>