-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.css
249 lines (215 loc) · 4.36 KB
/
index.css
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
body {
font-family: 'Trebuchet MS', Arial, sans-serif;
margin: 0;
padding: 0;
background-color: #f4f4f9;
color: #333;
}
header {
display: flex;
justify-content: space-between;
align-items: center;
background-color: #282c34;
color: white;
padding: 10px 20px;
box-shadow: 0 10px 18px rgba(0, 0, 0, 0.2);
}
header .logo img {
height: 120px;
width:120px;
filter: invert(1);
}
header nav ul {
display: flex;
list-style: none;
gap: 20px;
}
header nav ul li a {
text-decoration: none;
font-size: 16px;
color: white;
transition: color 1.3s ease;
}
header nav ul li a:hover {
color: #50d890;
}
.auth-buttons button {
padding: 10px 15px;
background-color: #50d890;
border: none;
border-radius: 5px;
color: white;
cursor: pointer;
transition: background-color 0.3s ease;
}
.auth-buttons button:hover {
background-color: #45c27e;
}
.container {
text-align: center;
padding: 20px;
}
.hero {
background-image: url('images/hero-bg.webp');
background-size: cover;
background-position: center center;
background-repeat: no-repeat;
color: white;
padding: 50px 20px;
}
.hero .search-bar input {
padding: 10px;
font-size: 16px;
width: 70%;
border: 2px solid #50d890;
border-radius: 5px;
margin-right: 10px;
}
header {
position: sticky;
top: 0;
z-index: 100;
background-color: #282c34;
}
html {
scroll-behavior: smooth;
}
.hero .search-bar button {
padding: 10px;
font-size: 16px;
background-color: #50d890;
border: none;
border-radius: 5px;
color: white;
cursor: pointer;
}
.featured-courses, .categories, .testimonials {
padding: 20px;
margin-top: 20px;
}
.courses-grid, .categories-grid {
display: flex;
justify-content: center;
gap: 20px;
flex-wrap: wrap;
margin-top: 20px;
}
.course-card, .category {
background-color: white;
padding: 15px;
border-radius: 10px;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
text-align: center;
width: 200px;
transition: transform 0.3s ease, background-color 0.3s ease;
}
.course-card:hover, .category:hover {
transform: scale(1.05);
background-color: #f0f9f6;
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}
.course-card button {
margin-top: 10px;
padding: 8px 12px;
background-color: #50d890;
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
transition: background-color 0.3s ease;
}
.course-card button:hover {
background-color: #45c27e;
}
.courses-grid h3, .categories-grid .category {
font-size: 18px;
font-weight: bold;
color: #333;
}
.courses-grid p {
font-size: 14px;
color: #666;
margin: 10px 0;
}
.testimonials {
padding: 20px;
margin-top: 40px;
background-color: #f9f9f9;
border-radius: 10px;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}
.testimonials h2 {
font-size: 24px;
margin-bottom: 20px;
text-align: center;
color: #333;
}
.testimonial {
display: flex;
align-items: center;
margin-bottom: 20px;
padding: 10px;
border: 1px solid #ddd;
border-radius: 8px;
background-color: white;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.testimonial-profile {
width: 50px;
height: 50px;
margin-right: 15px;
background-color: #ccc;
border-radius: 50%;
display: flex;
justify-content: center;
align-items: center;
}
.testimonial-profile .placeholder {
width: 30px;
height: 30px;
background-color: #999;
border-radius: 50%;
}
.testimonial p {
font-size: 16px;
color: #555;
flex: 1;
}
.testimonial strong {
font-weight: bold;
}
.testimonial:hover {
background-color: #f1f1f1;
cursor: pointer;
transform: scale(1.02);
transition: background-color 0.3s, transform 0.3s;
}
footer {
background-color: #282c34;
color: white;
text-align: center;
padding: 20px;
margin-top: 20px;
}
footer ul {
display: flex;
justify-content: center;
list-style: none;
gap: 15px;
}
footer ul li a {
text-decoration: none;
color: white;
transition: color 0.3s ease;
}
footer ul li a:hover {
color: #50d890;
}
.social-icons a img {
width: 25px;
margin: 0 5px;
transition: transform 0.3s ease;
}
.social-icons a img:hover {
transform: scale(1.2);
}