From 40464c778483b8bafc5e957ba65d28a3d91ee669 Mon Sep 17 00:00:00 2001 From: Nicholas Carmack Date: Thu, 22 Sep 2022 12:01:48 -0600 Subject: [PATCH 1/3] added semantic tags to html --- index.html | 78 +++++++++++++++++++++++++++++------------------ package-lock.json | 6 ++++ 2 files changed, 55 insertions(+), 29 deletions(-) create mode 100644 package-lock.json diff --git a/index.html b/index.html index b602ee2b0..b05a75e6e 100644 --- a/index.html +++ b/index.html @@ -2,36 +2,56 @@ - - + - 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 - +
+ +
+
+
+
+ Yosemite Park Image +
+
+
+
+

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

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

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

+
+
+ + diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 000000000..bd8660126 --- /dev/null +++ b/package-lock.json @@ -0,0 +1,6 @@ +{ + "name": "web-module-challenge-intro-css", + "lockfileVersion": 2, + "requires": true, + "packages": {} +} From c4947e53a3a4d914cec4a62c1843e33d7512056d Mon Sep 17 00:00:00 2001 From: Nicholas Carmack Date: Thu, 22 Sep 2022 12:25:35 -0600 Subject: [PATCH 2/3] added fonts, general styling, and navigation colors --- index.css | 83 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 83 insertions(+) diff --git a/index.css b/index.css index e69de29bb..7670db2be 100644 --- a/index.css +++ b/index.css @@ -0,0 +1,83 @@ +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; +} +/* 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; +} +*{ + box-sizing:border-box; + border:1px solid blue; + max-width:100%; +} + +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: 6rem; +} +section{ + padding:5% 0; + margin:0 auto; +} +nav{ + padding: 3% 0; +} +nav a{ + display: inline-block; + text-align: center; + color: white; +} +nav a.left{ + background-color: #FF764E; +} +nav a.middle{ + background-color: #5ED3EB; +} +nav a.right{ + background-color: #FFCD69; +} \ No newline at end of file From c095331981379e29e97e52534b41fee90d2f182f Mon Sep 17 00:00:00 2001 From: Nicholas Carmack Date: Thu, 22 Sep 2022 13:15:33 -0600 Subject: [PATCH 3/3] completed css styling, and added button hover stretch --- README.md | 36 ++++++++++++------------ index.css | 82 +++++++++++++++++++++++++++++++++++++++++++++++++++++- index.html | 3 +- 3 files changed, 101 insertions(+), 20 deletions(-) diff --git a/README.md b/README.md index 0f460d079..2aed585af 100644 --- a/README.md +++ b/README.md @@ -32,24 +32,24 @@ Follow these steps to set up and work on your project: Once your repository is set up, practice what you learned today to style the site according to the given design. Your complete project should look similar to the desktop image. You should take the following actions, at a minimum: -- [ ] Link your CSS stylesheet in the `index.html` and implement a CSS reset -- [ ] Markup html semantically, such that it can be styled according to the given desktop image -- [ ] Color the background of items in the navigation bar and footer with the following colors: - - [ ] Plan your Visit: `#FF764E` - - [ ] Learn About the Park: `#5ED3EB` - - [ ] Get Involved: `#FFCD69` -- [ ] Change all font colors and styles according to design file - - [ ] Yosemite Park Guide font is called Chelsea Market and can be found on [google fonts](https://fonts.google.com/specimen/Chelsea+Market) - - [ ] All other text is Roboto Mono, also available on [google fonts](https://fonts.google.com/specimen/Roboto+Mono) -- [ ] Color the background of the main text body with `#DDB9A3` -- [ ] Color the background of the footer with `#F9E7DC` -- [ ] Bold the words "current fire restrictions" and "park entrance fee" according to the design file -- [ ] Apply box model properties (content, padding, margin, and border) to all content such that your webpage matches the design file. This will include at least: - - [ ] A round image in the header - - [ ] Round corners on navigation and footer items - - [ ] Header image and text side by side - - [ ] Centered content and margins around content - - [ ] Footer image positioning +- [x] Link your CSS stylesheet in the `index.html` and implement a CSS reset +- [x] Markup html semantically, such that it can be styled according to the given desktop image +- [x] Color the background of items in the navigation bar and footer with the following colors: + - [x] Plan your Visit: `#FF764E` + - [x] Learn About the Park: `#5ED3EB` + - [x] Get Involved: `#FFCD69` +- [x] Change all font colors and styles according to design file + - [x] Yosemite Park Guide font is called Chelsea Market and can be found on [google fonts](https://fonts.google.com/specimen/Chelsea+Market) + - [x] All other text is Roboto Mono, also available on [google fonts](https://fonts.google.com/specimen/Roboto+Mono) +- [x] Color the background of the main text body with `#DDB9A3` +- [x] Color the background of the footer with `#F9E7DC` +- [x] Bold the words "current fire restrictions" and "park entrance fee" according to the design file +- [x] Apply box model properties (content, padding, margin, and border) to all content such that your webpage matches the design file. This will include at least: + - [x] A round image in the header + - [x] Round corners on navigation and footer items + - [x] Header image and text side by side + - [x] Centered content and margins around content + - [x] Footer image positioning **Throughout your design you should avoid static units (pixels), and should instead use responsive units wherever possible.** diff --git a/index.css b/index.css index 7670db2be..be12af773 100644 --- a/index.css +++ b/index.css @@ -62,22 +62,102 @@ h1{ } section{ padding:5% 0; + width: 90%; margin:0 auto; } nav{ - padding: 3% 0; + padding: 1.5% 0; } nav a{ display: inline-block; text-align: center; + padding: 1.5%, 0; + width: 10%; color: white; + border-radius: 1rem; + text-decoration: none; +} +nav a.left:hover{ + background-color: #F9E7DC; + color:#FF764E; + border: .16rem solid #FF764E; +} +nav a.middle:hover{ + background-color: #F9E7DC; + color:#5ED3EB; + border: .16rem solid #5ED3EB; +} +nav a.right:hover{ + background-color: #F9E7DC; + color:#FFCD69; + border: .16rem solid #FFCD69; } nav a.left{ background-color: #FF764E; + margin-left: 10%; + padding: 0.5% 0; } nav a.middle{ background-color: #5ED3EB; + margin: 0 24%; + padding: 0.5% 0; } nav a.right{ background-color: #FFCD69; + margin-right: 10%; + padding: 0.5% 0; +} +div.salmonBox{ + background-color:#DDB9A3; + color: white; + text-align: center; + padding: 1% 0; +} +footer{ + background-color: #F9E7DC; +} +span.bold{ + font-style:bold; +} +.leftOpening, .rightOpening{ + display: inline-block; +} +.leftOpening{ + width: 33%; +} +.rightOpening{ + +} +.text{ + width: 100%; + margin-left: 5%; + text-align: center; + line-height: 2; +} +.image img{ + border-radius: 100%; +} +section.salmon{ + padding: 4%; +} +div.salmonBox p{ + padding: 1%; +} +section.info div{ + width: 33%; + margin: 0 auto; + text-align: center; +} +div.lodging{ + margin-top: 10%; +} +.bold{ + font-weight:bold; +} +.footerImage{ + background-image: url('assets/footer_img.jpg'); + height: 45vh; + background-repeat: no-repeat; + background-size: cover; + width: 100%; } \ No newline at end of file diff --git a/index.html b/index.html index b05a75e6e..d12d3aa8d 100644 --- a/index.html +++ b/index.html @@ -2,6 +2,7 @@ + @@ -32,7 +33,7 @@

Yosemite Park Guide

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 flash art

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.