make all buttons working
Browse files- articles.html +72 -0
- index.html +47 -13
articles.html
ADDED
|
@@ -0,0 +1,72 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="en" class="dark">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>Articles - NoCap Nation</title>
|
| 7 |
+
<link href="https://fonts.googleapis.com/css2?family=Bungee&family=Shrikhand:wght@400;700&display=swap" rel="stylesheet">
|
| 8 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
| 9 |
+
<script>
|
| 10 |
+
tailwind.config = {
|
| 11 |
+
darkMode: 'class',
|
| 12 |
+
theme: {
|
| 13 |
+
extend: {
|
| 14 |
+
colors: {
|
| 15 |
+
primary: '#000000',
|
| 16 |
+
secondary: '#1f2937',
|
| 17 |
+
accent: '#4b5563'
|
| 18 |
+
}
|
| 19 |
+
}
|
| 20 |
+
}
|
| 21 |
+
}
|
| 22 |
+
</script>
|
| 23 |
+
<script src="https://unpkg.com/feather-icons"></script>
|
| 24 |
+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css"/>
|
| 25 |
+
</head>
|
| 26 |
+
<body class="bg-gray-900 text-gray-200 min-h-screen">
|
| 27 |
+
<nav class="bg-gray-800 shadow-lg">
|
| 28 |
+
<div class="container mx-auto px-4 py-3">
|
| 29 |
+
<div class="flex justify-between items-center">
|
| 30 |
+
<div class="flex items-center space-x-4">
|
| 31 |
+
<a href="/" class="text-white font-bold text-2xl flex items-center">
|
| 32 |
+
<img src="https://huggingface.co/spaces/ntl69/undefined/resolve/main/images/ChatGPT%20Image%20Oct%2015%2C%202025%2C%2011_20_23%20PM.png" alt="NoCap Nation Logo" class="h-10 w-10 rounded-full mr-3">
|
| 33 |
+
NoCap Nation
|
| 34 |
+
</a>
|
| 35 |
+
</div>
|
| 36 |
+
<div class="hidden md:flex items-center space-x-8">
|
| 37 |
+
<a href="/" class="text-gray-300 hover:text-white transition">Home</a>
|
| 38 |
+
<a href="/articles" class="text-white hover:text-white transition">Articles</a>
|
| 39 |
+
<a href="/categories" class="text-gray-300 hover:text-white transition">Categories</a>
|
| 40 |
+
<a href="/about" class="text-gray-300 hover:text-white transition">About</a>
|
| 41 |
+
</div>
|
| 42 |
+
<div class="flex items-center space-x-4">
|
| 43 |
+
<button class="md:hidden text-gray-300 focus:outline-none">
|
| 44 |
+
<i data-feather="menu"></i>
|
| 45 |
+
</button>
|
| 46 |
+
<a href="/subscribe" class="hidden md:block bg-black px-4 py-2 rounded-lg text-white hover:bg-gray-700 transition">
|
| 47 |
+
Subscribe
|
| 48 |
+
</a>
|
| 49 |
+
</div>
|
| 50 |
+
</div>
|
| 51 |
+
</div>
|
| 52 |
+
</nav>
|
| 53 |
+
|
| 54 |
+
<main class="container mx-auto px-4 py-12">
|
| 55 |
+
<h1 class="text-4xl font-bold mb-8" style="font-family: 'Shrikhand', cursive;">All Articles</h1>
|
| 56 |
+
|
| 57 |
+
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8">
|
| 58 |
+
<!-- Article cards would be generated here from your CMS/backend -->
|
| 59 |
+
<div class="bg-gray-800 rounded-lg p-6">
|
| 60 |
+
<h2 class="text-xl font-bold mb-2">Sample Article Title</h2>
|
| 61 |
+
<p class="text-gray-400 mb-4">This would be a brief excerpt from the article content.</p>
|
| 62 |
+
<a href="/article/1" class="text-white hover:underline">Read more →</a>
|
| 63 |
+
</div>
|
| 64 |
+
<!-- More articles... -->
|
| 65 |
+
</div>
|
| 66 |
+
</main>
|
| 67 |
+
|
| 68 |
+
<script>
|
| 69 |
+
feather.replace();
|
| 70 |
+
</script>
|
| 71 |
+
</body>
|
| 72 |
+
</html>
|
index.html
CHANGED
|
@@ -42,13 +42,13 @@ NoCap Nation
|
|
| 42 |
<a href="#" class="text-gray-300 hover:text-white transition">About</a>
|
| 43 |
</div>
|
| 44 |
<div class="flex items-center space-x-4">
|
| 45 |
-
<button class="md:hidden text-gray-300 focus:outline-none">
|
| 46 |
<i data-feather="menu"></i>
|
| 47 |
</button>
|
| 48 |
-
<
|
| 49 |
Subscribe
|
| 50 |
-
</
|
| 51 |
-
|
| 52 |
</div>
|
| 53 |
</div>
|
| 54 |
</nav>
|
|
@@ -65,13 +65,13 @@ No Cap, Just Facts
|
|
| 65 |
Uncensored articles and unfiltered perspectives
|
| 66 |
</p>
|
| 67 |
<div class="flex justify-center space-x-4 animate__animated animate__fadeIn animate__delay-2s">
|
| 68 |
-
<
|
| 69 |
Read Latest
|
| 70 |
-
</
|
| 71 |
-
<
|
| 72 |
Trending Now
|
| 73 |
-
</
|
| 74 |
-
|
| 75 |
</div>
|
| 76 |
</div>
|
| 77 |
</header>
|
|
@@ -197,10 +197,10 @@ No Cap, Just Facts
|
|
| 197 |
</p>
|
| 198 |
<div class="flex flex-col md:flex-row gap-4 max-w-md mx-auto">
|
| 199 |
<input type="email" placeholder="Your email address" class="flex-grow px-4 py-3 rounded-lg bg-gray-800 text-white focus:outline-none focus:ring-2 focus:ring-gray-600">
|
| 200 |
-
<button class="bg-gray-700 hover:bg-gray-600 transition text-white px-6 py-3 rounded-lg">
|
| 201 |
Subscribe
|
| 202 |
</button>
|
| 203 |
-
|
| 204 |
</div>
|
| 205 |
</div>
|
| 206 |
</section>
|
|
@@ -256,11 +256,45 @@ No Cap, Just Facts
|
|
| 256 |
</div>
|
| 257 |
</div>
|
| 258 |
</footer>
|
| 259 |
-
|
| 260 |
<script>
|
| 261 |
feather.replace();
|
| 262 |
|
| 263 |
-
//
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 264 |
const observer = new IntersectionObserver((entries) => {
|
| 265 |
entries.forEach(entry => {
|
| 266 |
if (entry.isIntersecting) {
|
|
|
|
| 42 |
<a href="#" class="text-gray-300 hover:text-white transition">About</a>
|
| 43 |
</div>
|
| 44 |
<div class="flex items-center space-x-4">
|
| 45 |
+
<button class="md:hidden text-gray-300 focus:outline-none" id="mobile-menu-button">
|
| 46 |
<i data-feather="menu"></i>
|
| 47 |
</button>
|
| 48 |
+
<a href="/subscribe" class="hidden md:block bg-black px-4 py-2 rounded-lg text-white hover:bg-gray-700 transition">
|
| 49 |
Subscribe
|
| 50 |
+
</a>
|
| 51 |
+
</div>
|
| 52 |
</div>
|
| 53 |
</div>
|
| 54 |
</nav>
|
|
|
|
| 65 |
Uncensored articles and unfiltered perspectives
|
| 66 |
</p>
|
| 67 |
<div class="flex justify-center space-x-4 animate__animated animate__fadeIn animate__delay-2s">
|
| 68 |
+
<a href="/articles/latest" class="bg-black px-6 py-3 rounded-lg text-white hover:bg-gray-800 transition">
|
| 69 |
Read Latest
|
| 70 |
+
</a>
|
| 71 |
+
<a href="/articles/trending" class="bg-gray-700 px-6 py-3 rounded-lg text-white hover:bg-gray-600 transition">
|
| 72 |
Trending Now
|
| 73 |
+
</a>
|
| 74 |
+
</div>
|
| 75 |
</div>
|
| 76 |
</div>
|
| 77 |
</header>
|
|
|
|
| 197 |
</p>
|
| 198 |
<div class="flex flex-col md:flex-row gap-4 max-w-md mx-auto">
|
| 199 |
<input type="email" placeholder="Your email address" class="flex-grow px-4 py-3 rounded-lg bg-gray-800 text-white focus:outline-none focus:ring-2 focus:ring-gray-600">
|
| 200 |
+
<button type="submit" class="bg-gray-700 hover:bg-gray-600 transition text-white px-6 py-3 rounded-lg">
|
| 201 |
Subscribe
|
| 202 |
</button>
|
| 203 |
+
</div>
|
| 204 |
</div>
|
| 205 |
</div>
|
| 206 |
</section>
|
|
|
|
| 256 |
</div>
|
| 257 |
</div>
|
| 258 |
</footer>
|
|
|
|
| 259 |
<script>
|
| 260 |
feather.replace();
|
| 261 |
|
| 262 |
+
// Mobile menu toggle
|
| 263 |
+
document.getElementById('mobile-menu-button').addEventListener('click', function() {
|
| 264 |
+
const mobileMenu = document.createElement('div');
|
| 265 |
+
mobileMenu.className = 'fixed inset-0 bg-gray-900 z-50 p-4';
|
| 266 |
+
mobileMenu.innerHTML = `
|
| 267 |
+
<div class="flex justify-between items-center mb-8">
|
| 268 |
+
<span class="text-xl font-bold">Menu</span>
|
| 269 |
+
<button id="close-menu" class="text-gray-400 hover:text-white">
|
| 270 |
+
<i data-feather="x"></i>
|
| 271 |
+
</button>
|
| 272 |
+
</div>
|
| 273 |
+
<div class="flex flex-col space-y-6">
|
| 274 |
+
<a href="/" class="text-white hover:text-gray-300 transition">Home</a>
|
| 275 |
+
<a href="/articles" class="text-white hover:text-gray-300 transition">Articles</a>
|
| 276 |
+
<a href="/categories" class="text-white hover:text-gray-300 transition">Categories</a>
|
| 277 |
+
<a href="/about" class="text-white hover:text-gray-300 transition">About</a>
|
| 278 |
+
<a href="/subscribe" class="text-white hover:text-gray-300 transition">Subscribe</a>
|
| 279 |
+
</div>
|
| 280 |
+
`;
|
| 281 |
+
document.body.appendChild(mobileMenu);
|
| 282 |
+
feather.replace();
|
| 283 |
+
|
| 284 |
+
document.getElementById('close-menu').addEventListener('click', function() {
|
| 285 |
+
document.body.removeChild(mobileMenu);
|
| 286 |
+
});
|
| 287 |
+
});
|
| 288 |
+
|
| 289 |
+
// Form submission for newsletter
|
| 290 |
+
document.querySelector('form')?.addEventListener('submit', function(e) {
|
| 291 |
+
e.preventDefault();
|
| 292 |
+
const email = e.target.querySelector('input[type="email"]').value;
|
| 293 |
+
// Here you would typically send to your backend
|
| 294 |
+
alert(`Thanks for subscribing with ${email}!`);
|
| 295 |
+
e.target.reset();
|
| 296 |
+
});
|
| 297 |
+
// Simple animation for elements when they come into view
|
| 298 |
const observer = new IntersectionObserver((entries) => {
|
| 299 |
entries.forEach(entry => {
|
| 300 |
if (entry.isIntersecting) {
|