|
38 | 38 | grid-template-columns: 1fr 1fr; |
39 | 39 | grid-gap: 2rem; |
40 | 40 | overflow: hidden; |
| 41 | + |
| 42 | + @media (max-width: 970px) { |
| 43 | + display: flex; |
| 44 | + flex-direction: column; |
| 45 | + } |
41 | 46 | } |
42 | 47 |
|
43 | 48 | .app-card__container { |
|
68 | 73 | transition: var(--standard-transition); |
69 | 74 | border-radius: 10px; |
70 | 75 | z-index: 0; |
71 | | -} |
72 | 76 |
|
73 | | -.app-card__preview svg { |
74 | | - width: 100%; |
75 | | - height: 100%; |
76 | | - max-width: 40%; |
77 | | - max-height: 40%; |
78 | | -} |
| 77 | + svg { |
| 78 | + width: 40%; |
| 79 | + height: 40%; |
| 80 | + } |
79 | 81 |
|
80 | | -.app-card__preview img { |
81 | | - height: 100%; |
82 | | - max-width: 40%; |
83 | | - max-height: 40%; |
| 82 | + img { |
| 83 | + position: absolute; |
| 84 | + top: 50%; |
| 85 | + left: 50%; |
| 86 | + transform: translate(-50%, -50%); |
| 87 | + max-width: 40%; |
| 88 | + max-height: max(40%, 80px) |
| 89 | + } |
84 | 90 | } |
85 | 91 |
|
86 | 92 | .app-card__preview__introduction { |
|
90 | 96 | align-items: center; |
91 | 97 | justify-content: center; |
92 | 98 | z-index: 1; |
93 | | -} |
94 | 99 |
|
95 | | -.app-card__preview__introduction::before { |
96 | | - content: ""; |
97 | | - position: absolute; |
98 | | - inset: -4rem; |
99 | | - top: -82.5%; |
100 | | - aspect-ratio: 1; |
101 | | - background: repeating-conic-gradient(var(--background) 0deg, rgba(100, 100, 100, 0.25) 20deg); |
102 | | - animation: sunburst-rotation 100s infinite linear; |
103 | | - z-index: -1; |
104 | | - opacity: 0.2; |
| 100 | + &::before { |
| 101 | + content: ""; |
| 102 | + display: inline-block; |
| 103 | + position: relative; |
| 104 | + width: 100%; |
| 105 | + margin: -10%; |
| 106 | + aspect-ratio: 1; |
| 107 | + background: repeating-conic-gradient(var(--background) 0deg, rgba(100, 100, 100, 0.25) 20deg); |
| 108 | + animation: sunburst-rotation 100s infinite linear; |
| 109 | + z-index: -1; |
| 110 | + opacity: 0.2; |
| 111 | + border-radius: 100%; |
| 112 | + flex: 1; |
| 113 | + } |
105 | 114 | } |
106 | 115 |
|
107 | 116 | @keyframes sunburst-rotation { |
|
120 | 129 | background-repeat: no-repeat; |
121 | 130 | --sidebar-width: 340px; |
122 | 131 | --content-width: max(900px, 65vw); |
| 132 | + |
| 133 | + @media (max-width: 970px) { |
| 134 | + --sidebar-width: 0; |
| 135 | + --content-width: 100%; |
| 136 | + background-size: 100%; |
| 137 | + } |
| 138 | + |
123 | 139 | background-position-x: calc(var(--sidebar-width) + ((100vw - (var(--content-width) + var(--sidebar-width))) / 2)); |
124 | 140 | } |
125 | 141 |
|
|
135 | 151 | } |
136 | 152 |
|
137 | 153 | .app-card__preview::after { |
138 | | - background-image: radial-gradient(at 40% 20%, hsla(212, 100%, 74%, 1) 0, transparent 50%), |
139 | | - radial-gradient(at 80% 0%, hsla(13, 100%, 56%, 1) 0, transparent 50%), |
140 | | - radial-gradient(at 0% 50%, hsla(179, 85%, 93%, 1) 0, transparent 50%), |
| 154 | + background-image: radial-gradient(at 80% 0%, hsla(13, 100%, 56%, 1) 0, transparent 50%), |
| 155 | + radial-gradient(at 0% 50%, hsl(31, 100%, 80%) 0, transparent 50%), |
141 | 156 | radial-gradient(at 80% 50%, hsla(164, 100%, 76%, 1) 0, transparent 50%), |
142 | | - radial-gradient(at 0% 100%, hsla(206, 100%, 77%, 1) 0, transparent 50%), |
143 | | - radial-gradient(at 80% 100%, hsla(66, 100%, 70%, 1) 0, transparent 50%), |
| 157 | + radial-gradient(at 0% 100%, hsl(206, 60%, 57%) 0, transparent 50%), |
| 158 | + radial-gradient(at 80% 100%, hsl(146, 64%, 79%) 0, transparent 50%), |
144 | 159 | radial-gradient(at 0% 0%, hsla(167, 100%, 76%, 1) 0, transparent 50%); |
145 | 160 | animation: rotate-colors-2 10s linear infinite; |
146 | 161 | } |
147 | 162 |
|
148 | 163 | @keyframes rotate-colors { |
149 | 164 | 0% { |
150 | | - opacity: 0; |
| 165 | + opacity: 0.2; |
151 | 166 | } |
152 | 167 | 50% { |
153 | | - opacity: 0.45; |
| 168 | + opacity: 0.55; |
154 | 169 | } |
155 | 170 | 100% { |
156 | | - opacity: 0; |
| 171 | + opacity: 0.2; |
157 | 172 | } |
158 | 173 | } |
159 | 174 |
|
160 | 175 | @keyframes rotate-colors-2 { |
161 | 176 | 0% { |
162 | | - opacity: 0.45; |
| 177 | + opacity: 0.55; |
163 | 178 | } |
164 | 179 | 50% { |
165 | | - opacity: 0; |
| 180 | + opacity: 0.1; |
166 | 181 | } |
167 | 182 | 100% { |
168 | | - opacity: 0.45; |
| 183 | + opacity: 0.55; |
169 | 184 | } |
170 | 185 | } |
171 | 186 |
|
|
0 commit comments