-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
114 lines (103 loc) · 3.74 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <!-- displays site properly based on user's device -->
<script src="https://kit.fontawesome.com/5f8d6222a2.js" crossorigin="anonymous"></script>
<link rel="icon" type="image/png" sizes="32x32" href="./assets/images/favicon-32x32.png">
<link rel="stylesheet" href="style.css">
<title>Frontend Mentor | News homepage</title>
</head>
<body>
<div class="container">
<header>
<div class="logo">
<img src="./assets/images/logo.svg" alt="logo">
</div>
<!-- menu toggle -->
<div>
<button class="toggle-btn menu-btn">
<img src="./assets/images/icon-menu.svg" alt="menu icon">
</button>
</div>
<!-- nav -->
<nav id="nav" class="">
<button class="toggle-btn close-btn">
<img src="./assets/images/icon-menu-close.svg" alt="menu close icon">
</button>
<!-- links -->
<ul>
<li><a href="#">Home</a></li>
<li><a href="#">New</a></li>
<li><a href="#">Popular</a></li>
<li><a href="#">Trending</a></li>
<li><a href="#">Categories</a></li>
</ul>
</nav>
</header>
<main class="">
<picture>
<source media="(min-width:600px)" srcset="./assets/images/image-web-3-desktop.jpg">
<source media="(max-width:600px)" srcset="./assets/images/image-web-3-mobile.jpg">
<img src="./assets/images/image-web-3-mobile.jpg" alt="illustration" aria-hidden="true">
</picture>
<h1>The Bright Future of Web 3.0?</h1>
<div>
<p>
We dive into the next evolution of the web that claims to put the power of the platforms back into the hands of the people.
But is it really fulfilling its promise?
</p>
<a href="#" class="btn">Read more</a>
</div>
<section>
<h2>New</h2>
<div>
<h3><a href="#">Hydrogen VS Electric Cars</a></h3>
<p>Will hydrogen-fueled cars ever catch up to EVs?</p>
</div>
<div>
<h3><a href="#">The Downsides of AI Artistry</a></h3>
<p>What are the possible adverse effects of on-demand AI image generation?</p>
</div>
<div>
<h3><a href="#">Is VC Funding Drying Up?</a></h3>
<p>Private funding by VC firms is down 50% YOY. We take a look at what that means.</p>
</div>
</section>
</main>
<section>
<div>
<img src="./assets/images/image-retro-pcs.jpg" alt="retro pc">
<div>
<span class="article-no">01</span>
<h3><a href="#">Reviving Retro PCs</a></h3>
<p>What happens when old PCs are given modern upgrades?</p>
</div>
</div>
<div>
<img src="./assets/images/image-top-laptops.jpg" alt="keyboard keys">
<div>
<span class="article-no">02</span>
<h3><a href="#">Top 10 Laptops of 2022</a></h3>
<p>Our best picks for various needs and budgets.</p>
</div>
</div>
<div>
<img src="./assets/images/image-gaming-growth.jpg" alt="a console controller">
<div>
<span class="article-no">03</span>
<h3><a href="#">The Growth of Gaming</a></h3>
<p>How the pandemic has sparked fresh opportunities.</p>
</div>
</div>
</section>
</div>
<footer>
<div class="attribution">
Challenge by <a href="https://www.frontendmentor.io?ref=challenge" target="_blank">Frontend Mentor</a>.
Coded by <a href="https://www.frontendmentor.io/profile/nicknjagi" target="_blank">Nick Njagi ✌</a>.
</div>
</footer>
<script src="./script.js"></script>
</body>
</html>