-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathblog.html
More file actions
128 lines (109 loc) Β· 5.3 KB
/
blog.html
File metadata and controls
128 lines (109 loc) Β· 5.3 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Blog | My Portfolio</title>
<script src="https://cdn.tailwindcss.com"></script>
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="styles.css">
<style>
body { font-family: 'Poppins', sans-serif; }
</style>
</head>
<body class="bg-gray-900 text-white">
<header class="bg-gray-800 shadow-md">
<div class="max-w-7xl mx-auto flex justify-between items-center p-4">
<h1 class="text-2xl font-bold">My Blog</h1>
<nav class="space-x-6">
<a href="index.html" class="hover:text-blue-400">Home</a>
<a href="blog.html" class="text-blue-400 font-semibold">Blog</a>
<a href="#contact" class="hover:text-blue-400">Contact</a>
</nav>
</div>
</header>
<section class="bg-gradient-to-r from-blue-600 to-purple-700 py-16 text-center">
<h2 class="text-4xl font-bold mb-4">Latest Articles & Insights</h2>
<p class="text-lg text-gray-200 max-w-2xl mx-auto">Stay updated with my latest thoughts on web development, design trends, and tech innovations.</p>
</section>
<main class="max-w-7xl mx-auto px-4 py-16 grid grid-cols-1 lg:grid-cols-3 gap-10">
<!-- BLOG POSTS -->
<div class="lg:col-span-2 space-y-8">
<!-- Blog Card -->
<article class="bg-gray-800 rounded-2xl shadow-lg overflow-hidden hover:shadow-blue-500/30 transition">
<img src="ZZZ.png" class="w-full h-56 object-cover">
<div class="p-6">
<span class="text-sm text-blue-400">Web Development</span>
<h3 class="text-2xl font-semibold mt-2">How to Build a Modern Responsive Website</h3>
<p class="text-gray-300 mt-3">Learn the key principles behind creating fast, responsive, and user-friendly modern websites...</p>
<!-- Views & Comments -->
<div class="flex justify-between text-sm text-gray-400 mt-4">
<span>π 1,245 Views</span>
<span>π¬ 18 Comments</span>
</div>
<div class="flex justify-between items-center mt-6">
<span class="text-sm text-gray-400">Nov 27, 2025</span>
<a href="blog-detail.html" class="text-blue-400 hover:underline">Read More β</a>
</div>
</div>
</article>
<article class="bg-gray-800 rounded-2xl shadow-lg overflow-hidden hover:shadow-blue-500/30 transition">
<img src="ZZZ.png" class="w-full h-56 object-cover">
<div class="p-6">
<span class="text-sm text-purple-400">UI/UX Design</span>
<h3 class="text-2xl font-semibold mt-2">Top UI Trends for 2025</h3>
<p class="text-gray-300 mt-3">Explore the most important design trends shaping modern digital experiences...</p>
<div class="flex justify-between text-sm text-gray-400 mt-4">
<span>π 965 Views</span>
<span>π¬ 11 Comments</span>
</div>
<div class="flex justify-between items-center mt-6">
<span class="text-sm text-gray-400">Nov 20, 2025</span>
<a href="blog-detail.html" class="text-blue-400 hover:underline">Read More β</a>
</div>
</div>
</article>
<!-- Pagination -->
<div class="flex justify-center mt-12 space-x-2">
<a href="#" class="px-4 py-2 bg-gray-700 rounded-lg hover:bg-blue-600 transition">1</a>
<a href="#" class="px-4 py-2 bg-gray-700 rounded-lg hover:bg-blue-600 transition">2</a>
<a href="#" class="px-4 py-2 bg-gray-700 rounded-lg hover:bg-blue-600 transition">3</a>
<a href="#" class="px-4 py-2 bg-gray-700 rounded-lg hover:bg-blue-600 transition">Next β</a>
</div>
</div>
<!-- SIDEBAR -->
<aside class="space-y-8">
<!-- Search -->
<div class="bg-gray-800 p-6 rounded-2xl">
<h4 class="text-xl font-semibold mb-4">Search</h4>
<input type="text" placeholder="Search articles..." class="w-full p-3 rounded-lg bg-gray-700 focus:ring-blue-500" />
</div>
<!-- Categories -->
<div class="bg-gray-800 p-6 rounded-2xl">
<h4 class="text-xl font-semibold mb-4">Categories</h4>
<ul class="space-y-2 text-gray-300">
<li><a href="#" class="hover:text-blue-400">Web Development</a></li>
<li><a href="#" class="hover:text-blue-400">UI/UX Design</a></li>
<li><a href="#" class="hover:text-blue-400">Tech News</a></li>
<li><a href="#" class="hover:text-blue-400">Tutorials</a></li>
</ul>
</div>
<!-- Newsletter Subscription -->
<div class="bg-gray-800 p-6 rounded-2xl">
<h4 class="text-xl font-semibold mb-4">Subscribe to Newsletter</h4>
<p class="text-gray-400 mb-4">Get updates straight to your inbox.</p>
<form>
<input type="email" placeholder="Enter your email" class="w-full p-3 mb-3 rounded-lg bg-gray-700 focus:ring-blue-500">
<button type="submit" class="w-full bg-blue-600 hover:bg-blue-700 py-2 rounded-lg font-semibold transition">
Subscribe
</button>
</form>
</div>
</aside>
</main>
<footer class="bg-gray-800 py-8 text-center">
<p class="text-gray-400">Β© 2025 My Portfolio Blog. All Rights Reserved.</p>
</footer>
<script src="script.js"></script>
</body>
</html>