Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
96 commits
Select commit Hold shift + click to select a range
a9db359
Create file/folder structure
michael-mcmasters Oct 30, 2020
d731750
Create HTML structure for Bootstrap container
michael-mcmasters Oct 30, 2020
1e66952
Prepare Navbar and Elements
michael-mcmasters Oct 30, 2020
64854a8
Align Navbar content and make it responsive
michael-mcmasters Oct 30, 2020
b7e0b90
Give navbar custom background color
michael-mcmasters Oct 30, 2020
99e5353
Set Navbar padding and margin
michael-mcmasters Oct 30, 2020
02b7432
Place borders on each side of navbar elements
michael-mcmasters Oct 30, 2020
458f530
Create CSS color variables
michael-mcmasters Oct 30, 2020
9249292
Refactor CSS classes
michael-mcmasters Oct 30, 2020
15abaa9
Give navbar a bottom-border
michael-mcmasters Oct 30, 2020
d679643
Style logo on navbar and add top margin
michael-mcmasters Oct 30, 2020
f6b075c
Add background to links on hover
michael-mcmasters Oct 30, 2020
342d074
Display regular cards
michael-mcmasters Oct 31, 2020
f436e43
Use card-columns class and make cards responsive with media queries
michael-mcmasters Oct 31, 2020
df353cb
Style first card
michael-mcmasters Oct 31, 2020
7aa7b39
Fix card margins
michael-mcmasters Oct 31, 2020
402529c
Change all cards to the first card
michael-mcmasters Oct 31, 2020
cc590fc
Give cards a movement animation when mouse hovers
michael-mcmasters Oct 31, 2020
5026db1
Give each card its own image and description
michael-mcmasters Oct 31, 2020
d8eea8f
Remove copy/pasted comment in HTML
michael-mcmasters Oct 31, 2020
062b087
Add untracked image files
michael-mcmasters Oct 31, 2020
80a35c7
Add hamburger menu to navbar when screen width is small
michael-mcmasters Nov 1, 2020
dbae3ba
Add and style Older Posts button
michael-mcmasters Nov 1, 2020
a216a63
Make button look exactly like mockup
michael-mcmasters Nov 1, 2020
7b25afb
Add border and margin above button
michael-mcmasters Nov 1, 2020
3d170dd
Change button background color on mouse hover
michael-mcmasters Nov 1, 2020
508d963
Add comments to HTML structure
michael-mcmasters Nov 1, 2020
de40233
Style first row of footer elements
michael-mcmasters Nov 1, 2020
13268ec
Style footer body
michael-mcmasters Nov 1, 2020
cb21a17
Make footer use only 1 row, 4 columns
michael-mcmasters Nov 1, 2020
fd8d800
Perfect colors and margin for left column
michael-mcmasters Nov 1, 2020
cb7d735
Style Twitter column in footer
michael-mcmasters Nov 1, 2020
a843487
Style A Little About Me column in footer
michael-mcmasters Nov 1, 2020
3dd1a50
Readjust date size in Popular Posts column
michael-mcmasters Nov 1, 2020
f804f9f
Style Contact Form column in footer
michael-mcmasters Nov 1, 2020
4430756
Add border around footer
michael-mcmasters Nov 1, 2020
b69f1b4
Create bottom navbar
michael-mcmasters Nov 1, 2020
0839bdb
Add copyright symbol and style a tag
michael-mcmasters Nov 1, 2020
a96c7a8
Style fa icons on bottom navbar
michael-mcmasters Nov 1, 2020
72a5e06
Add all icons to bottom navbar and style them
michael-mcmasters Nov 1, 2020
e8feb3f
Remove unecessary lorem ipsum
michael-mcmasters Nov 1, 2020
0f61181
Align bottom nav icons with Contect Form in footer
michael-mcmasters Nov 1, 2020
e5b2c68
Put all elements in top navbar and style it
michael-mcmasters Nov 1, 2020
8daec55
Make clicking navbar elements link to second page (and other website)
michael-mcmasters Nov 1, 2020
4c49df5
Create index.css. Leave shared styles in styles.css
michael-mcmasters Nov 1, 2020
40b3704
Put Navbar and Footer on blog-post.html page
michael-mcmasters Nov 1, 2020
4f217a4
Create Bootstrap row and column layout for new page
michael-mcmasters Nov 1, 2020
7626fa2
Add and style post day and year
michael-mcmasters Nov 1, 2020
9079496
Add post title and sub-title
michael-mcmasters Nov 1, 2020
8744e99
Refactor CSS names
michael-mcmasters Nov 1, 2020
d33f7f6
Style header
michael-mcmasters Nov 1, 2020
af095be
Make header border span the entire width
michael-mcmasters Nov 1, 2020
7bf3333
Add image
michael-mcmasters Nov 1, 2020
5f63725
Add urls to subtitle
michael-mcmasters Nov 1, 2020
e4d26d8
Style main content text
michael-mcmasters Nov 1, 2020
657ba24
Make header and subtitle CSS classes for re-usability
michael-mcmasters Nov 1, 2020
9866968
Add images to bottom of page. Fix glitch where footer container and c…
michael-mcmasters Nov 1, 2020
4568aaa
Place new images in Related Posts
michael-mcmasters Nov 2, 2020
ab9dbec
Add user avatar images
michael-mcmasters Nov 2, 2020
8f65e3f
Style first comment
michael-mcmasters Nov 2, 2020
c46ebba
Add styling to second comment
michael-mcmasters Nov 2, 2020
940bf38
Add margin to second comment
michael-mcmasters Nov 2, 2020
d324d5f
Add Submit a Comment section. Move CSS classes around
michael-mcmasters Nov 2, 2020
5ec463b
Create input field to submit a comment
michael-mcmasters Nov 2, 2020
9d46e79
Create and style Popular Posts on sidebar
michael-mcmasters Nov 2, 2020
79f1f83
Fill text for 3 popular post elements
michael-mcmasters Nov 2, 2020
3535460
Add border to left of sidebar
michael-mcmasters Nov 2, 2020
d78d45c
Add <div> that was missing
michael-mcmasters Nov 2, 2020
817f67b
Add search bar to sidebar
michael-mcmasters Nov 2, 2020
2e479c0
Split c-title CSS class into c-title-small and c-title-large. Apply c…
michael-mcmasters Nov 2, 2020
9744640
Add Custom Text section to sidebar
michael-mcmasters Nov 2, 2020
e5c8bf2
Add difference images to sidebar
michael-mcmasters Nov 2, 2020
08057dc
Add mouse hover effect to images
michael-mcmasters Nov 2, 2020
2eeb0f7
Move img transitions classes to blog-post.css because they mess with …
michael-mcmasters Nov 2, 2020
7cd6bb7
Add background color to active tab on top navbar
michael-mcmasters Nov 2, 2020
557ae92
Change color of active tab on top navbar for all webpages
michael-mcmasters Nov 2, 2020
428bce2
Make search bar wider
michael-mcmasters Nov 2, 2020
a09b324
Add margin to categories in footer when screen is small
michael-mcmasters Nov 2, 2020
8b37d79
Git rid of border and margin on sidebar for small screens
michael-mcmasters Nov 2, 2020
0341196
Set min-width on button when screen is small
michael-mcmasters Nov 2, 2020
9a08d17
Delete dock image and replace it with pier image
michael-mcmasters Nov 2, 2020
baa6a3d
Fix button width in Submit a Comment section
michael-mcmasters Nov 2, 2020
bde5c61
Add comment
michael-mcmasters Nov 2, 2020
f9b0f20
Add comment about jQuery, Popper.js and Bootstrap.js
michael-mcmasters Nov 2, 2020
484e727
Fix spelling mistake
michael-mcmasters Nov 2, 2020
06228ed
Add comments to <head>
michael-mcmasters Nov 2, 2020
7bb287b
Give each card a difference date and comment count
michael-mcmasters Nov 2, 2020
52e48e4
Fix picture size on Blog page
michael-mcmasters Mar 6, 2021
4a9ef3d
Remove unecessary comment
michael-mcmasters Mar 6, 2021
8d301fa
Fix background color on hover
michael-mcmasters Mar 6, 2021
c78f736
Have buttons link to LinkedIn profile
michael-mcmasters Mar 6, 2021
eaa0478
Clicking logo goes to home page
michael-mcmasters Mar 6, 2021
eb5198f
Clean up CSS a little
michael-mcmasters Mar 6, 2021
895265d
Remove unused property
michael-mcmasters Mar 6, 2021
3050e9d
Switch from input to textedit so text isn't centered
michael-mcmasters Mar 6, 2021
964fd21
Change text
michael-mcmasters Mar 6, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
368 changes: 368 additions & 0 deletions blog-post.html

