From fdda31992201572ba41649c65123fb16098e4166 Mon Sep 17 00:00:00 2001 From: Fernando Velasco Date: Wed, 7 Apr 2021 13:17:18 -0500 Subject: [PATCH 1/2] built first two sections partially --- index.css | 115 +++++++++++++++++++++++++++++++++++++++++++++++++++++ index.html | 26 ++++++++---- 2 files changed, 134 insertions(+), 7 deletions(-) diff --git a/index.css b/index.css index e69de29bb..c4db4d4f8 100644 --- a/index.css +++ b/index.css @@ -0,0 +1,115 @@ +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; +} +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; + max-width: 100%; + border: 1px solid grey; +} + +/* General Styles */ + +html { + font-size: 62.5% +} + +body{ + font-size: 1.6rem; + line-height: 1.5; + font-family: 'Roboto Mono', monospace; +} + +h1{ + font-family: 'Chelsea Market', cursive; + font-size: 5rem; +} + +section { + padding: 4% 0; +} + +/* header section */ + +nav { + padding 2% 0; +} + +nav a { + display: inline-block; + padding: 1% 0; + border-radius: 10px; + width: 100%; + text-align: center; + color: white; + text-decoration: none; +} + +.orange { + background color: + margin-left: +} + +.blue { + background-color: + margin: +} + +.yellow { + background-color: + margin-right: +} + +/* Top Div */ + +.top div { + display: inline-block; + width: + margin: +} + +.left img{ + border-radius: + width: + +} + +right { + +} \ No newline at end of file diff --git a/index.html b/index.html index 6fd71e4a1..da39e49e9 100644 --- a/index.html +++ b/index.html @@ -2,18 +2,30 @@ - + + + - Plan your Visit - Learn about the Park - Get Involved +
+ +
+
+
+ Sunrise over the mountains in Yosemite National Park +
+
+

Yosemite Park Guide

+

Always open. Reservations are not available or required to enter the park.

+
+
- "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. From a387095d4d8117251dcc3bdf1da96520797c9bdf Mon Sep 17 00:00:00 2001 From: Fernando Velasco Date: Wed, 7 Apr 2021 17:51:35 -0500 Subject: [PATCH 2/2] Yosemite box-model project --- index.css | 96 ++++++++++++++++++++++++++++++++++++++++++------------ index.html | 51 +++++++++++++++++------------ 2 files changed, 105 insertions(+), 42 deletions(-) diff --git a/index.css b/index.css index c4db4d4f8..0a03fc284 100644 --- a/index.css +++ b/index.css @@ -33,15 +33,10 @@ q:before, q:after { content: ''; content: none; } -table { - border-collapse: collapse; - border-spacing: 0; -} *{ box-sizing: border-box; max-width: 100%; - border: 1px solid grey; } /* General Styles */ @@ -58,7 +53,7 @@ body{ h1{ font-family: 'Chelsea Market', cursive; - font-size: 5rem; + font-size: 5.5rem; } section { @@ -69,47 +64,106 @@ section { nav { padding 2% 0; + margin-top: 2%; } nav a { display: inline-block; padding: 1% 0; border-radius: 10px; - width: 100%; + width: 10%; text-align: center; color: white; text-decoration: none; } .orange { - background color: - margin-left: + background-color: #FF764E; + margin-left: 10%; } .blue { - background-color: - margin: + background-color:#5ED3EB; + margin: 0 24%; } .yellow { - background-color: - margin-right: + background-color:#FFCD69; + margin-right: 10%; } /* Top Div */ - +.top { + position:relative; +} .top div { display: inline-block; - width: - margin: + width: 45%; + margin: 0 2%; + text-align: center; } .left img{ - border-radius: - width: + border-radius: 50%; + width: 50%; +} +.right { + padding: 3%; + line-height: 1.5; + position: absolute; } -right { - -} \ No newline at end of file +.mid-paragraphs { + background-color: #DDB9A3; + color: white; + margin:1%; + padding: .5%; + text-align: center; +} + .mid-paragraphs div p{ + margin:2%; + } + + .icon-explainer img{ + width:10%; + margin-top: 1%; + margin-left:45%; + margin-bottom: 1%; + margin-right: 40%; + } + + .icon-explainer p{ + margin-top: 1%; + margin-left:40%; + margin-bottom: 1%; + margin-right: 40%; + text-align: center; + } + span{ + font-weight: bold; + } + .bottom-img { + background-image: url("assets/footer_img.jpg"); + width: 100%; + height: 45vh; + background-position-y: 20%; + + + } + + footer{ + background: #F9E7DC; + } + + footer nav a { + display: inline-block; + padding: 0% 0; + border-radius: 10px; + width: 10%; + text-align: center; + color: white; + text-decoration: none; + margin-top: 2%; + margin-bottom: 2%; + } \ No newline at end of file diff --git a/index.html b/index.html index da39e49e9..9fdec6f29 100644 --- a/index.html +++ b/index.html @@ -11,7 +11,7 @@
@@ -21,29 +21,38 @@

Yosemite Park Guide

+

Come explore California's beautiful wilderness

Always open. Reservations are not available or required to enter the park.

- - - 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 +
+
+

+ 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. +

+
+
+
+
+ fireplace icon +

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 icon +

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

+
+
+ +
+
+