-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
47 lines (46 loc) · 2 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
<!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"
</head>
<body>
<nav>
<div class="main-nav container flex">
<a href="#" onclick="reload()" class="logo">
<img src="logo.png" alt="news">
</a>
<div class="nav-links">
<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">
<input type="text" id="search-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">
<h1 id="news-title">This is the Title</h1>
<h6 class="news-source" id="news-source">End gadget 26/02/2024</h6>
<p class="news-desc" id="news-desc">Lorem ipsum, dolor sit amet consectetur adipisicing elit. Dolorem dolorum, quasi, voluptatibus quo rem in placeat reprehenderit repellendus veniam, eaque facilis illum. Ad natus ullam eius esse ab? Fuga, veniam.</p>
</div>
</div>
</template>
<script src="script.js"></script>
</body>
</html>