From 41170d915cda3873667a8d09f537cb4cbe6fb93c Mon Sep 17 00:00:00 2001 From: Lucas Kimanzi Date: Sat, 21 Nov 2020 22:45:23 -0500 Subject: [PATCH 1/3] navbar_reposition --- blogpost.css | 109 ++++++++++++++++ blogpost.html | 320 +++++++++++++++++++++++++++++++++++++++++++++ index.html | 356 ++++++++++++++++++++++++++++++++++++++++++++++++++ style.css | 186 ++++++++++++++++++++++++++ 4 files changed, 971 insertions(+) create mode 100644 blogpost.css create mode 100644 blogpost.html create mode 100644 index.html create mode 100644 style.css diff --git a/blogpost.css b/blogpost.css new file mode 100644 index 0000000..05e53be --- /dev/null +++ b/blogpost.css @@ -0,0 +1,109 @@ +/* THIS FILE CONTAINS STYLES ONLY FOR 'blogpost.html' */ + +/* Main Body */ + +.date { + background-color: rgb(199, 199, 199); + display: inline-block; + padding: 30px; +} + +.post_heading h3 { + padding-bottom: 20px; + border-bottom: 1px dashed var(--border-color); +} + +/* '*' Here means every child-element */ + +.post_heading > * { + padding: 10px 0; +} + +.main_body > * { + margin-top: 5px; + border-bottom: 1px dashed var(--border-color); +} + +.main_body > :last-child { + border: none; +} + +.main_body__post img { + margin: 10px 0; +} + +/* Response or Comment Section */ + +.responses > * { + margin: 10px 0; +} + +.response_text { + padding: 5px; + border: 1px solid var(--border-color); + margin: 5px 0; + background-color: rgb(248, 248, 248); +} + +/* Sidebar */ + +.sidebar { + border-left: 1px dashed var(--border-color); +} + +.sidebar__search { + padding: 20px 0px; + border-top: 1px dashed var(--border-color); + border-bottom: 1px dashed var(--border-color); +} + +.sidebar .form-bg, +.main_body__new_comment .form-bg { + background-color: rgb(248, 248, 248); + + border: 1px solid gray; +} + +/* Response or Comment Section */ + +/* Media Query for Responsiveness */ + +@media (max-width: 1200px) { + .post_info { + display: flex !important; + flex-direction: column !important; + justify-content: center; + align-items: center; + width: 100%; + } + .main_body__post img { + width: 100%; + align-self: center; + justify-self: center; + } + .main_body__related_posts > { + display: flex !important; + align-items: center !important; + justify-content: space-between !important; + } + + .main_body__related_posts > * { + display: flex !important; + justify-content: space-around !important; + + align-items: center; + flex-direction: column !important; + } + .related_post :first-child { + margin: 10px 0; + } + h1, + h2, + h3 { + text-align: center; + } + + .responses img { + width: auto; + } +} diff --git a/blogpost.html b/blogpost.html new file mode 100644 index 0000000..d9b743c --- /dev/null +++ b/blogpost.html @@ -0,0 +1,320 @@ + + + + + + + + + + Blog Home + + + +
+
+

MyWebsite

+ +
+
+ + + +
+
+
+ + + +
+ +

Lorem ipsum dolor sit amet consectetur adipisicing elit. Rerum adipisci laborum eligendi similique, quas quaerat quam quia cupiditate quae et consequatur dolor laudantium enim fuga nesciunt doloribus aliquam repudiandae exercitationem!

+

Lorem ipsum dolor, sit amet consectetur adipisicing elit. Delectus consectetur possimus ab ipsam autem odit totam maiores explicabo! Rem ipsam, ratione tempora voluptatibus dicta accusamus iure saepe architecto tenetur nobis. + Lorem ipsum dolor sit amet consectetur adipisicing elit. Vero ex expedita, reiciendis sint et ullam, consequuntur nobis quos sapiente pariatur a iure, repellendus mollitia ad ipsum sunt ea magnam suscipit.

+

Lorem ipsum dolor sit amet consectetur adipisicing elit. Vero ex expedita, reiciendis sint et ullam, consequuntur nobis quos sapiente pariatur a iure, repellendus mollitia ad ipsum sunt ea magnam suscipit.

+

Lorem ipsum dolor sit amet consectetur adipisicing elit. Vero ex expedita, reiciendis sint et ullam, consequuntur nobis quos sapiente pariatur a iure, repellendus mollitia ad ipsum sunt ea magnam suscipit.

+
+ + + + + + +
+

2 Responses to "Ridiculus Mattis Lorem Dolor Inceptos"

+
+
+
+ +
+
+

Barney Stinson

+

Lorem ipsum, dolor sit amet consectetur adipisicing elit. Illum quo aliquam quas at nobis, voluptatibus numquam quisquam atque

