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
151 changes: 151 additions & 0 deletions index.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,151 @@
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;
}
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; /* this rule says, if someone gives an element a width I want It to respect that width - if there padding or a border , apply it with in the width given no in addition to it*/
border: 1px solid ghostwhite;
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: 'Fraunces', serif;
color: rgb(187, 68, 21);
}
h1{
font-family: 'Chelsea Market', cursive;
font-size:5rem;
}
span{
font-weight:bold;
}
a{
text-decoration: none;
}
section{
padding:4% 0;
}
nav{
padding: 2% 0;
display: flex;
justify-content: space-around;
}
nav a{
display:inline-block;
padding:1% 0;
width:10%;
border: radius 10%;
text-align: center;
color: rgb(34, 61, 7);
}
.orange{
background-color: lightcoral;
}
.blue{
background-color: lightpink;
}
.yellow{
background-color: lime;

}
.header{
display:flex;
justify-content: space-around;
}
.image{
width:40%;
display: flex;
justify-content: center;
align-items: center;
}
.image image{
border-radius:50%;
width:60%;
}
.title{
width:55%;
display: flex;
justify-content: center;
align-items: center;
text-align: center;
}
.title{
width:8%;
}
.main div{
background-color: magenta;
width: 80%;
margin:0 auto;
padding:2%;
color:mediumblue;
}
.main div p{
margin:1% 0;
}
.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%;
}
.bg-image{
background-image: :url('assets/footer_img.jpg');
background-size:cover;
background-position:top;
background-repeat:no-repeat;
height:40vh;
}
.footer{
background-color: mediumpurple;
}
72 changes: 49 additions & 23 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,36 +2,62 @@
<!DOCTYPE html>
<html lang="en">
<head>
<!--Link to fonts-->
<link href="https://fonts.googleapis.com/css2?family=Chelsea+Market&family=Roboto+Mono:ital,wght@0,400;1,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"
<nav>
<a class="pink" href="#">Plan your <br>Visit</a>
<a class="grey" href="#">Learn about<br> the Park</a>
<a class="purple" href="#">Get <br>Involved</a>
</nav>
<header>
<div class="immage">
<img src="assets/header_img.jpg" alt="">
</div>
<div class="title">
<div>
<h1>Yosemite Park Guide</h1>
<h2>Always open. Reservations are not available or required to enter the park.</h2>
<p>Come explore California’s beautiful wilderness.</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="">
<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="">
<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">
<!--empty section with background image-->
</section>
<footer>
<nav>
<a class="pink" href="#">Plan your <br>Visit</a>
<a class="grey" href="#">Learn about<br> the Park</a>
<a class="purple" href="#">Get <br>Involved</a>
</nav>
</footer>

<!--"footer_img.png"


Plan your Visit
Learn about the Park
Get Involved
Get Involved-->

</body>
</html>