-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
161 lines (151 loc) · 7.21 KB
/
index.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
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Zig Programming Tutorials Blog</title>
<!-- Include Tailwind CSS -->
<link href="https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css" rel="stylesheet">
<style>
/* Override default background color */
body {
background-color: #f7f7f7; /* Light gray background */
font-family: 'sans-serif';
}
/* Update text color for better readability */
.text-dark {
color: #333; /* Dark gray text color */
}
/* Update the color of the header text */
.header-text {
color: #1a202c; /* Darker text color for the header */
}
/* Update the color of the navigation links */
.nav-link {
color: #1a202c; /* Darker text color for navigation links */
}
/* Update the color of the search bar text */
.search-bar::placeholder,
.search-bar {
color: #4a5568; /* Dark gray text color for search bar */
}
/* Update the color of the search button */
.search-button {
background-color: #f7a41d; /* Zig logo color for search button */
color: #fff; /* White text color for search button */
}
/* Update the color of the read more button */
.read-more-button {
background-color: #f7a41d; /* Zig logo color for read more button */
color: #fff; /* White text color for read more button */
}
/* Style the sidebar */
.sidebar {
background-color: transparent; /* Light gray sidebar background */
}
.sidebar-heading {
color: #4a5568; /* Dark gray heading text color */
}
.sidebar-category {
color: #1e40af; /* Blue category text color */
}
.sidebar-category:hover {
color: #1a202c; /* Darker category text color on hover */
}
/* Custom Styles for Responsive Design */
@media (max-width: 767px) {
.lg\:hidden {
display: none !important;
}
}
@media (min-width: 768px) {
.hidden\:lg {
display: none !important;
}
}
</style>
</head>
<body class="font-sans antialiased flex flex-col min-h-screen">
<!-- Navbar -->
<nav class="bg-f7a41d text-white p-4">
<div class="container mx-auto flex justify-between items-center">
<div class="text-2xl font-bold header-text">Zig Tutorials</div>
<!-- Navigation Links -->
<ul class="hidden lg:flex space-x-4">
<li><a href="profile.html" class="nav-link hover:text-gray-300">Home</a></li>
<li><a href="#" class="nav-link hover:text-gray-300">Tutorials</a></li>
<li><a href="#" class="nav-link hover:text-gray-300">About</a></li>
<li><a href="signup.html" class="nav-link hover:text-gray-300">Sign Up</a></li>
<li><a href="login.html" class="nav-link hover:text-gray-300">Login</a></li>
<!-- Additional navigation links can be added here -->
</ul>
<!-- Hamburger Menu for Mobile -->
<div class="block lg:hidden">
<button id="mobile-menu-button" class="flex items-center px-3 py-2 border rounded text-f7a41d border-white hover:text-white hover:border-white">
<svg class="h-4 w-4 fill-current" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
<title>Menu</title>
<path fill-rule="evenodd" d="M20 3H0V1h20v2zm0 6H0V7h20v2zm0 6H0v-2h20v2z" clip-rule="evenodd"></path>
</svg>
</button>
</div>
</div>
</nav>
<!-- Mobile Menu -->
<div class="hidden lg:hidden" id="mobile-menu">
<ul class="flex flex-col items-center mt-4">
<li><a href="profile.html" class="nav-link hover:text-gray-300">Home</a></li>
<li><a href="#" class="nav-link hover:text-gray-300">Tutorials</a></li>
<li><a href="#" class="nav-link hover:text-gray-300">About</a></li>
<li><a href="signup.html" class="nav-link hover:text-gray-300">Sign Up</a></li>
<li><a href="login.html" class="nav-link hover:text-gray-300">Login</a></li>
<!-- Additional navigation links can be added here -->
</ul>
</div>
<!-- Main Content with Sidebar -->
<div class="flex-grow container mx-auto py-8 flex justify-center">
<!-- Main Content -->
<div class="w-full p-4">
<!-- Updated header text color -->
<h1 class="text-3xl font-bold mb-4 header-text text-center">Welcome to Zig Programming Tutorials Blog!</h1>
<p class="text-lg mb-6 text-center">Explore our latest tutorials and articles on Zig programming language.</p>
<!-- Sample Blog Posts Side by Side for Larger Screens -->
<div class="flex flex-wrap justify-center space-x-4 lg:flex-row flex-col">
<!-- First Blog Post -->
<div class="w-full lg:w-1/3 bg-white rounded shadow-md overflow-hidden mb-6">
<img src="images/zig-mark.svg" alt="Blog Post Image" class="w-full h-48 object-contain">
<div class="p-4">
<h2 class="text-xl font-bold mb-2">Getting Started with Zig</h2>
<p class="text-gray-600">Here is a guided pathway for learning the basics of Zig.</p>
<a href="pathway.html" class="mt-2 inline-block px-4 py-2 rounded hover:bg-yellow-500 transition duration-300 read-more-button">Begin Course</a>
</div>
</div>
<!-- Second Blog Post -->
<div class="w-full lg:w-1/3 bg-white rounded shadow-md overflow-hidden mb-6">
<img src="images/zig-mark-neg-black.svg" alt="New Blog Post Image" class="w-full h-48 object-contain">
<div class="p-4">
<h2 class="text-xl font-bold mb-2">Zig Blog</h2>
<p class="text-gray-600">Explore the zig language with tutorials and code snippets.</p>
<a href="blogviews.html" class="mt-2 inline-block px-4 py-2 rounded hover:bg-yellow-500 transition duration-300 read-more-button">Explore Blogs</a>
</div>
</div>
<!-- Third Blog Post (You can add more blog posts here) -->
</div>
</div>
</div>
<!-- Footer -->
<footer class="bg-gray-900 text-white text-center py-4 mt-auto">
<p>© 2024 Zig Tutorials Blog. All rights reserved.</p>
</footer>
<!-- Script to Toggle Mobile Menu -->
<script>
document.getElementById('mobile-menu-button').onclick = function () {
var mobileMenu = document.getElementById('mobile-menu');
if (mobileMenu.style.display === 'block') {
mobileMenu.style.display = 'none';
} else {
mobileMenu.style.display = 'block';
}
};
</script>
</body>
</html>