forked from raaghavendrahm/HTML-and-CSS-Projects
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathblog.html
140 lines (127 loc) · 4.76 KB
/
blog.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css" referrerpolicy="no-referrer" />
<link rel="stylesheet" href="css/main.css">
<title>Read Our Blog</title>
</head>
<body id="home">
<!-- Navbar -->
<header class="hero blog">
<div id="navbar" class="navbar top">
<h1 class="logo">
<span class="text-primary"><i class="fas fa-book-open"></i>Edge</span>Ledger
</h1>
<nav>
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="index.html#about">About</a></li>
<li><a href="index.html#cases">Cases</a></li>
<li><a href="index.html#blog">Blog</a></li>
<li><a href="index.html#contact">Contact</a></li>
</ul>
</nav>
</div>
<div class="content blog">
<h1>Blog</h1>
</div>
</header>
<main> <!-- Everything except the footer will be inside main tag -->
<!-- Blog 1, 2, and 3 -->
<article class="solutions">
<div class="column">
<div class="column-1">
<img src="img/blog/blog1.jpg" alt="">
</div>
</div>
<div class="column">
<div class="column-2 bg-light">
<h2>Blog Post One</h2>
<p class="meta">
<i class="fas fa-user"></i> Posted by <strong>John Doe</strong> | June 01, 2021
</p>
<p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Hic, nulla! Nihil necessitatibus asperiores corrupti enim dolorum, cum unde saepe voluptates voluptatibus quisquam mollitia natus ut quas dolor nam! Eveniet, corporis!</p>
<a href="post-1.html" class="btn-dark">
<i class="fas fa-chevron-right"></i> Read More
</a>
</div>
</div>
</article>
<article class="solutions flex-reverse">
<div class="column">
<div class="column-1">
<img src="img/blog/blog2.jpg" alt="">
</div>
</div>
<div class="column">
<div class="column-2 bg-dark">
<h2>Blog Post Two</h2>
<p class="meta">
<i class="fas fa-user"></i> Posted by <strong>Jane Doe</strong> | June 03, 2021
</p>
<p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Hic, nulla! Nihil necessitatibus asperiores corrupti enim dolorum, cum unde saepe voluptates voluptatibus quisquam mollitia natus ut quas dolor nam! Eveniet, corporis!</p>
<a href="post-2.html" class="btn-light">
<i class="fas fa-chevron-right"></i> Read More
</a>
</div>
</div>
</article>
<article class="solutions">
<div class="column">
<div class="column-1">
<img src="img/blog/blog3.jpg" alt="">
</div>
</div>
<div class="column">
<div class="column-2 bg-light">
<h2>Blog Post Three</h2>
<p class="meta">
<i class="fas fa-user"></i> Posted by <strong>Steve Smith</strong> | June 05, 2021
</p>
<p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Hic, nulla! Nihil necessitatibus asperiores corrupti enim dolorum, cum unde saepe voluptates voluptatibus quisquam mollitia natus ut quas dolor nam! Eveniet, corporis!</p>
<a href="post-3.html" class="btn-dark">
<i class="fas fa-chevron-right"></i> Read More
</a>
</div>
</div>
</article>
</main>
<!-- Footer -->
<footer class="footer bg-dark">
<div class="social">
<a href="#"><i class="fab fa-facebook fa-2x"></i></a>
<a href="#"><i class="fab fa-twitter fa-2x"></i></a>
<a href="#"><i class="fab fa-youtube fa-2x"></i></a>
<a href="#"><i class="fab fa-linkedin fa-2x"></i></a>
</div>
<p>Copyright © 2021 - EdgeLedger</p>
</footer>
<!-- Our Custom Code -->
<!-- BACKGROUND CHANGE AND TRANSITION OF NAVBAR -->
<script>
const navbar = document.querySelector('.navbar'); // selects the navbar
let scrolled = false; // for bounce effect
window.onscroll = function() {
if(window.pageYOffset > 100) {
navbar.classList.remove('top');
// for bounce effect start
if(!scrolled) {
navbar.style.transform = 'translateY(-70px)'; // note that 'transition' property is added to .navbar in 'main.scss' for smooth transition.
}
setTimeout(function(){
navbar.style.transform = 'translateY(0)';
scrolled = true;
}, 200);
// for bounce effect end
} else {
navbar.classList.add('top');
// for bounce effect
scrolled = false;
}
}
</script>
</body>
</html>