forked from Yashu1th/news_application
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
119 lines (116 loc) · 4.25 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link
href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha3/dist/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha384-KK94CHFLLe+nY2dmCWGMq91rCGa5gtU4mk92HdvYe+M/SXH301p5ILy+dN9+nJOZ"
crossorigin="anonymous"
/>
<link rel="stylesheet" href="style.css" />
<title>News App</title>
</head>
<body>
<!-- navbar -->
<nav class="navbar navbar-expand-lg " style="background-color: #bcd5ed;">
<div class="container">
<a class="navbar-brand" href="#"
><img src="logo.png" alt="logo" width="150px" height="75px"
/></a>
<button
class="navbar-toggler"
type="button"
data-bs-toggle="collapse"
data-bs-target="#navbarSupportedContent"
aria-controls="navbarSupportedContent"
aria-expanded="false"
aria-label="Toggle navigation"
>
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav ms-auto mb-2 mb-lg-0">
<li class="nav-item">
<a class="nav-link" href="#" id="ipl" onclick="navItemClick('ipl')">IPL</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#" id="finance" onclick="navItemClick('finance')">Finance</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#" id="politics" onclick="navItemClick('politics')">Politics</a>
</li>
</ul>
<form
class="d-flex ms-auto"
role="search"
action=""
name="news_search"
>
<input id="search-text" type="text" class="news-input form-control" placeholder="e.g. Science"> <br>
<button id="search-button" class="search-button btn btn-outline-danger">Search</button>
<!-- <input
id="search-text"
class="form-control me-2"
type="search"
placeholder="Science"
aria-label="Search"
/>
<button id="search-button"class="btn btn-outline-danger" type="submit">Search</button> -->
</form>
</div>
</div>
</nav>
<!-- cards -->
<main>
<div class="container mt-5" id="">
<div class="row" id="cards-container">
</div>
</div>
</main>
<!-- template -->
<template id="template-news-card">
<div class="card col-md-4 mb-3" id="template-news-card">
<img
src="https://via.placeholder.com/400x200"
class="card-img-top"
alt="..."
id="news-img"
/>
<div class="card-body">
<h4 class="card-title" id="news-title">Card title</h4>
<h6 class="card-subtitle disabled" id="news-source">xyz company</h6> <br>
<p class="card-text" id="news-desc">
Some quick example text to build on the card title and make up the
bulk of the card's content.
</p>
<!-- <a href="#" class="btn btn-primary">Go somewhere</a> -->
</div>
</div>
<!-- <div class="card" id="template-news-card">
<div class="card-header">
<img
src="https://via.placeholder.com/400x200"
class="card-img-top"
alt="temp"
id="news-img"
/>
</div>
<div class="card-body">
<h3 class="card-title" id="news-title">Card title</h3>
<h6 class="card-subtitle" id="news-source">xyz company</h6>
<p class="card-text" id="news-desc">With supporting text below as a natural lead-in to additional content.</p>
<a href="#" class="btn btn-primary">Go somewhere</a>
</div>
</div> -->
</template>
<script src="index.js"></script>
<script
src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha3/dist/js/bootstrap.bundle.min.js"
integrity="sha384-ENjdO4Dr2bkBIFxQpeoTz1HIcje39Wm4jDKdf19U8gI4ddQ3GYNS7NTKfAdVQSZe"
crossorigin="anonymous"
></script>
</body>
</html>