diff --git a/README.md b/README.md index 0f460d079..662f33e12 100644 --- a/README.md +++ b/README.md @@ -32,8 +32,8 @@ 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 +- [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 - [ ] Color the background of items in the navigation bar and footer with the following colors: - [ ] Plan your Visit: `#FF764E` - [ ] Learn About the Park: `#5ED3EB` @@ -55,7 +55,6 @@ Once your repository is set up, practice what you learned today to style the sit **Please note that you CANNOT use flexbox on today's project - you must achieve your layout using inline-block** - ### Task 3: Stretch Goals The following goals are designed to stretch your knowledge and may require additional research beyond what was learned in class today. diff --git a/index.css b/index.css index e69de29bb..3a92c03a7 100644 --- a/index.css +++ b/index.css @@ -0,0 +1,277 @@ +/* http://meyerweb.com/eric/tools/css/reset/ + v2.0 | 20110126 + License: none (public domain) +*/ +:root { + font-size: 62.5%; +} +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; +} +html { + font-family: 'Roboto', sans-serif; + font-family: 'Chelsea Market', cursive; +} +body { + line-height: 1; + font-size: 16px; +} +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; +} + +/* MY STYLE STARTS HERE */ + +.home-header { + margin-bottom: 5rem; +} + +.home-header--NAV { + display: flex; + /* justify-content: space-around; */ + margin: 3rem 0; +} + +.home-header--NAV a { + color: #fff; + text-decoration: none; + padding: 1rem 3rem; + border-radius: 1rem; + text-align: center; + margin-left: 25rem; + font-size: 1.8rem; +} + +.home-header--NAV #plan { + background-color: #ff764e; +} +.home-header--NAV #learn { + background-color: #5ed3eb; +} +.home-header--NAV #involved { + background-color: #ffcd69; +} + +.main-container { + display: flex; + /* justify-content: space-around; */ + /* align-items: center; */ + margin-bottom: 5rem; +} + +.text-content { + text-align: center; + letter-spacing: 0.2rem; + font-family: 'Roboto', sans-serif; +} + +.text-content--TITLE { + font-size: 5rem; + margin-bottom: 4rem; + margin-top: 6rem; +} + +.text-content p { + /* letter-spacing: 0.2rem; */ + font-size: 2.5rem; +} + +.text-content p:first-of-type { + margin-bottom: 4rem; +} + +.main-container .img-container { + width: 40rem; + margin-right: 10rem; +} + +.img-container--IMG { + width: 100%; + border-radius: 50%; +} + +/* .about-section { +} */ +.about-style { + background-color: #ddb9a3; + text-align: center; + padding: 1rem; + color: #fff; + width: 80%; + margin: 0 auto; + font-size: 2.5rem; + letter-spacing: 0.15rem; +} + +.fire-section { + margin-bottom: 10rem; +} + +.mid-section-style { + width: 60rem; + margin: 0 auto; + font-size: 2.5rem; + text-align: center; + display: flex; + flex-direction: column; + justify-content: center; +} + +.mid-section--img-container { + /* width: 40rem; */ + height: 50rem; +} + +#unique-container { + width: 40rem; +} +.mid-section--img-container img { + /* width: 100%; */ +} + +.reservation { + margin-bottom: 10rem; +} + +.footer-section { + background-color: #f9e7dc; +} + +.footer-style { + margin: 0 auto; +} + +/* .footer-style .footer--img-container { +} */ + +.footer-style .footer--img-container img { + width: 100%; + height: 50rem; + object-fit: cover; + object-position: center top; +} + +.style-links nav { + margin: 0; + padding: 4rem 0; +} + +.style-links nav a { + margin-top: 0; + margin-bottom: 0; +} diff --git a/index.html b/index.html index b602ee2b0..3a70ccda6 100644 --- a/index.html +++ b/index.html @@ -1,37 +1,105 @@ - - - - - - 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 - - + + + + + + + +
+
+ +
+ +
+
+ image of Yosemite Mountains +
+
+

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