-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
222 lines (202 loc) · 10.2 KB
/
Copy pathindex.html
File metadata and controls
222 lines (202 loc) · 10.2 KB
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
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
<!DOCTYPE html>
<!-- Define document type as HTML5 -->
<html lang="en">
<head>
<!-- Set character encoding to UTF-8 -->
<meta charset="UTF-8" />
<!-- Set viewport for responsive design on all devices -->
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<!-- Favicon -->
<link rel="icon" href="assets/images/logo-browser.png" type="image/x-icon">
<!-- Page Title and Meta Tags -->
<!-- Set the page title shown on browser tab -->
<title>Home - NileNotes</title>
<meta name="description"
content="NileNotes is a modern personal blog CMS inspired by Egyptian culture. Share your stories, explore diverse articles, and connect with a vibrant community. Discover technology, travel, health, education, and more on NileNotes." />
<meta name="keywords"
content="NileNotes, Blog, Blogs, blog, Posts, books, Nature, development, writing, reading, social" />
<meta name="author" content="NileNotes - Personal Blog CMS" />
<!-- Swiper CSS -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/swiper@10/swiper-bundle.min.css" />
<!-- AOS Scroll Animation -->
<link href="https://unpkg.com/aos@2.3.4/dist/aos.css" rel="stylesheet">
<!-- Link to fonts -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Asimovian&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Poppins&display=swap" rel="stylesheet" />
<!-- Font Awesome for icons -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/7.0.1/css/all.min.css"
integrity="sha512-2SwdPD6INVrV/lHTZbO2nodKhrnDdJK9/kg2XD1r9uGqPo1cUbujc+IYdlYdEErWNu69gVcYgdxlmVmzTWnetw=="
crossorigin="anonymous" referrerpolicy="no-referrer" />
<!-- ============= PREVENT FART (Flash of Incorrect Theme) =============== -->
<script>
(function () {
try {
const saved = localStorage.getItem("site-theme");
if (saved === "dark" || saved === "light") {
document.documentElement.setAttribute("data-theme", saved);
} else {
// ✅ Default = dark
document.documentElement.setAttribute("data-theme", "dark");
localStorage.setItem("site-theme", "dark");
}
} catch (e) {
document.documentElement.setAttribute("data-theme", "dark");
}
})();
</script>
<!-- Main style -->
<link rel="stylesheet" href="css/main.css" />
</head>
<body>
<!-- Spinner Loader -->
<!-- <div id="loader">
<div class="spinner"></div>
</div> -->
<!-- Logo-Branded Loader -->
<div id="loader">
<div class="loader-content">
<img src="assets/images/logo-browser.png" alt="My Blog Logo" class="loader-logo">
<p class="loader-text">Loading...</p>
</div>
</div>
<!-- THEME TOGGLE BUTTON: place this near end of body -->
<!-- This button is fixed to the middle-right of the viewport -->
<button id="theme-toggle" class="theme-toggle" aria-label="Toggle dark mode" aria-pressed="false"
title="Toggle theme">
<!-- Icon inside the button (will be updated by JS) -->
<span class="theme-icon"></span>
</button>
<!-- Header >> Nav -->
<header class="navbar sticky">
<div class="container navbar-container">
<!-- Logo -->
<div class="logo-box">
<a href="index.html" class="logo-img navbar-logo">
<img src="assets/images/logo-browser.png" alt="Logo" loading="lazy" />
</a>
<a href="index.html" class="logo-text navbar-logo">
<span class="logoSpan">Nile</span>Notes
</a>
</div>
<!-- Navigation Links -->
<nav class="nav-links" id="navLinks" aria-expanded="false">
<!-- <a href="index.html" class="nav-link-item">Home</a>
<a href="about-us.html" class="nav-link-item">About</a>
<a href="category.php?cat=All" class="nav-link-item">Categories</a>
<a href="submitPost.php" class="nav-link-item">Create a Post</a>
<a href="contact.php" class="nav-link-item">Contact</a> -->
</nav>
<!-- Right-side controls -->
<div class="nav-actions">
<!-- Search Toggle -->
<button class="search-toggle" aria-label="Open search">
<i class="fa-solid fa-magnifying-glass"></i>
</button>
<!-- Hidden Search Form -->
<form class="search-form" id="navbarSearchForm" role="search">
<div class="search-wrapper">
<input type="text" id="navbarSearchInput" class="search-input" placeholder="Search articles..."
aria-label="Search articles" />
<button type="button" class="clear-btn" aria-label="Clear search">
<i class="fa-solid fa-xmark"></i>
</button>
<small class="char-counter">0 / 50</small>
</div>
<button type="submit" class="search-submit">
<!-- <i class="fa-solid fa-arrow-right"></i> -->
Search
</button>
</form>
<!-- Hamburger -->
<button class="hamburger" id="hamburger" aria-label="Toggle menu" aria-controls="navLinks"
aria-expanded="false">
<span></span><span></span><span></span>
</button>
</div>
</div>
</header>
<!-- Main content area -->
<main class="main-content container">
<!-- Hero section with welcoming message and call-to-action -->
<section class="hero-section hero">
<h1 class="hero-title">
Welcome to <span>NileNotes</span><br>
<span class="hero-title-span">Personal Blog CMS - Your Gateway to Egyptian Stories</span>
</h1>
<p class="hero-subtitle">Discover articles on various topics, and share your own stories!</p>
<a href="submitPost.php" class="hero-button hero-cta">Submit Your Post</a>
</section>
<!-- Latest blog posts grid -->
<section class="featured-posts">
<h2 class="section-title">Featured Articles</h2>
<div class="swiper mySwiper">
<div class="swiper-wrapper" id="top-posts-container">
<!-- Cards will be injected dynamically -->
</div>
<!-- Controls -->
<div class="swiper-pagination"></div>
<div class="swiper-button-prev"></div>
<div class="swiper-button-next"></div>
</div>
</section>
<!-- Categories overview section -->
<section class="categories-overview">
<h2 class="section-title">Categories</h2>
<ul class="categories-list">
<!-- Categories will be injected dynamically -->
<!-- <li class="category-item" data-aos="fade-right" data-aos-duration="400"><a
href="category.php?cat=Technology" class="category-link">Technology</a>
</li>-->
</ul>
<div class="categories-pagination"></div>
</section>
</main>
<!-- Footer section -->
<footer class="footer">
<div class="container footer-container">
<h2 class="footer-title">NileNotes - Personal Blog CMS</h2>
<div class="footer-links">
<a href="index.html" class="footer-link">Home</a>
<a href="about.html" class="footer-link">About</a>
<a href="contact.php" class="footer-link">Contact Us</a>
</div>
<p class="footer-text">NileNotes is a personal blog CMS
designed to share stories and articles on various
topics. <br>Join our community and start sharing your thoughts today!</p>
<p class="footer-text">For inquiries, please contact us at <a
href="mailto:ahmed.hafez101112131415@gmail.com" class="footer-link">NileNotes@GMAIL</a>
</p>
<div class="footer-bottom">
<div class="footer-left">
<p class="footer-credit">Designed by <a href="https://ahmedhafezoffic.netlify.app/" target="_blank"
class="footer-link">Ahmed
Hafez</a></p>
<p class="footer-social">Follow us on:
<a href="https://github.com/AhmedHafez7-Eng" class="footer-link">Github</a> |
<a href="https://www.linkedin.com/in/ahmedhafez247/" class="footer-link">LinkedIn</a> |
<a href="https://www.facebook.com/profile.php?id=100005116839262"
class="footer-link">Facebook</a> |
<a href="https://www.instagram.com/ahmedhafez247/" class="footer-link">Instagram</a>
</p>
</div>
<div class="footer-right">
<p class="footer-text">Powered by <a href="index.html" class="footer-link">NileNotes</a></p>
<p class="footer-text">© 2025 Personal Blog CMS. All rights reserved.</p>
</div>
</div>
</div>
</footer>
<!-- Swiper JS -->
<script src="https://cdn.jsdelivr.net/npm/swiper@11/swiper-bundle.min.js"></script>
<!-- AOS Scroll Animation JS -->
<script src="https://unpkg.com/aos@2.3.4/dist/aos.js"></script>
<!-- Font Awesome JS -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/7.0.1/js/all.min.js"
integrity="sha512-6BTOlkauINO65nLhXhthZMtepgJSghyimIalb+crKRPhvhmsCdnIuGcVbR5/aQY2A+260iC1OPy1oCdB6pSSwQ=="
crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<!-- Link to main JavaScript file -->
<script type="module" src="js/main.js"></script>
</body>
</html>