-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
141 lines (131 loc) · 5.03 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
<!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 -->
<link
rel="icon"
type="image/png"
sizes="32x32"
href="./assets/images/favicon-32x32.png"
/>
<link rel="stylesheet" href="./styles.css">
<title>Frontend Mentor | News homepage</title>
</head>
<body>
<header>
<img class="header-img" src="assets/images/logo.svg" alt="news logo" />
<div class="sidebar-overlay" id="sidebar-panel">
<div class="sidebar" id="sidebar">
<div class="sidebar-content">
<img class="header-img close" onclick="closeSidebar()" src="assets/images/icon-menu-close.svg" alt="menu close"/>
<nav class="sidebar-links"><a>Home</a> <a>New</a> <a>Popular</a> <a>Trending</a> <a>Categories</a></nav>
</div>
</div>
</div>
<img class="header-img open" onclick="openSidebar()" src="assets/images/icon-menu.svg" alt="menu open"/>
</header>
<main>
<div class="main-article">
<img
class="main-article-image"
src="assets/images/image-web-3-mobile.jpg"
alt="puzzle pieces article image for web 3"
/>
<h1 class="article-title main-article-header">
The Bright Future of Web 3.0?
</h1>
<div class="main-article-text-button">
<p class="article-body main-article-flavor-text">
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>
<button class="main-article-button">READ MORE</button>
</div>
</div>
<div class="new-article-list">
<h2 class="new-header">New</h2>
<div class="new-article">
<h3 class="article-title new-title">Hydrogen VS Electric Cars</h3>
<p class="article-body new-body">
Will hydrogen-fueled cars ever catch up to EVs?
</p>
</div>
<hr>
<div class="new-article">
<h3 class="article-title new-title">The Downsides of AI Artistry</h3>
<p class="article-body new-body">
What are the possible adverse effects of on-demand AI image
generation?
</p>
</div>
<hr>
<div class="new-article">
<h3 class="article-title new-title">Is VC Funding Drying Up?</h3>
<p class="article-body new-body">
Private funding by VC firms is down 50% YOY. We take a look at what
that means.
</p>
</div>
</div>
<div class="trending-articles">
<div class="highlight-article">
<img class="highlight-image" src="assets/images/image-retro-pcs.jpg" alt="retro pcs" />
<div class="highlight-description">
<h2 class="highlight-header">01</h2>
<h3 class="article-title highlight-title">Reviving Retro PCs</h3>
<p class="article-body highlight-body">
What happens when old PCs are given modern upgrades?
</p>
</div>
</div>
<div class="highlight-article">
<img class="highlight-image" src="assets/images/image-top-laptops.jpg" alt="unique laptops" />
<div class="highlight-description">
<h2 class="highlight-header">02</h2>
<h3 class="article highlight-title">Top 10 Laptops of 2022</h3>
<p class="article-body highlight-body">
Our best picks for various needs and budgets.
</p>
</div>
</div>
<div class="highlight-article">
<img
class="highlight-image"
src="assets/images/image-gaming-growth.jpg"
alt="controller in air above hand"
/>
<div class="highlight-description">
<h2 class="highlight-header">03</h2>
<h3 class="article highlight-title">The Growth of Gaming</h3>
<p class="article-body highlight-body">
How the pandemic has sparked fresh opportunities.
</p>
</div>
</div>
</div>
</main>
<footer>
<div class="attribution">
Challenge by
<a href="https://www.frontendmentor.io?ref=challenge" target="_blank"
>Frontend Mentor</a
>. Coded by <a href="#">Tascate</a>.
</div>
</footer>
<script>
function openSidebar() {
document.getElementById("sidebar-panel").style.visibility = "visible";
document.getElementById("sidebar-panel").classList.add('visible');
document.getElementById("sidebar").classList.add('visible');
}
function closeSidebar() {
document.getElementById("sidebar-panel").classList.remove('visible');
document.getElementById("sidebar").classList.remove('visible');
document.getElementById("sidebar-panel").style.visibility = "collapse";
}
</script>
</body>
</html>