+
+ + +
+
+
+
+ +
+
+

Sarah Tancrady

+

This is just a dummy body for the comment

+
+
+
+
+
+ + + +
+
Submit a Comment
+

Your email address will not be published. Required fields are marked *

+
+
+ +
+
+ +
+
+ +
+
+ + + +
+ +
+
+ +
+ + + + + + + +
+
+ + + + + + + + + + + \ No newline at end of file diff --git a/index.html b/index.html new file mode 100644 index 0000000..257aafe --- /dev/null +++ b/index.html @@ -0,0 +1,356 @@ + + + + + + + + + Blog Home + + + + +
+
+

MyWebsite

+ +
+
+ + +
+ +
+
+ Card image cap +
+
Card title
+

This card has supporting text below as a natural lead-in to additional content.

+
+ + + + 17 January, 2012 + + + + + 21 + +
+
+
+
+ Card image cap +
+
Card title
+

This card has supporting text below as a natural lead-in to additional content.This card has supporting text below as a natural lead-in to additional content.

+
+ + + + 17 January, 2012 + + + + + 21 + +
+
+
+
+ Card image cap +
+
Card title
+

This card has supporting text below as a natural lead-in to additional content. + +

+
+ + + + 17 January, 2012 + + + + + 21 + +
+
+
+
+ Card image cap +
+
Card title
+

This card has supporting text below as a natural lead-in to additional content.

+
+ + + + 17 January, 2012 + + + + + 21 + +
+
+
+
+ Card image cap +
+
Card title
+

This card has supporting text below as a natural lead-in to additional content.This card has supporting text below as a natural lead-in to additional content.

+
+ + + + 17 January, 2012 + + + + + 21 + +
+
+
+
+ Card image cap +
+
Card title
+

This card has supporting text below as a natural lead-in to additional content. + +

+
+ + + + 17 January, 2012 + + + + + 21 + +
+
+
+
+ Card image cap +
+
Card title
+

This card has supporting text below as a natural lead-in to additional content. + +

+
+ + + + 17 January, 2012 + + + + + 21 + +
+
+
+
+ Card image cap +
+
Card title
+

This card has supporting text below as a natural lead-in to additional content. + +

+
+ + + + 17 January, 2012 + + + + + 21 + +
+
+
+
+ Card image cap +
+
Card title
+

This card has supporting text below as a natural lead-in to additional content. + +

