CTA
CTA01
A CTA pattern. Below the "md" breakpoint, it switches to a single column layout with items stacked vertically.
en.astro
---
import { ChatIcon, UserIcon } from '@lism-css/icons/astro';
import DemoLayout from '@/layouts/DemoLayout.astro';
import { Stack, Grid, Container, Frame, Columns, Media, Layer, Icon, Text, Heading } from 'lism-css/astro';
import { Button } from '@lism-css/ui/astro/Button';
---
<DemoLayout title="CTA01">
<Stack pos="relative">
<Frame isLayer>
<Media isLayer src="https://cdn.lism-css.com/img/2SvHdIk1KOOR.webp" alt="" width="960" height="640" />
<Layer style={{ backdropFilter: 'blur(4px)' }} bgc="black:50%" />
</Frame>
<Container isWrapper="s" px="35" py="60" z="1">
<Grid ai="center" g="40">
<Heading level="2" class="u--trim" fz="4xl" fw="bold" lts="l" c="white" ta="center">Contact</Heading>
<Text class="u--trim" fz="m" hl="l" c="white" ta="center">Feel free to reach out to us<br />Our team will respond promptly</Text>
<Columns cols={[1, null, 2]} g="25">
<Button href="#" g="15" variant="outline" jc="center" c="white" bdrs="10" py="15" fw="500" hasTransition hov={{ bgc: 'text', bdc: 'text' }}>
<Icon icon={ChatIcon} fz="1.4em" />
<span>Chat with us</span>
</Button>
<Button
href="#"
g="15"
jc="center"
bgc="base"
c="text"
bdc="transparent"
bdrs="10"
py="15"
fw="500"
hasTransition
hov={{ bgc: 'text', c: 'base' }}
>
<Icon icon={UserIcon} fz="1.4em" />
<span>Contact us</span>
</Button>
</Columns>
</Grid>
</Container>
</Stack>
</DemoLayout>