-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnev-2.html
261 lines (222 loc) · 6.99 KB
/
nev-2.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
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="https://kit.fontawesome.com/1ec93368b5.js" crossorigin="anonymous"></script>
<link href='https://unpkg.com/boxicons@2.1.4/css/boxicons.min.css' rel='stylesheet'>
<link rel="icon" href="https://as1.ftcdn.net/v2/jpg/00/89/85/08/1000_F_89850847_XMDlBNzweDnjvPbkjD1PigAVScHSKKnh.jpg">
<title>Nevbar No.2</title>
<style>
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');
* {
margin: 0;
padding: 0;
box-sizing: border-box;
text-decoration: none;
scroll-behavior: smooth;
font-family: 'poppins', sans-serif;
}
.dark-mode {
background: black;
color: white;
}
html {
font-size: 10px;
}
body {
background: white;
color: black;
}
.header {
position: fixed;
top: 0;
left: 0;
width: 100%;
padding: 2rem 7%;
background: blue;
display: flex;
align-items: center;
z-index: 100;
transition: .5s;
}
.logo {
font-size: 3rem;
color: white;
font-weight: 600;
cursor: default;
margin-right: auto;
}
.navbar a {
font-size: 2rem;
color: white;
font-weight: 500;
margin-right: 3.5rem;
position: relative;
}
.navbar a:hover {
color: darkblue;
}
#menu-icon {
font-size: 3rem;
color: white;
display: none;
}
#darkmode-icon {
font-size: 2.5rem;
color: white;
display: block;
margin-right: 20px;
}
.container-fluid {
width: 100%;
height: 150vh;
display: flex;
justify-content: space-around;
align-items: center;
}
.container-fluid .box {
background: rgb(74, 7, 230);
border-radius: 10%;
height: 40rem;
width: 40rem;
}
.box-content {
background: rgb(163, 138, 221);
height: 25rem;
width: 25rem;
margin: 7.5rem;
border-radius: 6px;
}
.box-content p {
padding: 3rem;
font-size: 1.5rem;
color: white;
font-weight: bold;
}
.footer {
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
padding: 2rem 7%;
background: blue;
}
.footer-text p {
font-size: 1.6rem;
color: white;
}
.foteer-icon-top a {
display: inline-flex;
justify-content: center;
align-items: center;
padding: .8rem;
border-radius: .8rem;
background: white;
border: .2rem solid blue;
color: blue;
outline: .2rem solid transparent;
transition: .5s ease;
}
.foteer-icon-top a:hover {
outline-color: var(--white-color);
}
.foteer-icon-top a i {
font-size: 2.4rem;
color: #333;
}
@media (max-width:950px) {
#menu-icon {
display: block;
}
.navbar {
position: absolute;
top: 100%;
left: 0;
width: 100%;
padding: 1rem 3%;
background: rgb(126, 124, 231);
border-top: .1rem solid rgba(0, 0, 0, .2);
box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .1);
display: none;
}
.navbar.active {
display: block;
}
.navbar a {
display: block;
font-size: 2rem;
margin: 3rem 0;
color: white;
}
.container-fluid {
flex-direction: column;
}
.footer {
padding: 2rem 3%;
}
}
</style>
</head>
<body>
<header class="header">
<a href="" class="logo">Portfolio</a>
<nav class="navbar">
<a href="#">Home</a>
<a href="#">About</a>
<a href="#">Services</a>
<a href="#">Portfolio</a>
<a href="#">Contect Us</a>
</nav>
<div class="bx bx-moon" id="darkmode-icon"></div>
<div class="bx bx-menu" id="menu-icon"></div>
</header>
<main class="content">
<div class="container-fluid">
<div class="box">
<div class="box-content">
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Placeat fugit incidunt nam perspiciatis
corrupti illo deserunt, accusamus provident laboriosam debitis.</p>
</div>
</div>
<div class="box">
<div class="box-content">
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Placeat fugit incidunt nam perspiciatis
corrupti illo deserunt, accusamus provident laboriosam debitis.</p>
</div>
</div>
</div>
</main>
<br>
<hr>
<footer class="footer">
<div class="footer-text">
<p>Cpoyright © 2023 By Gopal Keshri | All Right Reserved</p>
</div>
<div class="foteer-icon-top">
<a href="#home"><i class='bx bx-up-arrow-alt'></i></a>
</div>
</footer>
<script>
// menu bar Responsive code
window.onscroll = () => {
let header = document.querySelector(".header");
menuicon.classList.remove("bx-x");
navbar.classList.remove("active");
};
let menuicon = document.querySelector("#menu-icon");
let navbar = document.querySelector(".navbar");
menuicon.onclick = () => {
menuicon.classList.toggle("bx-x");
navbar.classList.toggle("active");
};
// menu bar Responsive code end
// dark-mode code
let darkmode = document.getElementById('darkmode-icon');
darkmode.onclick = () => {
darkmode.classList.toggle("bx-sun");
document.body.classList.toggle("dark-mode");
}
//dark-mode code end
</script>
</body>