+
+ + + + 17 January, 2012 + + + + + 21 + +
+
+
+
+
+
+
+ +
+
+ + + + + + + + + + + + \ No newline at end of file diff --git a/style.css b/style.css new file mode 100644 index 0000000..a15cd22 --- /dev/null +++ b/style.css @@ -0,0 +1,186 @@ +/* THIS FILE CONTAINS SOME GLOBAL STYLES AS WELL AS STYLES FOR 'index.html' */ + +/* Globals such as Navbar or Footer */ + +:root { + /* Editing these colours will automatically change colors of whole website */ + --primary-color: rgb(41, 41, 41); + --border-color: #d3d3d3; + + +/* Resets & Utils */ + +ul { + list-style-type: none; +} + +a { + text-decoration: none; + color: black; +} + +.flex { + display: flex; + justify-content: center; + align-items: center; + height: 100%; +} + +/* Navigation Bar */ + +.top_nav { + background-color: #333; + + color: #fff; + height: 70px; +} + +.top_nav ul { + display: flex; +} + +.top_nav a { + font-weight: 500; + text-decoration: none; + text-transform: uppercase; + border: 1px solid black; + color: #fff; + padding: 30px; +} + +.top_nav a:hover { + /* border-color: aqua; */ + color: aqua; +} + +.top_nav a .selected { + color: aqua; +} + +.top_nav .flex { + overflow: hidden; + justify-content: space-between; +} + +.logo a { + border: none; + text-transform: none; +} + +/* Main-Body Styles */ + +.date-comments-wrapper { + border-top: dashed 2px var(--border-color); +} + +.date-comments { + margin: 5px 0; +} + +.older_posts { + padding: 20px 0; + border-top: dashed 2px var(--border-color); +} + +/* Pre-Footer */ + +.pre-footer { + padding: 50px 0px; + color: white; + background-color: var(--primary-color); +} + +.pre-footer h3 { + font-size: 16px; +} + +.popular_post, +.tweet { + border-bottom: dashed 1px var(--border-color); + padding: 10px 0; +} + +.tweet-time { + color: aqua; +} + +.form-bg { + background-color: rgb(29, 29, 29); +} +.form-control { + border: none; +} + +/* Footer */ + +footer { + color: white; + background-color: rgb(20, 20, 20); + padding: 20px 0px; +} + +footer .flex { + justify-content: space-between; +} + +.footer__social_icons a { + color: white; + text-decoration: none; +} + +.footer__social_icons > * { + border-radius: 2px; + padding: 5px 10px; + margin: 0px 5px; +} + +/* Footer Icons */ + +#rss { + background-color: #ee802f; +} + +#facebook { + background-color: #3b5998; +} + +#twitter { + background-color: #00acee; +} + +#pinterest { + background-color: #c8232c; +} + +#linkedin { + background-color: #0e76a8; +} + +/* Media Query for Responsiveness */ + +@media (max-width: 1200px) { + .top_nav { + height: 100%; + } + .top_nav .flex { + flex-direction: column; + } + + .top_nav ul { + display: flex; + flex-direction: column; + } + + .top_nav a { + font-weight: 500; + text-decoration: none; + text-transform: uppercase; + border: 1px solid b; + color: #fff; + margin: 5px 0; + padding: 10px 500px; + } + .top_nav li { + margin: 10px 0; + } +} From 13993bdd0398631ba560a66d7fbfe652aa74bb56 Mon Sep 17 00:00:00 2001 From: Lucas Kimanzi Date: Sat, 21 Nov 2020 22:48:39 -0500 Subject: [PATCH 2/3] nav_barwork --- index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index 257aafe..71128e9 100644 --- a/index.html +++ b/index.html @@ -11,7 +11,7 @@ -
+

MyWebsite

-
+ ---->
From 963ea91a792015bff405f2e13400dfedde0ec4a3 Mon Sep 17 00:00:00 2001 From: Lucas Kimanzi Date: Sun, 22 Nov 2020 20:47:05 -0500 Subject: [PATCH 3/3] fixed nav bar, put css and images in separate folders --- blogpost.html | 4 ++-- images/500x500.jpg | Bin 0 -> 4899 bytes index.html | 6 +++--- blog.png => samples/bloghome.png | Bin blog-post.png => samples/blogpost.png | Bin blogpost.css => styles/blogpost.css | 0 style.css => styles/style.css | 2 +- 7 files changed, 6 insertions(+), 6 deletions(-) create mode 100644 images/500x500.jpg rename blog.png => samples/bloghome.png (100%) rename blog-post.png => samples/blogpost.png (100%) rename blogpost.css => styles/blogpost.css (100%) rename style.css => styles/style.css (99%) diff --git a/blogpost.html b/blogpost.html index d9b743c..c68ab2f 100644 --- a/blogpost.html +++ b/blogpost.html @@ -5,8 +5,8 @@ - - + + Blog Home diff --git a/images/500x500.jpg b/images/500x500.jpg new file mode 100644 index 0000000000000000000000000000000000000000..000d5e613cea774aeae331b9eb6914f1244c030e GIT binary patch literal 4899 zcmeHJSy)ro7CsR{KWhsqSP>c0&=T7;2`3XtBp?t_kU<5F0~Ip?0m6YKK$x#uoS3Ry z6-1z-LYYJbL23Z8prwe&Xbs9Fl}Q8wVUpn{RBdmspAYxpKHSfhmp!ciUu*ws?R~QN z+hP}>e#cn{?R>JoL0DJqdftA3Yw%Dx}?JX7u&~P|^5thY;*gPx; z65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hre+;Q@!9+0YvtQe=8; zsL22+xT*bIIYN zZ)H7XH&3*gm9~BFb*XARVrMo4r5Xfh^yy|@8`|s`TCzzfk?;Gsr?tNr{V1M!wn<46 zL=G~y{46sxJM-yi%dGYykUg*n97xS+>2!?>k8FHWct_lvkaX&4@SvP`IEGzg-qz7< zFz?a52>={>eriZ6{H3|Aw4mE)*y%!247-+JULbfLGL-laSG%0nz$ k#V;UVYR@9eqPxhqKNR5|Mfm$;_F?`(f&T*qj20jN3prIE$N&HU literal 0 HcmV?d00001 diff --git a/index.html b/index.html index 71128e9..04a1256 100644 --- a/index.html +++ b/index.html @@ -5,13 +5,13 @@ - + Blog Home - +

MyWebsite

-
----> +
diff --git a/blog.png b/samples/bloghome.png similarity index 100% rename from blog.png rename to samples/bloghome.png diff --git a/blog-post.png b/samples/blogpost.png similarity index 100% rename from blog-post.png rename to samples/blogpost.png diff --git a/blogpost.css b/styles/blogpost.css similarity index 100% rename from blogpost.css rename to styles/blogpost.css diff --git a/style.css b/styles/style.css similarity index 99% rename from style.css rename to styles/style.css index a15cd22..50e2ba1 100644 --- a/style.css +++ b/styles/style.css @@ -6,7 +6,7 @@ /* Editing these colours will automatically change colors of whole website */ --primary-color: rgb(41, 41, 41); --border-color: #d3d3d3; - +} /* Resets & Utils */