-
Notifications
You must be signed in to change notification settings - Fork 6
/
index.html
125 lines (110 loc) · 2.9 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
120
121
122
123
124
125
<!-- add a Beautiful navbar here without search option, don't use bootstrap navbar create your custom one with readable code -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
.nav-links {
display: flex;
align-items: center;
justify-content: space-between;
font-size: 1.5rem;
padding: 10px;
gap: 20px;
}
.nav-links-container {
display: flex;
align-items: center;
justify-content: space-between;
padding: 10px;
gap: 20px;
}
.logo {
width: 120px;
}
.icon-person, .icon-search {
width: 40px;
}
.nav-link {
margin: 0px 10px;
padding: 8px;
position: relative;
cursor: pointer;
color: black;
text-decoration: none;
}
.line {
position: absolute;
bottom: 0;
left: 0;
right: 0;
height: 2px;
background: linear-gradient(to right, #6DDFC4, #5D9DEE);
transform: scaleX(0);
transform-origin: center;
transition: transform 0.6s ease-in-out;
}
.line-top {
top: 0;
}
.line-bottom {
top: auto;
}
.nav-link:hover, .nav-link:active {
background: linear-gradient(to right, #6DDFC4, #5D9DEE);
-webkit-text-fill-color: transparent;
background-clip: text;
-webkit-background-clip: text;
background-size: 200%;
animation: moveGradient 1s linear infinite;
.line {
transform: scaleX(1);
}
.line-top {
transform-origin: left;
}
.line-bottom {
transform-origin: right;
}
}
</style>
</head>
<body>
<div class="nav-links">
<div class="logo">
<img src="./assests/ecommerce-websites-logo-design20.jpg" alt="" class="logo">
</div>
<div class="nav-links-container">
<a href="#" class="nav-link">
<div>Home Appliances</div>
<div class="line line-top"></div>
<div class="line line-bottom"></div>
</a>
<a href="#" class="nav-link">
<div>Audio & Video</div>
<div class="line line-top"></div>
<div class="line line-bottom"></div>
</a>
<a href="#" class="nav-link">
<div>Refrigerator</div>
<div class="line line-top"></div>
<div class="line line-bottom"></div>
</a>
<a href="#" class="nav-link">
<div>New Arrivals</div>
<div class="line line-top"></div>
<div class="line line-bottom"></div>
</a>
<img src="./assests/🦆 icon _person_.png" alt="" class="icon-person">
<img src="./assests/search.png" alt="" class="icon-search">
</div>
</div>
</body>
</html>