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

Added CSS reset and ccs font styles, added classes for nav bar, divs … #1

Open
wants to merge 4 commits 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
Binary file added assets/carimage.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/fireimage.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
196 changes: 196 additions & 0 deletions index.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,196 @@
html,
body,
div,
span,
applet,
object,
iframe,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
del,
dfn,
em,
font,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend {
vertical-align: baseline;
font-family: inherit;
font-weight: inherit;
font-style: inherit;
font-size: 100%;
outline: 0;
padding: 0;
margin: 0;
}
/* remember to define focus styles! */
:focus {
outline: 0;
}

* {
padding: 0;
margin: 0;
box-sizing: border-box;
max-width: 100%;
border: 1px;
}

/*General Styles*/

html {
font-size: 62.5%;
}
body {
font-size: 1.6rem;
line-height: 1.5;
color: #4f4f4f;
font-family: "Roboto Mono", monospace;
}
a {
font-family: "Roboto Mono", monospace;
text-decoration: none;
}
h1 {
font-size: 5rem;
font-family: "Chelsea Market", cursive;
line-height: 15rem;
}
section {
padding: 4% 0;
}

/*Header Section Styles*/

nav {
padding: 2% 0;
}

nav a {
display: inline-block;
padding: 1% 0;
width: 10%;
border-radius: 10px;
text-align: center;
color: white;
}
.orange {
background-color: #ff764e;
margin: 10%;
}

.blue {
background-color: #5ed3eb;
margin: 10%;
}

.yellow {
background-color: #ffcd69;
margin: 10%;
}

.left,
.right {
display: inline-block;
text-align: center;
}
.left {
width: 30%;
}
.left img {
border-radius: 50%;
width: 80%;
}

.right {
width: 50%;
margin-left: 5%;
position: absolute;
top: 80%;
}

.mid {
margin: auto;
width: 90%;
background-color: #ddb9a3;
padding: 2%;
text-align: center;
}

.fire img {
width: 10%;
align-items: center;
margin: 0 45%;
}

.camping img {
width: 10%;
margin: 0 45%;
}
span {
font-weight: bold;
}
.fire p {
width: 15%;
margin: auto;
}

.camping p {
width: 15%;
margin: auto;
}

.footerpic img {
width: 100%;
}

.footerpic {
overflow: hidden;
height: 60vh;
}

.footer {
background-color: #f9e7dc;
}
75 changes: 47 additions & 28 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,36 +2,55 @@
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Link to google fonts -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<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

<header>
<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>
</header>
<section class="top">
<div class="left">
<img src="assets/header_img.jpg" alt="sunrise over the mountains in Yosemite nation park">
</div>
<div class="right">
<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>
</section>
<section class="mid">
<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>
</section>
<section>
<div class="fire">
<img src="assets/fireimage.png" alt="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 class="camping">
<img src="assets/carimage.png" alt="camper">
<p> strongly recommend that you make reservations for lodging, camping, and backpacking. You can pay the <span class="boldThis">park entrance fee</span> upon arrival (there's no need to pay it in advance).</p>
</div>
</section>
<section class="footerpic">
<img src="assets/footer_img.jpg">
</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>