From 8f9ee540abc6d9831c3d925a5dbd7eb4f036d975 Mon Sep 17 00:00:00 2001 From: Byungjin-Kim Date: Thu, 10 Nov 2022 00:06:20 -0600 Subject: [PATCH] completed Intro CSS Module Project --- README.md | 36 ++++++------- index.css | 156 +++++++++++++++++++++++++++++++++++++++++++++++++++++ index.html | 95 +++++++++++++++++++++----------- 3 files changed, 239 insertions(+), 48 deletions(-) diff --git a/README.md b/README.md index 0f460d079..99aa33a06 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 +- [v] Link your CSS stylesheet in the `index.html` and implement a CSS reset +- [v] Markup html semantically, such that it can be styled according to the given desktop image +- [v] Color the background of items in the navigation bar and footer with the following colors: + - [v] Plan your Visit: `#FF764E` + - [v] Learn About the Park: `#5ED3EB` + - [v] Get Involved: `#FFCD69` +- [v] Change all font colors and styles according to design file + - [v] Yosemite Park Guide font is called Chelsea Market and can be found on [google fonts](https://fonts.google.com/specimen/Chelsea+Market) + - [v] All other text is Roboto Mono, also available on [google fonts](https://fonts.google.com/specimen/Roboto+Mono) +- [v] Color the background of the main text body with `#DDB9A3` +- [v] Color the background of the footer with `#F9E7DC` +- [v] Bold the words "current fire restrictions" and "park entrance fee" according to the design file +- [v] 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: + - [v] A round image in the header + - [v] Round corners on navigation and footer items + - [v] Header image and text side by side + - [v] Centered content and margins around content + - [v] 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 e69de29bb..81e7cf7d6 100644 --- a/index.css +++ b/index.css @@ -0,0 +1,156 @@ +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: solid grey; */ + max-width: 100%; + +} +/* 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; + width: 90%; + margin: 0 auto; +} + +nav { + padding: 2% 0; +} + +nav a{ + display: inline-block; + padding: 1% 0; + width: 10%; + text-align: center; + border-radius: 10px; + color: white; + text-decoration: none; +} + +.orange{ + background-color: #FF764E; + margin-left: 10%; +} + +.blue{ + background-color: #5ED3EB; + margin: 0 24%; +} + +.yellow{ + background-color: #FFCD69; + margin-right: 10%; +} + +.cta { + position: relative; +} + +.text, .image { + display: inline-block; +} + +.image { + width: 30%; +} + +.round{ + border-radius: 50%; +} + +.text{ + width: 55%; + margin-left: 5%; + text-align: center; + line-height: 3; + position: absolute; + top: 90px; +} + +.main{ + background-color: #DDB9A3; + color: white; + padding: 2%; +} + +.info div{ + width: 30%; + margin: 5% auto; +} + +.bold { + font-weight: bold; +} + +.bg-img{ + background-image: url('assets/footer_img.jpg'); + height: 50vh; + background-repeat: no-repeat; + background-size: cover; + background-position: top; + width: 100%; +} + +footer { + background-color: #F9E7DC; +} \ No newline at end of file diff --git a/index.html b/index.html index b602ee2b0..19318f808 100644 --- a/index.html +++ b/index.html @@ -1,37 +1,72 @@ + - - + + + + + - 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 - +
+ +
+ +
+
+ sun rise over mountains in Yosemite +
+
+

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.

+
+
+ +
+
+ illustration of campfire +

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.

+
+
+ illustration of camper +

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

+
+
+ +
+ + +
+ + + - + + \ No newline at end of file