-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
95 lines (84 loc) · 1.79 KB
/
style.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
*,::before,::before {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
min-height: 100vh;
display: flex;
justify-content: center;
align-items: center;
position: relative;
}
body::before {
content: '';
position: absolute;
top: -50px;
left: 0;
right: 0;
bottom: -50px;
background: url("snk.jpg") no-repeat center center;
background-size: cover;
filter: brightness(0.8);
z-index: -1;
transition: all 0.3s ease-out;
}
body.darkened::before {
filter: brightness(0.5); /* Appliquer un filtre plus sombre */
}
.container {
margin: 50px;
display: flex;
gap: 30px;
flex-wrap: wrap; /* Permet aux cartes de passer à la ligne suivante */
justify-content: center; /* Centre les cartes sur chaque ligne */
}
.card {
flex: 1 2 250px; /* Reglage pour largeur dynamique, enlever pour largeur statique */
width: 350px;
height: 400px;
max-width: 250px;
perspective: 1000px;
position: relative;
}
.titan-c {
position: absolute;
top: 1100px;
left: -350px;
height: 500px;
aspect-ratio: 1;
z-index: 0;
}
.titan img {
height: 100%;
}
.card:hover {
z-index: 10;
}
.content-card {
width: 100%;
height: 100%;
overflow: hidden;
border-radius: 25px;
transition: all 0.15s ease-out;
background-color: black;
filter: brightness(0.8) drop-shadow(0 25px 15px);
}
.content-card img {
width: 100%;
height: 100%;
object-fit: cover;
}
.glow {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
opacity: 0.25;
transition: all 0.15s ease-out;
border-radius: 25px;
mix-blend-mode: hard-light;
background: radial-gradient(circle at 50% 50%, rgb(184, 196, 211), transparent);
pointer-events: none;
}