|
1 | 1 | @use "../abstracts/mixins"; |
2 | 2 |
|
| 3 | +@mixin aurora-background { |
| 4 | + background-attachment: fixed; |
| 5 | + background-color: var(--light-pink); |
| 6 | + background-image: var(--aurora); |
| 7 | + opacity: 0.3; |
| 8 | + |
| 9 | + @media (prefers-reduced-motion: no-preference) { |
| 10 | + animation: aurora-one 10s linear infinite; |
| 11 | + } |
| 12 | +} |
| 13 | + |
| 14 | +@property --rotation { |
| 15 | + syntax: "<angle>"; |
| 16 | + initial-value: 0deg; |
| 17 | + inherits: false; |
| 18 | +} |
| 19 | + |
3 | 20 | .app-home__side-by-side { |
4 | 21 | position: relative; |
5 | 22 | display: grid; |
|
19 | 36 | flex-direction: column; |
20 | 37 | color: var(--text-color) !important; |
21 | 38 | text-decoration: none !important; |
22 | | - gap: 0.15rem; |
| 39 | + gap: 0.75rem; |
23 | 40 |
|
24 | 41 | &--large { |
25 | | - gap: var(--jdl-spacing); |
26 | | - |
27 | | - .jdl-section__title { |
28 | | - margin-bottom: calc(var(--jdl-spacing) * -0.25); |
29 | | - } |
30 | | - |
31 | | - .jdl-section__description { |
32 | | - font-size: 1rem; |
| 42 | + .app-card__title { |
| 43 | + font-size: 1.125rem; |
| 44 | + margin-top: 0.25rem; |
33 | 45 | } |
34 | 46 | } |
35 | 47 |
|
|
93 | 105 | display: inline-block; |
94 | 106 | position: relative; |
95 | 107 | width: 100%; |
96 | | - margin: -10%; |
97 | 108 | aspect-ratio: 1; |
98 | 109 | backdrop-filter: invert(2%) blur(100px); |
99 | 110 | mask-image: repeating-conic-gradient( |
100 | | - from 90deg, |
| 111 | + from var(--rotation), |
101 | 112 | var(--background) 0deg, |
102 | 113 | transparent 20deg |
103 | 114 | ); |
| 115 | + z-index: -1; |
| 116 | + opacity: 0.85; |
| 117 | + |
104 | 118 | @media (prefers-reduced-motion: no-preference) { |
105 | 119 | animation: sunburst-rotation 100s infinite linear; |
106 | 120 | } |
107 | | - & { |
108 | | - z-index: -1; |
109 | | - opacity: 0.4; |
110 | | - border-radius: 100%; |
111 | | - flex: 1; |
112 | | - } |
113 | 121 | } |
114 | 122 | } |
115 | 123 |
|
116 | 124 | @keyframes sunburst-rotation { |
117 | 125 | to { |
118 | | - transform: rotate(360deg); |
| 126 | + --rotation: 360deg; |
119 | 127 | } |
120 | 128 | } |
121 | 129 |
|
122 | 130 | .app-card__preview { |
123 | | - &::before, |
124 | | - &::after { |
| 131 | + &::before { |
| 132 | + @include aurora-background(); |
| 133 | + |
125 | 134 | content: ""; |
126 | 135 | position: absolute; |
127 | 136 | inset: 0; |
128 | 137 | z-index: -1; |
129 | | - background-attachment: fixed; |
130 | | - background-size: max(950px, 65vw) 100vh; |
131 | | - background-repeat: no-repeat; |
132 | | - --sidebar-width: 340px; |
133 | | - --content-width: max(950px, 65vw); |
134 | | - background-position-x: calc( |
135 | | - var(--sidebar-width) + |
136 | | - ((100vw - (var(--content-width) + var(--sidebar-width))) / 2) |
137 | | - ); |
138 | | - opacity: 0.25; |
139 | | - |
140 | | - @media (max-width: 970px) { |
141 | | - --sidebar-width: 0; |
142 | | - --content-width: 100%; |
143 | | - background-size: 100%; |
144 | | - } |
145 | | - } |
146 | | - |
147 | | - &::before { |
148 | | - background-image: |
149 | | - radial-gradient(at 40% 20%, var(--light-orange) 0, transparent 50%), |
150 | | - radial-gradient(at 80% 0%, var(--light-cyan) 0, transparent 50%), |
151 | | - radial-gradient(at 0% 50%, var(--light-pink) 0, transparent 50%), |
152 | | - radial-gradient(at 80% 50%, var(--light-red) 0, transparent 50%), |
153 | | - radial-gradient(at 0% 100%, var(--light-yellow) 0, transparent 50%), |
154 | | - radial-gradient(at 80% 100%, var(--light-purple) 0, transparent 50%), |
155 | | - radial-gradient(at 0% 0%, var(--light-pink) 0, transparent 50%); |
156 | | - @media (prefers-reduced-motion: no-preference) { |
157 | | - animation: aurora-one 5s linear infinite; |
158 | | - } |
159 | | - } |
160 | | - |
161 | | - &::after { |
162 | | - background-image: |
163 | | - radial-gradient(at 40% 20%, var(--light-cyan) 0, transparent 50%), |
164 | | - radial-gradient(at 80% 0%, var(--light-orange) 0, transparent 50%), |
165 | | - radial-gradient(at 0% 50%, var(--light-blue) 0, transparent 50%), |
166 | | - radial-gradient(at 80% 50%, var(--light-green) 0, transparent 50%), |
167 | | - radial-gradient(at 0% 100%, var(--light-red) 0, transparent 50%), |
168 | | - radial-gradient(at 80% 100%, var(--light-yellow) 0, transparent 50%), |
169 | | - radial-gradient(at 0% 0%, var(--light-cyan) 0, transparent 50%); |
170 | | - @media (prefers-reduced-motion: no-preference) { |
171 | | - animation: aurora-two 8s linear infinite; |
172 | | - } |
173 | 138 | } |
174 | 139 | } |
175 | 140 |
|
176 | 141 | @keyframes aurora-one { |
177 | | - 0% { |
178 | | - opacity: 0.2; |
179 | | - } |
180 | | - 50% { |
181 | | - opacity: 0.55; |
182 | | - } |
183 | | - 100% { |
184 | | - opacity: 0.2; |
185 | | - } |
186 | | -} |
187 | | - |
188 | | -@keyframes aurora-two { |
189 | | - 0% { |
190 | | - opacity: 0.55; |
191 | | - } |
192 | 142 | 50% { |
193 | | - opacity: 0.1; |
194 | | - } |
195 | | - 100% { |
196 | | - opacity: 0.55; |
| 143 | + filter: hue-rotate(180deg); |
197 | 144 | } |
198 | 145 | } |
199 | 146 |
|
|
202 | 149 | display: inline-flex; |
203 | 150 | font-size: 1rem; |
204 | 151 | align-items: center; |
205 | | - font-weight: 450; |
206 | | - gap: 1.15rem; |
207 | | - margin: 0.6rem 0 0; |
| 152 | + font-weight: var(--font-bold-weight); |
| 153 | + gap: 1.125rem; |
| 154 | + margin: 0; |
| 155 | + text-box: cap alphabetic; |
208 | 156 | } |
209 | 157 |
|
210 | 158 | .app-card__new-tag { |
211 | 159 | @include mixins.base-text; |
212 | 160 | position: relative; |
213 | 161 | margin: 0; |
214 | 162 | font-size: 0.75rem; |
215 | | - font-weight: 500; |
| 163 | + font-weight: var(--font-bold-weight); |
216 | 164 | z-index: 0; |
217 | | - color: var(--background); |
218 | 165 |
|
219 | | - &::before { |
| 166 | + &::before, |
| 167 | + &::after { |
220 | 168 | content: ""; |
221 | 169 | position: absolute; |
222 | 170 | inset: -1px -8px; |
223 | 171 | border-radius: 100px; |
224 | | - background: var(--text-color); |
225 | 172 | z-index: -1; |
226 | 173 | } |
| 174 | + |
| 175 | + &::before { |
| 176 | + @include aurora-background(); |
| 177 | + } |
| 178 | + |
| 179 | + &::after { |
| 180 | + border: var(--jdl-border-translucent); |
| 181 | + } |
227 | 182 | } |
228 | 183 |
|
229 | 184 | .app-card__description { |
230 | 185 | @include mixins.base-text; |
231 | 186 | font-size: 1rem; |
232 | 187 | margin: 0; |
233 | 188 | color: var(--text-color-secondary); |
| 189 | + text-box: cap alphabetic; |
234 | 190 | } |
0 commit comments