-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathnews.html
147 lines (136 loc) · 3.91 KB
/
news.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
142
143
144
145
146
147
<!DOCTYPE html>
<html lang="en">
<head>
<title>Document</title>
<style>
body{
background-color: whitesmoke;
}
#newstop{
display: flex;
margin: auto;
margin-top: 30px;
width:70%;
margin-top: 30px;
}
#newsDiv{
/* border: 20px solid yellow; */
margin-top: 50px;
display: grid;
grid-template-columns: 60% 22%;
justify-content: center;
gap:20px;
margin: auto;
color: #2b2c2d;
padding-left: 16px;
/* letter-spacing: 0.4px; */
/* word-spacing: 3.5px; */
}
.news{
box-shadow: rgba(0, 0, 0, 0.05) 0px 0px 0px 1px;
/* border: 2px solid green; */
margin: auto;
margin-top: 50px;
border-radius: 10px;
background-color: white;
}
.feature > div{
display: flex;
box-shadow: rgba(0, 0, 0, 0.05) 0px 0px 0px 1px;
/* border: 1px solid red; */
}
.news > div > div{
/* border: 2px solid blue; */
width: 100%;
}
#newsDiv1 > div{
display: grid;
grid-template-columns: 30% 70%;
gap: 20px;
padding: 16px;
/* border: 10px solid black; */
}
#newsDiv2 > div{
display: grid;
grid-template-columns: 30% 70%;
align-items: center;
gap: 10px;
/* border: 10px solid black; */
}
#newsDiv img:hover{
transform: scale(1.06);
}
#newsDiv1 img{
width: 100%;
height: 160px;
border-radius: 16px;
}
#newsDiv2 > div > div{
font-size: 12px;
}
#feabtn button{
margin-top: 30px;
background-color: white;
padding: 10px;
border: 1px solid rgb(75, 65, 65);
border-radius: 10px;
font-size: 15px;
}
#feabtn{
padding-left: 9%;
}
@media all and (min-width:250px) and (max-width:1000px){
#newsDiv{
display: grid;
grid-template-columns: 1fr;
}
#newsDiv2 > div{
grid-template-columns: 66px 1fr;
gap:16px;
}
#newsDiv2 > div > div{
font-size: 16px;
}
}
</style>
<link rel="stylesheet" href="styles/index.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
</head>
<body>
<!--=== navbar ===-->
<navbar>
</navbar>
<img id="newstop" src="https://tpc.googlesyndication.com/simgad/10926761020657163993?" alt="banner">
<div id="feabtn">
<button id="feabtn1">News Home</button>
<button id="feabtn2">Technology in cricket</button>
</div>
<div id="newsDiv">
<div id="newsDiv1" class="news">
<!-- <h1 style="padding-left: 16px;" id="newshead1"></h1> -->
</div>
<div id="newsDiv2" class="news">
<!-- <h1 style="padding-left: 16px;" id="newshead2" ></h> -->
</div>
</div>
<!--=== footer ===-->
<footer>
</footer>
<script type="module">
import {navbar,footer} from "./scripts/top-bottom.js";
// navbar
let nav=document.querySelector("navbar");
nav.innerHTML=navbar();
// footer
let foot=document.querySelector("footer");
foot.innerHTML=footer();
let bell=document.getElementById("bell")
bell.addEventListener('click',function(){
alert("Notification Enable Successful")
bell.style.color="yellow";
})
</script>
</body>
</html>
<script src='scripts/news.js'></script>
<!-- hover -->