Skip to content

Commit 746826f

Browse files
committed
Add styles to team section
1 parent 3fb77a2 commit 746826f

File tree

1 file changed

+109
-3
lines changed

1 file changed

+109
-3
lines changed

assets/css/styles.css

Lines changed: 109 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -237,15 +237,15 @@ img {
237237
margin-bottom: 2.5rem;
238238
}
239239

240-
.button {
240+
.home__button {
241241
display: inline-block;
242242
background-color: var(--first-color-dark);
243243
color: var(--white-color);
244244
padding: 1.125rem 2rem;
245245
border-radius: .5rem;
246246
}
247247

248-
.button:hover {
248+
.home__button:hover {
249249
background-color: var(--first-color-darken);
250250
}
251251

@@ -302,6 +302,111 @@ img {
302302
}
303303

304304

305+
/* ===== TEAM ====== */
306+
307+
.team__container{
308+
position: relative;
309+
z-index: 1;
310+
display: flex;
311+
justify-content: center;
312+
align-items: center;
313+
flex-wrap: wrap;
314+
margin: 40px 0;
315+
/* width: 70%; */
316+
}
317+
318+
.team__container .team__card{
319+
position: relative;
320+
width: 300px;
321+
height: 400px;
322+
background: rgba(255, 255, 255, 0.05);
323+
margin: 20px;
324+
box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
325+
border-radius: 15px;
326+
display: flex;
327+
justify-content: center;
328+
align-items: center;
329+
backdrop-filter: blur(10px);
330+
}
331+
332+
.team__container .team__card .team__content{
333+
position: relative;
334+
display: flex;
335+
justify-content: center;
336+
align-items: center;
337+
flex-direction: column;
338+
opacity: 0.5;
339+
transition: 0.5s;
340+
}
341+
342+
.team__container .team__card:hover .team__content{
343+
opacity: 1;
344+
transform: translateY(-20px);
345+
}
346+
347+
.team__container .team__card .team__content .team__img{
348+
position: relative;
349+
width: 150px;
350+
height: 150px;
351+
border-radius: 50%;
352+
overflow: hidden;
353+
border: 10px solid rgba(0, 0, 0, 0.25);
354+
}
355+
356+
.team__img img{
357+
position: absolute;
358+
top: 0;
359+
left: 0;
360+
width: 100%;
361+
height: 100%;
362+
object-fit: cover;
363+
}
364+
365+
.team__text h3{
366+
color: var(--text-color);
367+
text-transform: uppercase;
368+
letter-spacing: 2px;
369+
font-weight: 500;
370+
text-align: center;
371+
margin: 20px 0 10px;
372+
line-height: 1.1em;
373+
}
374+
375+
.team__text span{
376+
font-size: 12px;
377+
font-weight: 300;
378+
text-transform: initial;
379+
}
380+
381+
.team__icon{
382+
position: absolute;
383+
bottom: 50px;
384+
display: flex;
385+
}
386+
387+
.team__icon li{
388+
list-style: none;
389+
margin: 0 10px;
390+
transform: translateY(40px);
391+
transition: 0.5s;
392+
opacity: 0;
393+
transition-delay: calc(0.1s * var(--i));
394+
}
395+
396+
.team__card:hover .team__icon li{
397+
transform: translateY(0px);
398+
opacity: 1;
399+
400+
}
401+
402+
.team__icon li a{
403+
color: #11122b;
404+
font-size: 28px;
405+
}
406+
407+
.team__icon li a:hover{
408+
color: var(--first-color-darken);
409+
}
305410
/* ===== JOIN US====== */
306411
.join__container{
307412
display: flex;
@@ -336,8 +441,9 @@ li{
336441
.course__preview {
337442
background-color:var(--first-color);
338443
color: var(--white-color);
339-
padding: 100px;
444+
padding: 45px;
340445
max-width: 350px;
446+
font-size: 20px;
341447
}
342448

343449
.course__preview a {

0 commit comments

Comments
 (0)