Large diffs are not rendered by default.

Binary file added images/beach.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
File renamed without changes
Binary file added images/forest.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/grand-canyon.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/greece.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/honolulu.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/jm-avatar.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/nate-avatar.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/northern-lights.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/pier2.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/sunrise.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/tampa-skyline.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/tree.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
427 changes: 427 additions & 0 deletions index.html

Large diffs are not rendered by default.

211 changes: 211 additions & 0 deletions styles/blog-post.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,211 @@
img {
transition: opacity 0.2s;
}

img:hover {
cursor: pointer;
opacity: 0.9;
}




/* ------- Article Header ------- */

.c-header-container {
width: 100%;
height: 5em;
display: flex;
}

.c-header-title {
color: rgb(85, 85, 85);
font-weight: bold;
font-size: 1.1rem;
padding-bottom: 0.3em;
}

.c-date {
background-color: rgb(236, 236, 236);
border-radius: 50%;
min-height: 75px;
min-width: 75px;

color: rgb(85, 85, 85);
font-weight: 500;

display: flex;
flex-direction: column;
justify-content: center;
align-items: center;

/* Using line height to change horizontal space in-between elements. Because changing marging and padding was not doing anything. */
line-height: 1.5rem;
}

/* Use > arrow when using :nth-child so that it only selects direct children. And not children's children. */
.c-date > :nth-child(1) {
font-size: 2em;
}

