-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
62 lines (55 loc) · 2.38 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>News App</title>
<link rel="stylesheet" href="style.css">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap" rel="stylesheet">
</head>
<body>
<nav>
<div class="main-nav container flex">
<a onclick="reload()" href="#" class="company-logo">NEWS</a>
<div class="nav-link">
<ul class="flex">
<li class="hover-link nav-item" id="ipl" onclick="onNavItemClick('ipl')">
IPL
</li>
<li class="hover-link nav-item" id="finance" onclick="onNavItemClick('finance')">
Finance
</li>
<li class="hover-link nav-item" id="politics" onclick="onNavItemClick('politics')">
Politics
</li>
</ul>
</div>
<div class="search-bar flex">
<input id="search-text" type="text" class="news-input" placeholder="e.g. Science">
<button id="search-button" class="search-button">Search</button>
</div>
</div>
</nav>
<main>
<div class="cards-container container flex" id="cards-container">
</div>
</main>
<template id="template-news-card">
<div class="card">
<div class="card-header">
<img src="https://via.placeholder.com/400x200" alt="news-image" id="news-img">
</div>
<div class="card-content">
<h3 id="news-title">This is the title</h3>
<h6 class="news-source" id="news-source">End Gadget 26/08/2023</h6>
<p class="news-desc" id="news-desc">
Lorem ipsum dolor sit amet consectetur adipisicing elit. Fuga esse in dolorum consequatur. Ea autem facilis quibusdam eum, porro maiores, totam consequuntur reprehenderit quod, laboriosam quia inventore saepe fuga non!
</p>
</div>
</div>
</template>
<script src="script.js"></script>
</body>
</html>