-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
185 lines (158 loc) · 3.32 KB
/
styles.css
File metadata and controls
185 lines (158 loc) · 3.32 KB
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
/* General Reset */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Poppins', sans-serif;
background: linear-gradient(to bottom, skyblue, lightpink);
color: #333;
line-height: 1.6;
overflow-x: hidden;
}
/* Navbar */
.navbar {
display: flex;
justify-content: space-between;
align-items: center;
background: rgba(0, 0, 0, 0.8);
padding: 1rem 2rem;
position: sticky;
top: 0;
z-index: 1000;
}
.nav-links {
list-style: none;
display: flex;
gap: 1.5rem;
}
.nav-links a {
text-decoration: none;
color: white;
font-weight: bold;
transition: color 0.3s;
}
.nav-links a:hover {
color: lightyellow;
}
.logo {
font-size: 1.8rem;
color: white;
font-weight: bold;
}
/* Hero Section */
.hero-section {
display: flex;
justify-content: space-between;
align-items: center;
height: 100vh;
padding: 2rem;
background: linear-gradient(to bottom, navy, violet);
color: white;
}
.hero-content {
max-width: 600px;
}
.hero-content h1 {
font-size: 3rem;
animation: typing 4s steps(30, end), blink 0.5s step-end infinite;
white-space: nowrap;
overflow: hidden;
border-right: 2px solid white;
}
@keyframes typing {
from { width: 0; }
to { width: 100%; }
}
@keyframes blink {
from { border-right-color: white; }
to { border-right-color: transparent; }
}
.hero-image img {
width: 400px;
animation: float 3s ease-in-out infinite;
}
@keyframes float {
0%, 100% { transform: translateY(0); }
50% { transform: translateY(-20px); }
}
.btn-primary {
background: yellow;
color: black;
padding: 0.8rem 2rem;
text-decoration: none;
font-size: 1rem;
border-radius: 25px;
transition: transform 0.3s, background 0.3s;
}
.btn-primary:hover {
transform: scale(1.1);
background: lightgreen;
}
/* Adjust the Explore Products button position */
.hero-content .btn-primary {
margin-top: 20px; /* Ensure the button doesn't overlap the text */
}
/* Categories Section */
.categories-section {
padding: 3rem 2rem;
background: lightgray;
text-align: center;
}
.categories-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
gap: 2rem;
margin-top: 2rem;
}
.category-box img {
width: 100px;
border-radius: 50%;
animation: rotate 5s infinite linear;
}
@keyframes rotate {
from { transform: rotate(0); }
to { transform: rotate(360deg); }
}
/* Products Section */
.products-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 2rem;
padding: 2rem;
}
.product-card {
background: white;
padding: 1rem;
border-radius: 10px;
text-align: center;
transition: transform 0.3s;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.product-card:hover {
transform: translateY(-10px);
}
/* Contact Section */
.contact-section form {
display: flex;
flex-direction: column;
gap: 1rem;
max-width: 500px;
margin: 2rem auto;
}
.contact-section input, .contact-section textarea, .btn-primary {
padding: 0.8rem;
border: none;
border-radius: 5px;
}
.contact-section textarea {
height: 100px;
}
/* Footer */
.footer {
text-align: center;
background: black;
color: white;
padding: 1rem 0;
}