|
1 | 1 | @import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;800&display=swap'); |
2 | | - |
| 2 | +@import-normalize; |
3 | 3 | @tailwind base; |
4 | 4 | @tailwind components; |
5 | 5 | @tailwind utilities; |
6 | 6 |
|
7 | 7 |
|
| 8 | +:root{ |
| 9 | + --card-title-color:#22DDA2; |
| 10 | + --bg-gradient-color1:#6B3580; |
| 11 | + --bg-gradient-color2:#169970; |
| 12 | +} |
| 13 | + |
8 | 14 | @property --gradient-angle{ |
9 | 15 | syntax: "<angle>"; |
10 | 16 | initial-value: 0deg; |
11 | 17 | inherits: false; |
12 | 18 | } |
13 | 19 |
|
| 20 | +p{ |
| 21 | + text-wrap: balance; |
| 22 | +} |
| 23 | +.team-header{ |
| 24 | + border-color: transparent; |
| 25 | + position: relative; |
| 26 | + inset: 0; |
| 27 | + isolation: isolate; |
| 28 | + transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); |
| 29 | +} |
| 30 | +.team-header:hover{ |
| 31 | + border-color: #FF005C; |
| 32 | + border-right-width: 0.5rem; |
| 33 | + transform: |
| 34 | + perspective(6000px) |
| 35 | + rotateY(90deg) |
| 36 | + rotateX(90deg) |
| 37 | + scale(1.2); |
| 38 | +} |
14 | 39 |
|
15 | | -.teamcard{ |
16 | | - background:#291a3575; |
| 40 | +.team-card{ |
| 41 | + background:hsl(273, 34%, 15%, 0.26); |
| 42 | + border-color: transparent; |
17 | 43 | position: relative; |
| 44 | + z-index: 1; |
18 | 45 | inset: 0; |
19 | 46 | isolation: isolate; |
20 | 47 | transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); |
21 | 48 | } |
22 | | -.teamcard:hover{ |
| 49 | +.team-card-front{ |
| 50 | + |
| 51 | +} |
| 52 | +.team-card-back{ |
| 53 | + z-index: -1; |
| 54 | + border-color: transparent; |
| 55 | + border-radius: inherit; |
| 56 | + display: grid; |
| 57 | + &before{ |
| 58 | + content: ""; |
| 59 | + position: absolute; |
| 60 | + width: 100%; |
| 61 | + height: 100%; |
| 62 | + z-index: -50; |
| 63 | + background-size:100% 100%; |
| 64 | + background-color: #169970; |
| 65 | + } |
| 66 | + inset: 0; |
| 67 | + isolation: isolate; |
| 68 | + transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); |
| 69 | +} |
| 70 | + |
| 71 | +.team-card:hover{ |
| 72 | + border-color: #FF005C; |
| 73 | + border-right-width: 0.5rem; |
23 | 74 | transform: |
24 | 75 | perspective(3000px) |
25 | 76 | rotateY(-20deg) |
26 | 77 | rotateX(0) |
27 | 78 | scale(1.2); |
| 79 | + --card-title-color: #FF005C; |
| 80 | + color: transparent; |
| 81 | +} |
| 82 | + |
| 83 | +.team-card::before{ |
| 84 | + content: ""; |
| 85 | + display: block; |
| 86 | + position: absolute; |
| 87 | + top: 0; |
| 88 | + left: 0; |
| 89 | + right: 0; |
| 90 | + bottom: 0; |
| 91 | + z-index: -1; |
| 92 | + border-radius: inherit; |
| 93 | + backdrop-filter: brightness(90%) blur(20px); |
| 94 | + -webkit-backdrop-filter: brightness(90%) blur(20px); |
| 95 | + -moz-backdrop-filter: brightness(90%) blur(20px); |
| 96 | + mask-image: repeating-radial-gradient( |
| 97 | + circle at 50% 50% center, |
| 98 | + var(--bg-gradient-color1), |
| 99 | + var(--bg-gradient-color1) 20px, |
| 100 | + rgba(255, 255, 255, 0.3) 20.5px, |
| 101 | + rgba(255, 255, 255, 0.3) 21px |
| 102 | + ); |
| 103 | + -webkit-mask-image: repeating-radial-gradient( |
| 104 | + circle at 50% 50%, |
| 105 | + var(--bg-gradient-color1), |
| 106 | + var(--bg-gradient-color1) 20px, |
| 107 | + rgba(255, 255, 255, 0.3) 20.5px, |
| 108 | + rgba(255, 255, 255, 0.3) 21px |
| 109 | + ); |
| 110 | +} |
| 111 | + |
| 112 | +.card-title{ |
| 113 | + color: var(--card-title-color); |
| 114 | + background-image: var(--card-title-bg); |
| 115 | + background-clip: text; |
28 | 116 | } |
29 | 117 |
|
30 | 118 | .bg-default{ |
31 | | - background:linear-gradient(to right,#6B3580,#169970); |
| 119 | + background:linear-gradient(to right,var(--bg-gradient-color1),var(--bg-gradient-color2)); |
32 | 120 | } |
33 | 121 | .grid-1{ |
34 | 122 | animation: grid-move 5s linear infinite ; |
|
39 | 127 | .grid-3{ |
40 | 128 | animation: pulse 5s forwards infinite ; |
41 | 129 | } |
| 130 | +.backdrop{ |
| 131 | + position: absolute; |
| 132 | + top: 0; |
| 133 | + left: 0; |
| 134 | + height: 100%; |
| 135 | + width: 100%; |
| 136 | + background:#00000062; |
| 137 | + display: flex; |
| 138 | + align-items: center; |
| 139 | + justify-content: center; |
| 140 | +} |
| 141 | + |
| 142 | +footer::before { |
| 143 | + content: ""; |
| 144 | + display: block; |
| 145 | + position: absolute; |
| 146 | + z-index: -2; |
| 147 | + top: 0; |
| 148 | + left: 0; |
| 149 | + right: 0; |
| 150 | + bottom: 0; |
| 151 | + background-size: 15px 15px; |
| 152 | + backdrop-filter: brightness(90%) blur(20px); |
| 153 | + -webkit-backdrop-filter: brightness(90%) blur(20px); |
| 154 | + -moz-backdrop-filter: brightness(90%) blur(20px); |
| 155 | + mask-image: repeating-radial-gradient( |
| 156 | + circle at 50% 50% center, |
| 157 | + var(--bg-gradient-color1), |
| 158 | + var(--bg-gradient-color1) 20px, |
| 159 | + rgba(255, 255, 255, 0.3) 20.5px, |
| 160 | + rgba(255, 255, 255, 0.3) 21px |
| 161 | + ); |
| 162 | + -webkit-mask-image: repeating-radial-gradient( |
| 163 | + circle at 50% 50%, |
| 164 | + var(--bg-gradient-color1), |
| 165 | + var(--bg-gradient-color1) 20px, |
| 166 | + rgba(255, 255, 255, 0.3) 20.5px, |
| 167 | + rgba(255, 255, 255, 0.3) 21px |
| 168 | + ); |
| 169 | + } |
| 170 | + footer { |
| 171 | + background: hsl(273, 34%, 15%, 0.26); |
| 172 | + position: absolute; |
| 173 | + bottom: 0; |
| 174 | + left: 0; |
| 175 | + right: 0; |
| 176 | + display: flex; |
| 177 | + justify-content: flex-start; |
| 178 | + align-items: center; |
| 179 | + padding: 20px; |
| 180 | + font-size: 14px; |
| 181 | + line-height: 14px; |
| 182 | + } |
42 | 183 |
|
| 184 | +.modal{ |
| 185 | + width: clamp(50%,700px, 90%); |
| 186 | + height: min(50%, 300px); |
| 187 | + |
| 188 | + position: sticky; |
| 189 | + margin: auto; |
| 190 | + padding: 0 2rem; |
| 191 | + border-radius: 12px; |
| 192 | + display: flex; |
| 193 | + flex-direction: column; |
| 194 | + align-items: center; |
| 195 | +} |
43 | 196 | @keyframes pulse { |
44 | 197 | 0%{opacity: 0%;} |
45 | | - 25%{opacity: 20%;} |
| 198 | + 25%{opacity: 35%;} |
46 | 199 | 100%{opacity: 0%;} |
47 | 200 | } |
48 | 201 | @keyframes grid-move { |
|
52 | 205 |
|
53 | 206 | translate3d(0,0,0); |
54 | 207 | } |
55 | | - 25%{opacity: 20%;} |
| 208 | + 25%{opacity: 35%;} |
56 | 209 | 100%{ |
57 | 210 | opacity: 0%; |
58 | 211 | transform: |
|
62 | 215 | translate3d(50px,20px,0); |
63 | 216 | } |
64 | 217 | } |
65 | | - |
66 | | - |
67 | 218 | @keyframes gradient-rotation { |
68 | 219 | 0%{ |
69 | 220 | --gradient-angle: 0deg; |
|
0 commit comments