|
23 | 23 | if (main) main.style.overflow = 'hidden'
|
24 | 24 | })
|
25 | 25 |
|
26 |
| - const PANELS: Array<{ title: string; description: string; details: string; image: string }> = [ |
| 26 | + const PANELS: Array<{ title: string; description: string; image: string }> = [ |
27 | 27 | {
|
28 | 28 | title: '100% Vanilla Minecraft!',
|
29 |
| - description: 'No mods required!', |
30 |
| - details: 'Built for Map Makers and Data Pack Developers.', |
| 29 | + description: 'Built for Map Makers and Data Pack Developers.', |
31 | 30 | image: '/img/vanilla.png'
|
32 | 31 | },
|
33 | 32 | {
|
34 | 33 | title: 'Variants',
|
35 |
| - description: 'Swap out textures on the fly!', |
36 |
| - details: 'Swap out textures on a Rig in-game with a single function call.', |
| 34 | + description: 'Swap out textures on a Rig in-game with a single function call.', |
37 | 35 | image: '/img/variants.gif'
|
38 | 36 | },
|
39 | 37 | {
|
40 | 38 | title: 'Advanced Easing Options',
|
41 |
| - description: 'Make your animations pop!', |
42 |
| - details: 'Choose from a variety of easing options to make your animations more dynamic.', |
| 39 | + description: 'Choose from a variety of easing options to make your animations more dynamic.', |
43 | 40 | image: '/img/easing.gif'
|
44 | 41 | },
|
45 | 42 | {
|
46 | 43 | title: 'Vanilla Models',
|
47 |
| - description: 'Create animations without a Resource Pack!', |
48 |
| - details: |
| 44 | + description: |
49 | 45 | 'Animated Java supports vanilla item and block models, allowing you to create animated models without a Resource Pack!',
|
50 | 46 | image: '/img/resourcepackless.png'
|
51 | 47 | },
|
52 | 48 | {
|
53 | 49 | title: 'Heavily Optimized',
|
54 |
| - description: 'Worry less about performance!', |
55 |
| - details: |
| 50 | + description: |
56 | 51 | 'Animated Java has had hundreds of hours put into performance testing, and optimization. Worry less about performance and more about creating!',
|
57 | 52 | image: '/img/performance.png'
|
58 | 53 | }
|
|
87 | 82 | <img src={panel.image} alt={panel.title} />
|
88 | 83 | {/if}
|
89 | 84 | <div>
|
90 |
| - <h2>{panel.title} <span>- {panel.description}</span></h2> |
| 85 | + <h2> |
| 86 | + {panel.title} |
| 87 | + <!-- <span>{panel.description}</span> --> |
| 88 | + </h2> |
91 | 89 | <hr />
|
92 |
| - <p>{panel.details}</p> |
| 90 | + <p>{panel.description}</p> |
93 | 91 | </div>
|
94 | 92 | {#if i % 2 == 1}
|
95 | 93 | <img src={panel.image} alt={panel.title} />
|
|
205 | 203 | h2 {
|
206 | 204 | font-size: 1.5rem;
|
207 | 205 | }
|
208 |
| - h2 span { |
209 |
| - font-size: 1rem; |
210 |
| - vertical-align: middle; |
211 |
| - } |
212 | 206 |
|
213 | 207 | .page {
|
214 | 208 | display: flex;
|
|
260 | 254 | margin: 0rem 0 0.5rem 0;
|
261 | 255 | border: 1px solid rgb(var(--kd-color-brand));
|
262 | 256 | }
|
| 257 | +
|
| 258 | + @media (max-width: 768px) { |
| 259 | + .panel img { |
| 260 | + width: 100%; |
| 261 | + } |
| 262 | + .panel { |
| 263 | + flex-direction: column; |
| 264 | + } |
| 265 | + .right-panel { |
| 266 | + flex-direction: column-reverse; |
| 267 | + } |
| 268 | + .panel > div { |
| 269 | + margin: 16px; |
| 270 | + } |
| 271 | + .panel > div > h2 { |
| 272 | + display: flex; |
| 273 | + flex-direction: column; |
| 274 | + align-items: stretch; |
| 275 | + text-align: center; |
| 276 | + } |
| 277 | + .panel-container { |
| 278 | + gap: 2rem; |
| 279 | + } |
| 280 | + .header-container { |
| 281 | + flex-direction: column; |
| 282 | + margin: 2rem 0 0 0; |
| 283 | + } |
| 284 | + .header-container > div { |
| 285 | + margin-left: unset; |
| 286 | + } |
| 287 | + .header-container img { |
| 288 | + width: 128px; |
| 289 | + } |
| 290 | + .header-container h1 { |
| 291 | + font-size: 2.5rem; |
| 292 | + text-align: center; |
| 293 | + margin-bottom: 0.75rem; |
| 294 | + } |
| 295 | + .header-container h3 { |
| 296 | + font-size: 1.25rem; |
| 297 | + text-align: center; |
| 298 | + } |
| 299 | + .page { |
| 300 | + margin: 0px 16px 0 16px; |
| 301 | + } |
| 302 | + .panel-container { |
| 303 | + margin-top: 2rem; |
| 304 | + } |
| 305 | + .made-with-aj { |
| 306 | + margin-top: 4rem; |
| 307 | + } |
| 308 | + } |
| 309 | +
|
| 310 | + @media (max-height: 768px) { |
| 311 | + .panel-container { |
| 312 | + margin-top: 2rem; |
| 313 | + } |
| 314 | + .made-with-aj { |
| 315 | + margin-top: 4rem; |
| 316 | + } |
| 317 | +
|
| 318 | + .panel img { |
| 319 | + width: 50%; |
| 320 | + } |
| 321 | + .panel { |
| 322 | + display: flex; |
| 323 | + align-items: center; |
| 324 | + text-align: center; |
| 325 | + } |
| 326 | + } |
263 | 327 | </style>
|
0 commit comments