-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathproject_01.css
More file actions
66 lines (59 loc) · 1.09 KB
/
Copy pathproject_01.css
File metadata and controls
66 lines (59 loc) · 1.09 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
body {
background: #000000;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
font-family: "Helvetica Neue", sans-serif;
}
.card {
position: relative;
width: 200px;
height: 300px;
overflow: hidden;
border-radius: 10px;
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}
.bg-img {
width: 100%;
height: 100%;
object-fit: cover;
display: block;
}
.blurred-layer {
position: absolute;
bottom: 0;
width: 100%;
height: 100%;
background-size: cover;
background-position: bottom;
filter: blur(10px);
z-index: 1;
mask-image: linear-gradient(to top, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));
mask-size: 100% 100%;
mask-repeat: no-repeat;
-webkit-mask-image: linear-gradient(
to top,
rgba(0, 0, 0, 1),
rgba(0, 0, 0, 0)
);
-webkit-mask-size: 100% 100%;
-webkit-mask-repeat: no-repeat;
}
.content {
position: absolute;
bottom: 20px;
left: 20px;
color: white;
z-index: 2;
}
.content h3 {
font-size: 18px;
font-weight: bold;
margin-bottom: 6px;
}
.content p {
font-size: 14px;
color: #ddd;
line-height: 1.4;
}