-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
201 lines (172 loc) · 5.83 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>EasyShop.com</title>
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap">
<style>
/* General Styles */
body {
font-family: 'Montserrat', sans-serif;
margin: 0;
padding: 0;
background-color: #f8f8f8;
color: #333;
transition: background-color 0.5s;
}
.container {
max-width: 1400px;
margin: 0 auto;
display: flex;
flex-direction: column;
padding: 20px;
position: relative; /* Added */
}
h1, h2, h3 {
color: #333;
}
/* Header Styles */
.header {
background-color: #ffcc00;
padding: 20px;
text-align: center;
border-bottom: 2px solid #000;
}
/* Content Styles */
.content {
padding: 20px;
display: flex;
flex-wrap: wrap;
justify-content: space-between;
align-items: stretch;
}
.description {
flex: 1;
margin-right: 20px;
}
/* Additional Links Styles */
.additional-links {
width: 100%;
margin-top: 20px;
}
.additional-links h3 {
color: #ffcc00;
}
.additional-links a {
display: block;
margin-bottom: 10px;
color: #333;
text-decoration: none;
font-weight: bold;
}
/* Search Bar Styles */
.search-bar {
position: absolute;
top: 20px;
right: 20px;
display: flex;
align-items: center;
transition: background-color 0.5s;
}
.search-input {
padding: 8px;
border: 1px solid #ccc;
border-radius: 5px;
margin-right: 10px;
width: 150px;
font-size: 14px;
}
.search-button {
padding: 8px 15px;
background-color: #333;
color: #fff;
border: none;
border-radius: 5px;
cursor: pointer;
transition: background-color 0.3s;
font-size: 14px;
}
.search-button:hover {
background-color: #555;
}
/* Navigation Styles */
.navigation {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
display: flex;
flex-direction: column;
align-items: center;
gap: 20px;
padding: 20px;
background-color: rgba(0, 0, 0, 0.5); /* Added */
border-radius: 10px; /* Added */
backdrop-filter: blur(5px); /* Added */
color: #fff; /* Added */
}
.nav-link {
text-decoration: none;
color: #fff;
font-size: 18px;
transition: transform 0.3s, color 0.3s;
}
.nav-link:hover {
transform: scale(1.1);
color: #ffcc00;
}
</style>
</head>
<body>
<div class="container">
<!-- Header Section -->
<div class="header">
<h1 class="highlight">Welcome to EasyShop.com</h1>
<p>Your ultimate destination for quality products and a delightful shopping experience. Explore our extensive collection and indulge in exclusive deals.</p>
</div>
<!-- Content Section -->
<div class="content">
<div class="description">
<h2 class="highlight">Discover EasyShopping!</h2>
<p>EasyShop.com is your go-to destination for a seamless online shopping experience. Immerse yourself in our curated collection, featuring top-tier products ranging from electronics to fashion and home essentials.</p>
<p>Our user-friendly platform ensures hassle-free navigation, while exclusive deals guarantee you get the best value for your purchases. EasyShop.com – where satisfaction meets convenience.</p>
</div>
<!-- Additional Links Section -->
<div class="additional-links">
<h3 class="highlight">Explore More</h3>
<a class="nav-link" href="forum.html">Forum</a>
<a class="nav-link" href="terms.html">Terms</a>
<a class="nav-link" href="shipping.html">Shipping</a>
<a class="nav-link" href="refund.html">Refund Policy</a>
<a class="nav-link" href="reviews.html">Reviews</a>
<a class="nav-link" href="product.html">Products</a>
</div>
</div>
<!-- Search Bar Section -->
<div class="search-bar">
<input type="text" class="search-input" placeholder="Search...">
<button class="search-button" onclick="searchRedirect()">Search</button>
</div>
<!-- Navigation Section -->
</div>
<!-- JavaScript Section -->
<script>
function searchRedirect() {
var searchTerm = document.querySelector('.search-input').value.toLowerCase();
var searchPages = {
'products': 'product.html',
'terms': 'terms.html',
'help': 'help.html',
'refund': 'refund.html',
'forum': 'forum.html'
};
if (searchPages.hasOwnProperty(searchTerm)) {
window.location.href = searchPages[searchTerm];
} else {
alert('No matching page found for the entered search term.');
}
}
</script>
</body>
</html>