fix(hero): image on top below lg in split layout
On mobile and tablet the split hero now stacks image-first, copy below (matches the rhythm users expect when the product is the focal point). Desktop is unchanged — text left, product right on lg+. Uses order-* utilities so DOM order stays copy-first for readers/SEO while the visual order flips. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
1
dist/assets/HeroPreview-DSVvIgM1.js
vendored
Normal file
1
dist/assets/HeroPreview-DSVvIgM1.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/assets/HeroPreview-DxWKyYcb.js
vendored
1
dist/assets/HeroPreview-DxWKyYcb.js
vendored
File diff suppressed because one or more lines are too long
1
dist/assets/index-BRTnN62I.css
vendored
1
dist/assets/index-BRTnN62I.css
vendored
File diff suppressed because one or more lines are too long
1
dist/assets/index-DVK2_Qkm.css
vendored
Normal file
1
dist/assets/index-DVK2_Qkm.css
vendored
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
4
dist/index.html
vendored
4
dist/index.html
vendored
@@ -12,11 +12,11 @@
|
||||
href="https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,200;0,9..144,400;0,9..144,600;0,9..144,700;1,9..144,200;1,9..144,400;1,9..144,600&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400&display=swap"
|
||||
rel="stylesheet"
|
||||
/>
|
||||
<script type="module" crossorigin src="/assets/index-BOeKBKy1.js"></script>
|
||||
<script type="module" crossorigin src="/assets/index-DdaejuCj.js"></script>
|
||||
<link rel="modulepreload" crossorigin href="/assets/runtime-core.esm-bundler-CjdnoyKJ.js">
|
||||
<link rel="modulepreload" crossorigin href="/assets/runtime-dom.esm-bundler-DWTDSpp2.js">
|
||||
<link rel="modulepreload" crossorigin href="/assets/vue-router-BrNWkU63.js">
|
||||
<link rel="stylesheet" crossorigin href="/assets/index-BRTnN62I.css">
|
||||
<link rel="stylesheet" crossorigin href="/assets/index-DVK2_Qkm.css">
|
||||
</head>
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
|
||||
@@ -72,11 +72,13 @@ const layout = computed(() => {
|
||||
mediaSize: 'w-[260px] sm:w-[320px] md:w-[400px] lg:w-[480px]',
|
||||
}
|
||||
}
|
||||
// Split: image on top on mobile/tablet, text-left/image-right on desktop.
|
||||
// `order-*` flips the stacking order below lg without changing DOM order.
|
||||
return {
|
||||
root: 'grid gap-10 md:gap-14 lg:grid-cols-[1.05fr_1fr] lg:items-center',
|
||||
copy: 'max-w-xl mx-auto lg:mx-0 items-center text-center lg:items-start lg:text-left',
|
||||
copy: 'order-2 lg:order-1 max-w-xl mx-auto lg:mx-0 items-center text-center lg:items-start lg:text-left',
|
||||
actions: 'justify-center lg:justify-start',
|
||||
media: '',
|
||||
media: 'order-1 lg:order-2',
|
||||
mediaSize: 'w-[260px] sm:w-[340px] md:w-[420px] lg:w-full lg:max-w-[520px]',
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user