.c-date > :nth-child(2) {
font-size: 1em;
}

.c-header-container > :nth-child(2) {
flex-grow: 1;
align-self: center;
padding: 1em;
padding-right: 0;
}

.c-posted-by {
color: rgb(153, 153, 153);
font-size: 0.7rem;
padding-top: 0.3em;
}





/* ------- Content Body ------- */

.c-main-content-image {
margin: 2rem 0;
width: 100%;
height: 400px;
}

.c-main-content-body {
font-size: 0.9rem;
padding: 1rem 0;
}





/* ------- Related Posts ------- */

.c-related-posts-container {
display: flex;
justify-content: space-between;
}

.c-related-posts-container > img {
width: 23%;
height: 7em;
}





/* ------- Comments ------- */

.c-comment-container {
display: flex;
align-content: flex-start;
align-items: flex-start;
}

.c-comment-container > img {
width: 5em;
height: 5em;
}

.c-comment-body {
padding: 1em 1.3em;
margin-left: 1em;
width: 100%;
background-color: rgb(247, 247, 247);;
border: 1px solid rgb(225, 225, 225);
}

.c-comment-username {
color: rgb(85, 85, 85);
font-weight: bold;
font-size: 0.91rem;
padding-bottom: 0.3em;
}






/* ------- Comment Input Field ------- */

#comment-form {
display: flex;
flex-direction: column;
}

.c-input,
#comment-form > input {
margin-bottom: 1rem;
padding-left: 0.7rem;
height: 2rem;
font-size: 0.9rem;
background-color: rgb(247, 247, 247);
border: 1px solid rgb(225, 225, 225);
}

::placeholder {
color: rgb(85, 85, 85);
}

textarea {
margin-bottom: 1rem;
height: 10rem;
background-color: rgb(247, 247, 247);
border: 1px solid rgb(225, 225, 225);
}

.c-form-button {
max-width: 15%;;
}






/* ------- Popular Posts ------- */

.c-popular-container {
display: flex;
align-content: flex-start;
align-items: flex-start;
}

.c-popular-container > img {
width: 5em;
height: 5em;
}

.c-popular-body {
margin-left: 1em;
width: 100%;
}

.c-popular-title {
color: rgb(85, 85, 85);
font-size: 0.9rem;
padding-bottom: 0.3em;
}

.c-popular-date {
font-size: 0.7em;
color: rgb(153, 153, 153);
}

@media (max-width: 768px) {
.c-popular-resp {
border: none;
margin-left: 0;
margin-top: 3rem;
padding-left: 0;
}
}
61 changes: 61 additions & 0 deletions styles/index.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
.cust-card-border-bottom {
padding-bottom: 3.5em;
border-bottom: 1px dotted gray;
}

.card {
background-color: var(--color-gray2);
position: relative;
left: 0x;
bottom: 0px;

transition: 0.2s;
}

.card:focus,
.card:hover {
cursor: pointer;
background-color: rgb(214, 214, 214);
position: relative;
bottom: 10px;
}

.cust-card-body-container {
margin: 1.1em 1.1em 0.7rem 1.1em;
}

.cust-card-body {
margin-top: 0.8em;
font-size: 0.9em;
}

.cust-card-footer {
padding-top: 10px;
border-top: 1px dotted black;
color: rgb(153, 153, 153);
font-size: 0.8em;

display: flex;
justify-content: space-between;
}


/* Cards Columns don't work with the regular column classes (col-md-4 for example)
They must be defined with @media keys.
Source: First answer - @https://stackoverflow.com/questions/34140793/bootstrap-4-responsive-cards-in-card-columns/43117538#43117538
*/
@media (min-width: 34em) {
.card-columns {
-webkit-column-count: 2;
-moz-column-count: 2;
column-count: 2;
}
}

@media (min-width: 48em) {
.card-columns {
-webkit-column-count: 3;
-moz-column-count: 3;
column-count: 3;
}
}
Loading