|
14 | 14 | <link rel="stylesheet" href="{{site.baseurl}}/assets/css/syntax-highlighter.css">
|
15 | 15 | {% endif %}
|
16 | 16 | <link rel="icon" type="image/ico" href="/favicon.ico"/>
|
17 |
| - <style> |
18 |
| - body { |
19 |
| - margin: 0; |
20 |
| - padding: 0; |
21 |
| - } |
22 |
| - .navbar { |
23 |
| - transition: top 0.3s; |
24 |
| - } |
25 |
| - |
26 |
| - .hero { |
27 |
| - position: relative; |
28 |
| - height: 100vh; /* Adjust based on your design */ |
29 |
| - background-position: center; |
30 |
| - background-size: cover; |
31 |
| - overflow: hidden; /* Ensures the content doesn't overflow */ |
32 |
| - } |
33 |
| - |
34 |
| - .hero::before { |
35 |
| - content: ''; |
36 |
| - position: absolute; |
37 |
| - top: 0; |
38 |
| - left: 0; |
39 |
| - right: 0; |
40 |
| - bottom: 0; |
41 |
| - background-image: inherit; /* Use the same background image */ |
42 |
| - background-position: inherit; |
43 |
| - background-size: inherit; |
44 |
| - filter: blur(7px); /* Adjust the blur intensity */ |
45 |
| - z-index: 1; /* Keep it behind the content */ |
46 |
| - opacity: 0.7; /* Optional: Add transparency for a softer effect */ |
47 |
| - } |
| 17 | + |
| 18 | + <link rel="stylesheet" href="{{site.baseurl}}/assets/css/main.css"> |
48 | 19 |
|
49 |
| - .hero .content { |
50 |
| - position: relative; |
51 |
| - z-index: 2; /* Ensures content stays on top of the blurred background */ |
52 |
| - text-align: center; |
53 |
| - color: white; /* Adjust text color for readability */ |
54 |
| - display: flex; |
55 |
| - flex-direction: column; |
56 |
| - justify-content: center; |
57 |
| - align-items: center; |
58 |
| - height: 100%; |
59 |
| - } |
60 |
| - .footer { |
61 |
| - background-color: #212529; |
62 |
| - color: white; |
63 |
| - text-align: center; |
64 |
| - padding: 20px 0; |
65 |
| - margin-top: auto; |
66 |
| - } |
67 |
| - .footer .social a { |
68 |
| - margin: 0 10px; |
69 |
| - color: white; |
70 |
| - font-size: 1.2rem; |
71 |
| - text-decoration: none; |
72 |
| - transition: color 0.3s; |
73 |
| - } |
74 |
| - .footer .social a:hover { |
75 |
| - color: #0d6efd; |
76 |
| - } |
77 |
| - .footer .copyright { |
78 |
| - margin-top: 10px; |
79 |
| - font-size: 1rem; |
80 |
| - color: #6c757d; |
81 |
| - } |
82 |
| - .footer .release { |
83 |
| - margin-top: 8px; |
84 |
| - font-size: 0.7rem; |
85 |
| - color: #8e98a1; |
86 |
| - } |
87 |
| - </style> |
88 | 20 | </head>
|
89 | 21 | <body class="d-flex flex-column min-vh-100">
|
90 | 22 | <!-- Navbar -->
|
91 | 23 | <nav id="navbar" class="navbar navbar-expand-lg navbar-dark bg-dark fixed-top">
|
92 | 24 | <div class="container-fluid">
|
93 |
| - <a class="navbar-brand" href="{{site.baseurl}}/" style="font-family: IBM Plex Mono, sans-serif;"><i class="fas fa-home"></i><span> Ev</span></a> |
| 25 | + <a class="navbar-brand" href="{{site.baseurl}}/" style="font-family: IBM Plex Mono, sans-serif;"><i class="fas fa-home"></i><span id="ev"> Ev</span></a> |
94 | 26 |
|
95 | 27 |
|
96 | 28 | <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
|
|
133 | 65 | </div>
|
134 | 66 | </nav>
|
135 | 67 |
|
| 68 | + |
136 | 69 | <!-- Hero Section -->
|
137 | 70 | {% if page.image %}
|
138 | 71 | <div class="hero" loading="lazy" style="background-image:url('{{site.baseurl}}/assets/img/pages/{{page.image}}?h={{page.image_hash}}'); background-position: center; background-size: cover;">
|
@@ -185,10 +118,13 @@ <h1 class="heading-text" style="font-family: IBM Plex Sans, sans-serif; text-sha
|
185 | 118 | </div>
|
186 | 119 | </div>
|
187 | 120 | </div>
|
| 121 | + <div class="scroll-down" onclick="scrollToNextSection()"> |
| 122 | + <i class="fas fa-chevron-down"></i> |
| 123 | + </div> |
188 | 124 | </div>
|
189 | 125 |
|
190 | 126 | <!-- Content Section -->
|
191 |
| - <section id="content" class="py-5"> |
| 127 | + <section id="page_content" class="py-5"> |
192 | 128 | {{ content }}
|
193 | 129 | </section>
|
194 | 130 |
|
@@ -230,6 +166,15 @@ <h1 class="heading-text" style="font-family: IBM Plex Sans, sans-serif; text-sha
|
230 | 166 | lastScrollTop = scrollTop <= 0 ? 0 : scrollTop; // Ensure scrollTop doesn't go negative
|
231 | 167 | });
|
232 | 168 |
|
| 169 | + function scrollToNextSection() { |
| 170 | + const nextSection = document.querySelector('#page_content'); |
| 171 | + if (nextSection) { |
| 172 | + window.scrollTo({ |
| 173 | + top: nextSection.offsetTop, |
| 174 | + behavior: 'smooth', |
| 175 | + }); |
| 176 | + } |
| 177 | + } |
233 | 178 | </script>
|
234 | 179 | </body>
|
235 | 180 | </html>
|
|
0 commit comments