-
Notifications
You must be signed in to change notification settings - Fork 0
/
ourservice.css
157 lines (135 loc) · 2.91 KB
/
ourservice.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
body{
background-color: black;
}
.container {
color: white;
position: relative;
font-family: sans-serif;
}
.container::before,
.container::after {
content: "";
background-color: #fab5704c;
position: absolute;
}
.container::before {
border-radius: 50%;
width: 6rem;
height: 6rem;
top: 30%;
right: 7%;
}
.container::after {
content: "";
position: absolute;
height: 3rem;
top: 8%;
right: 5%;
border: 1px solid;
}
.container .box {
width: 11.875em;
height: 15.875em;
padding: 1rem;
background-color: rgba(255, 255, 255, 0.074);
border: 1px solid rgba(255, 255, 255, 0.222);
-webkit-backdrop-filter: blur(20px);
backdrop-filter: blur(20px);
border-radius: 0.7rem;
transition: all ease 0.3s;
}
.container .box {
display: flex;
flex-direction: column;
justify-content: space-between;
}
.container .box .title {
font-size: 2rem;
font-weight: 500;
letter-spacing: 0.1em;
}
.container .box div strong {
display: block;
margin-bottom: 0.5rem;
}
.container .box div p {
margin: 0;
font-size: 0.9em;
font-weight: 300;
letter-spacing: 0.1em;
}
.container .box div span {
font-size: 0.7rem;
font-weight: 300;
}
.container .box div span:nth-child(3) {
font-weight: 500;
margin-right: 0.2rem;
}
.container .box:hover {
box-shadow: 0px 0px 20px 1px #ffbb763f;
border: 1px solid rgba(255, 255, 255, 0.454);
}
/* course card */
.card {
position: relative;
width: 300px;
height: 200px;
background-color: #f2f2f2;
border-radius: 10px;
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
perspective: 1000px;
box-shadow: 0 0 0 5px #ffffff80;
transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.card svg {
width: 48px;
fill: #333;
transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.card:hover {
transform: scale(1.05);
box-shadow: 0 8px 16px rgba(255, 255, 255, 0.2);
}
.card__content {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
padding: 20px;
box-sizing: border-box;
background-color: #f2f2f2;
transform: rotateX(-90deg);
transform-origin: bottom;
transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.card:hover .card__content {
transform: rotateX(0deg);
}
.card__title {
margin: 0;
font-size: 24px;
color: #333;
font-weight: 700;
}
.card:hover svg {
scale: 0;
}
.card__description {
margin: 10px 0 0;
font-size: 14px;
color: #777;
line-height: 1.4;
}
/* course list */
.course-list{
display: flex;
flex-direction: column;
align-items: center;
gap: 400px;
padding: 200px;
}