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

Ashish intro css #667

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
158 changes: 158 additions & 0 deletions index.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,158 @@
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;
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;
}

/* general styling */
*{
box-sizing: border-box; /* only be as big as width I' have given you */
padding: 0;
margin: 0;
max-width: 100%; /* hey elements, you can never be bigger than your parent */
/* border: 1px solid grey; */
}
html{
font-size: 62.5%;
}
body{
font-size: 1.6rem;
line-height: 1.5;
font-family: 'Roboto Mono', monospace;
}

section{
padding: 4% 0;
width: 90%;
margin: 0 auto;
}


/* nav section */
nav{
/* tb lr */
padding: 2% 0;
}
nav a{
display: inline-block;
padding: 1% 0;
width: 10%;
text-align: center;
border-radius: 10px;
text-decoration: none;
color: whitesmoke;
width: 10%;
margin:0 11%;
}
a.orange{
background-color: #FF764E;
}
a.blue{
background-color:#5ED3EB ;
}
a.yellow{
background-color: #FFCD69;
}

/* plan section */
.planimg, .plantext{
display: inline-block;
}
.planimg{
width: 30%;
margin-left: 5%;
}
#plan{
position: relative;
}
.plantext{
width: 55%;
margin-left: 5%;
text-align: center;
line-height: 3;
position: absolute;
top: 100px;
}
.round{
border-radius: 50%;
}
#plan{
font-family: 'Chelsea Market', cursive;;
}
h1{
font-size: 4rem;
}

/* about section */
#about p{
background-color: #DDB9A3;
padding: 3% 0;
width: 90%;
margin: 0 auto;
text-align: center;
color: whitesmoke;
}
/* get involved section */

#get{
width: 30%;
}
#get p{
text-align: center;
}
#get img{
width: 30%;
margin: 0 35%
}

.bottomimg img{
width: 100%;
height: 20%;
height: 30vh;
background-size: cover;
background-repeat: no-repeat;
background-attachment: fixed;
background-position: right;
margin-bottom: 0;
}
/* footer section */
#bottom{
background-color:#F9E7DC;
}
84 changes: 55 additions & 29 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 your CSS stylesheet -->

<link rel="stylesheet" href="index.css">
<link href="https://fonts.googleapis.com/css2?family=Chelsea+Market&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Roboto+Mono&display=swap" rel="stylesheet">
</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.

"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).

"footer_img.png"


Plan your Visit
Learn about the Park
Get Involved

<header>
<nav>
<a class="orange" href="#plan">Plan your <br> Visit</a>
<a class="blue" href="#about">Learn about <br> the Park</a>
<a class="yellow" href="#get">Get <br>Involved</a>
</nav>
</header>
<section id="plan">
<div class="planimg">
<img class="round" src="/assets/header_img.jpg" alt="park">
</div>
<div class="plantext">
<div>
<h1>Yosemite Park Guide</h1>
<br>
<br>
<p>
Come explore California’s beautiful wilderness. <br> Always open. Reservations are not available or required to enter the <br> park.
</p>
</div>
</div>
</section>
<section id="about">
<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.
<br><br>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 id="get">
<div>
<img src="assets/campfire.png" alt="campfire">
<p class="gettext">
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 <b>current fire restrictions.</b>
</p>
</div>
<div>
<img src="assets/camper.png" alt="camper">
<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>
</section>
<div class="bottomimg">
<img src="assets/footer_img.jpg" alt="wilderness">
</div>
<footer id="bottom">
<nav class="nav footernav">
<a class="orange" href="#plan">Plan your <br> Visit</a>
<a class="blue" href="#about">Learn about <br> the Park</a>
<a class="yellow" href="#get">Get <br>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.