PluginProbe
Extendify / 3.2.1
Extendify v3.2.1
3.2.1 3.2.0 3.1.6 3.1.5 3.1.4 3.1.3 3.1.2 3.1.1 3.1.0 3.0.6 3.0.5 3.0.4 trunk 0.1.0 0.10.0 0.10.1 0.10.2 0.11.0 0.11.1 0.2.0 0.3.0 0.3.1 0.4.0 0.5.0 0.6.0 All 127 releases
extendify / src / AutoLaunch / templates / split / Page.jsx

Page.jsx in Extendify 3.2.1, at src/AutoLaunch/templates/split/Page.jsx

33 lines 1.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 import { PageCanvas } from '@auto-launch/templates/PageCanvas';
2
3 // The heading centers itself for the stacked layout, so a column undoes it.
4 const LEFT_ALIGN = '[&_h2]:lg:text-left [&_p]:lg:text-left';
5
6 // Direction is lg-only: below it the columns stack whatever the token says.
7 const COLUMNS = [
8 'm-auto flex w-full max-w-5xl flex-col items-center',
9 'lg:[flex-direction:var(--ext-tpl-split-direction,row)]',
10 '[gap:var(--ext-tpl-split-gap,48px)]',
11 ].join(' ');
12
13 // align-self, so moving the text does not move the form with it.
14 const TEXT_COLUMN = [
15 'flex flex-col items-center gap-ui lg:items-start',
16 'lg:[flex:0_1_var(--ext-tpl-split-text-width,420px)]',
17 'lg:[align-self:var(--ext-tpl-split-text-align,flex-start)]',
18 LEFT_ALIGN,
19 ].join(' ');
20
21 export const Page = ({ parts, has }) => (
22 <PageCanvas>
23 <div className={COLUMNS}>
24 <div className={TEXT_COLUMN}>
25 {parts.logo}
26 {has.heading && parts.heading}
27 </div>
28 <div className="relative z-10 w-full lg:flex-1">{parts.content}</div>
29 </div>
30 {has.footer && <div className="w-full pt-8 shrink-0">{parts.footer}</div>}
31 </PageCanvas>
32 );
33