-
Notifications
You must be signed in to change notification settings - Fork 173
/
Copy pathWomen sopping webpage
175 lines (149 loc) · 3.5 KB
/
Women sopping webpage
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Women Products | Thrifter's</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<header>
<div class="logo">Thrifter's</div>
<div class="logo_image">
<img src="https://via.placeholder.com/20"></div>
<nav>
<ul>
<li><a href="#">Home</a></li>
<li><a href="#">Products</a></li>
<li><a href="#">About Us</a></li>
<li><a href="#">Contact</a></li>
<li> <a href="#">Your Cart</a></li>
</ul>
</nav>
</header>
<main>
<h1>Women Products</h1>
<div class="product-grid">
<div class="product">
<img src="https://via.placeholder.com/150" alt="Product 1">
<h2>Product 1</h2>
<p>$$$$</p>
<button>Add to Cart</button>
</div>
<div class="product">
<img src="https://via.placeholder.com/150" alt="Product 2">
<h2>Product 2</h2>
<p>$$$$</p>
<button>Add to Cart</button>
</div>
<div class="product">
<img src="https://via.placeholder.com/150" alt="Product 3">
<h2>Product 3</h2>
<p>$$$$</p>
<button>Add to Cart</button>
</div>
<div class="product">
<img src="https://via.placeholder.com/150" alt="Product 4">
<h2>Product 4</h2>
<p>$$$$</p>
<button>Add to Cart</button>
</div>
<div class="product">
<img src="https://via.placeholder.com/150" alt="Product 4">
<h2>Product 5</h2>
<p>$$$$</p>
<button>Add to Cart</button>
</div>
</main>
<footer>
<p>© 2024 Thrifter's. All rights reserved.</p>
</footer>
</body>
</html>
CSS CODE------
*{
box-sizing: border-box;
margin: 0;
padding: 0;
justify-content: center;
}
body {
font-family: Arial, sans-serif;
background-color: #f4f4f4;
}
header {
background-color: #333;
color: #fff;
padding: 15px 20px;
display: flex;
justify-content: space-between;
align-items: center;
}
header .logo {
font-size: 24px;
font-weight: bold;
}
nav ul {
list-style: none;
display: flex;
}
nav ul li {
margin-left: 20px;
}
nav ul li a {
color: #fff;
text-decoration: none;
}
main {
padding: 20px;
}
h1 {
margin-bottom: 20px;
}
.product-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
grid-template-rows: repeat(auto-fill,minmax(400px,1fr));
gap: 20px;
}
.product {
background: #fff;
border: 1px solid #ddd;
border-radius: 5px;
padding: 10px;
text-align: center;
}
.product img {
max-width: 100%;
height: 250px;
width: 250px;
}
.product h2 {
font-size: 18px;
margin: 10px 0;
}
.product p {
font-size: 16px;
color: #333;
}
button {
background-color: #353936;
color: white;
border: none;
padding: 10px 15px;
cursor: pointer;
border-radius: 5px;
margin-top: 5px;
}
button:hover {
background-color: #218838;
}
footer {
text-align: center;
padding: 15px;
background-color: #333;
color: white;
position: relative;
bottom: 0;
width: 100%;
}