-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
303 lines (280 loc) · 10 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
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
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="css/index.css" />
<script src="https://cdn.tailwindcss.com"></script>
<title>Front task</title>
</head>
<body>
<header
role="heading"
class="bg-black h-[70px] sticky top-0 flex flex-row items-center justify-between text-[#FFF] px-40"
>
<h1 class="font-bold text-[24px]">My Blog</h1>
<div class="flex flex-row items-center text-[20px] font-normal">
<a class="ml-4 cursor-pointer">Home</a>
<a class="ml-4 cursor-pointer">about</a>
<a class="ml-4 cursor-pointer">Contact</a>
<div class="relative inline-block ml-5">
<button
onclick="hanldeClickDwopDown()"
class="bg-[#FFF] text-[#333] rounded-[10px] px-4 py-2 cursor-pointer dropbtn"
>
Dropdown
</button>
<div
id="myDropdown"
class="dropdown-content absolute bg-[#f1f1f1] min-w-[140px] overflow-auto rounded-[8px] text-[#333]"
>
<a href="#">Item 1</a>
<a href="#">Item 2</a>
<a href="#">Item 3</a>
</div>
</div>
</div>
</header>
<!-- Start main content -->
<main class="main-container">
<div class="post-container">
<!-- Start article section-->
<section class="article-container">
<article class="article-box">
<img src="css/img/pink.png" alt="Article Image" />
<h2>Mastering React: A Beginner's Guide</h2>
<p>
Dive into the world of React and learn how to build powerful web
applications.
</p>
<p class="author-date">John Doe • May 1, 2023</p>
</article>
<article class="article-box">
<img src="css/img/pink.png" alt="Article Image" />
<h2>Designing for Accessibility</h2>
<p>
Learn how to create inclusive and accessible designs for all users.
</p>
<p class="author-date">Jane Smith • April 15, 2023</p>
</article>
<article class="article-box">
<img src="css/img/pink.png" alt="Article Image" />
<h2>The Future of Sustainable Fashion</h2>
<p>
Explore the latest trends and innovations in eco-friendly fashion.
</p>
<p class="author-date">Sarah Lee • March 28, 2023</p>
</article>
<article class="article-box">
<img src="css/img/pink.png" alt="Article Image" />
<h2>The Art of Minimalist Living</h2>
<p>
Discover the benefits and practical tips for living a minimalist
lifestyle.
</p>
<p class="author-date">Michael Johnson • February 10, 2023</p>
</article>
<article class="article-box">
<img src="css/img/pink.png" alt="Article Image" />
<h2>Mastering React: A Beginner's Guide</h2>
<p>
Dive into the world of React and learn how to build powerful web
applications.
</p>
<p class="author-date">John Doe • May 1, 2023</p>
</article>
<article class="article-box">
<img src="css/img/pink.png" alt="Article Image" />
<h2>Designing for Accessibility</h2>
<p>
Learn how to create inclusive and accessible designs for all users.
</p>
<p class="author-date">Jane Smith • April 15, 2023</p>
</article>
<article class="article-box">
<img src="css/img/pink.png" alt="Article Image" />
<h2>The Future of Sustainable Fashion</h2>
<p>
Explore the latest trends and innovations in eco-friendly fashion.
</p>
<p class="author-date">Sarah Lee • March 28, 2023</p>
</article>
<article class="article-box">
<img src="css/img/pink.png" alt="Article Image" />
<h2>The Art of Minimalist Living</h2>
<p>
Discover the benefits and practical tips for living a minimalist
lifestyle.
</p>
<p class="author-date">Michael Johnson • February 10, 2023</p>
</article>
</section>
<!-- finish article section-->
<!-- Start tweet section -->
<section class="tweet">
<h3 class="tweet__text">Tweets</h3>
<ul>
<li>
<a href="#">
<div class="tweet__inner">
<div class="tweet_left">
<svg
xmlns="http://www.w3.org/2000/svg"
fill="none"
viewBox="0 0 24 24"
width="24px"
height="24px"
stroke-width="1.5"
stroke="currentColor"
class="size-6"
>
<path
stroke-linecap="round"
stroke-linejoin="round"
d="M15.75 6a3.75 3.75 0 1 1-7.5 0 3.75 3.75 0 0 1 7.5 0ZM4.501 20.118a7.5 7.5 0 0 1 14.998 0A17.933 17.933 0 0 1 12 21.75c-2.676 0-5.216-.584-7.499-1.632Z"
/>
</svg>
</div>
<div class="tweet__right">
<h4 class="tweet__content">
Check out this new blog post about sustainable fashion
</h4>
<div class="tweet__detail">
<span class="tweet__author"> Example User </span>
<span class="tweet__white_space"> </span>
<span class="tweet__white_space"> </span>
<span class="tweet__date"> June 1, 2023 </span>
</div>
</div>
</div>
</a>
</li>
</ul>
</section>
<!-- finish tweet section -->
</div>
<!-- start the sidebar section-->
<section class="sidebar">
<!-- start the upper sidebar section-->
<div class="sidebar-up">
<div class="sidebar-up__box">
<div class="sidebar-up__box-header">
<h1 class="sidebar__box-header">About the Blog</h1>
</div>
<div class="sidebar-up__box-content">
<p class="sidebar__box-text">
Welcome to my personal blog, where I share my
thoughts, experiences, and insights on a variety of
topics. From technology and design to lifestyle and
personal growth, you'll find a wide range of content
to explore.
</p>
</div>
</div>
<div id="secound-box" class="sidebar-up__box">
<div class="sidebar-up__box-header">
<h1 class="sidebar__box-header">Reccent Posts</h1>
</div>
<div class="sidebar__box-contet">
<ul class="sidebar__box-list">
<li class="sidebar__box-item">Mastering React: A Beginner's Guide</li>
<li class="sidebar__box-item">Designing for Accessibility</li>
<li class="sidebar__box-item">The Future of Sustainable Fashion</li>
<li class="sidebar__box-item">The Art of Minimalist Living</li>
</ul>
</div>
</div>
</div>
<!-- finish the upper sidebar section-->
<!-- start the down sidebar section-->
<div class="sidebar-bottom">
<div class="sidebar-bottom__box">
<div class="sidebar-bottom__box-header">
<h1 class="sidebar__box-header">News & Updates</h1>
</div>
<div class="sidebar__box-contet">
<ul class="sidebar__box-list">
<li class="sidebar__box-item">The Latest Tech Trends to Watch</li>
<li class="sidebar__box-item">The Rise of Sustainable Architecture</li>
<li class="sidebar__box-item">The Future of Remote Work</li>
<li class="sidebar__box-item">The Intersection of Art and Technology</li>
</ul>
</div>
</div>
</div>
<!-- finish the down sidebar section-->
</section>
<!-- finish the sidebar section -->
</main>
<!-- finish main content -->
<!-- Start footer -->
<footer class="footer-container">
<div class="footer-top-container">
<!-- links -->
<div class="footer-website-name">
<!-- website name -->
<span>Website Name</span>
</div>
<div class="footer-links-container">
<!-- link columns -->
<div class="footer-links-list">
<h3 class="footer-links-header">Resources</h3>
<ul>
<li><a href="#">Docs</a></li>
<li><a href="#">Learn</a></li>
<li><a href="#">Showcase</a></li>
<li><a href="#">Blog</a></li>
<li><a href="#">Previews</a></li>
</ul>
</div>
<div class="footer-links-list">
<h3 class="footer-links-header">More</h3>
<ul>
<li><a href="#">Github</a></li>
<li><a href="#">Releases</a></li>
<li><a href="#">Contact Sales</a></li>
</ul>
</div>
<div class="footer-links-list">
<h3 class="footer-links-header">About Us</h3>
<ul>
<li><a href="#">Open Source Software</a></li>
<li><a href="#">Github</a></li>
<li><a href="#">X Sales</a></li>
</ul>
</div>
<div class="footer-links-list">
<h3 class="footer-links-header">Legal</h3>
<ul>
<li><a href="#">Privacy Policy</a></li>
<li><a href="#">Cookies Preferences</a></li>
</ul>
</div>
</div>
</div>
<div class="footer-paragraph">
<!-- footer paragraph -->
<span>@ 2024 Our Website</span>
</div>
</footer>
<!-- Start dropdown script-->
<script>
function hanldeClickDwopDown() {
document.getElementById("myDropdown").classList.toggle("show");
}
window.onclick = function (event) {
if (!event.target.matches(".dropbtn")) {
var dropdowns = document.getElementsByClassName("dropdown-content");
var i;
for (i = 0; i < dropdowns.length; i++) {
var openDropdown = dropdowns[i];
if (openDropdown.classList.contains("show")) {
openDropdown.classList.remove("show");
}
}
}
};
</script>
<!-- finish dropdown script-->
</body>
</html>