-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
63 lines (51 loc) · 2.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<!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="styles.css">
<script src="script.js" defer></script>
</head>
<body>
<nav>
<div class="main-nav container flex">
<a href="" class="company-logo">
<!-- <img src="./images/logo.png" alt="logo"> -->
<h1>NewsFlow</h1>
</a>
<div class="nav-links">
<ul class="flex">
<li class="hover-link nav-item" id="cricket" onClick="onNavItemClick('cricket')">Cricket</li>
<li class="hover-link nav-item" id="india" onClick="onNavItemClick('india')">India</li>
<li class="hover-link nav-item" id="technology" onClick="onNavItemClick('technology')">Technology
</li>
<li class="hover-link nav-item" id="politics" onClick="onNavItemClick('politics')">Politics</li>
</ul>
</div>
<div class="search-bar flex">
<input type="text" class="news-input" id="search-text" placeholder="e.g. Science">
<button class="search-button" id="search-button">Search</button>
</div>
</div>
</nav>
<main>
<div class="cards-container container flex" id="cardscontainer">
</div>
</main>
<template id="template-news-card">
<div class="card">
<div class="card-header">
<img src="https://via.placeholder.com/400x200" alt="" id="news-img">
</div>
<div class="card-content">
<h3 id="news-title">This is the Title</h3>
<h6 class="news-source" id="news-source">constGenius 02/02/2024</h6>
<p class="news-desc" id="news-desc">Lorem ipsum dolor sit, amet consectetur adipisicing elit. Rem
incidunt ratione, dolore beatae quaerat voluptatum autem fugit voluptas minima eligendi facere
tenetur cumque. Dolorem porro, fugiat distinctio a accusamus cum!</p>
</div>
</div>
</template>
</body>
</html>