-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #111 from fulldotdev/list-and-compare-block
List and compare block
- Loading branch information
Showing
5 changed files
with
117 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
--- | ||
import Button from 'fulldev-ui/components/Button.astro' | ||
import Heading from 'fulldev-ui/components/Heading.astro' | ||
import List from 'fulldev-ui/components/List.astro' | ||
import Paragraph from 'fulldev-ui/components/Paragraph.astro' | ||
import Tagline from 'fulldev-ui/components/Tagline.astro' | ||
import type { BlockSchema } from 'fulldev-ui/schemas/block' | ||
import Card from 'fulldev-ui/structures/Card.astro' | ||
import Container from 'fulldev-ui/structures/Container.astro' | ||
import Prose from 'fulldev-ui/structures/Prose.astro' | ||
import Section from 'fulldev-ui/structures/Section.astro' | ||
import Stack from 'fulldev-ui/structures/Stack.astro' | ||
interface Props extends BlockSchema {} | ||
const { depth = 2, heading, paragraph, button, pros, cons } = Astro.props | ||
--- | ||
|
||
<Section class="pricings-1"> | ||
<Container class="flex flex-col items-center gap-16"> | ||
<Prose class="text-center"> | ||
<Heading | ||
size="5xl" | ||
text={heading} | ||
{depth} | ||
/> | ||
<Paragraph | ||
size="xl" | ||
text={paragraph} | ||
/> | ||
</Prose> | ||
<Stack class="mx-auto flex flex-wrap items-stretch justify-center"> | ||
{ | ||
[cons || {}, pros || {}].map( | ||
({ tagline, heading, paragraph, list }, i) => ( | ||
<Card | ||
class:list={`min-w-sm flex max-w-md flex-col justify-between gap-8 p-8 ${i === 0 ? 'bg-transparent' : ''}`} | ||
> | ||
<Prose> | ||
<Tagline text={tagline} /> | ||
<Heading | ||
depth={(depth + 1) as 3} | ||
size="3xl" | ||
text={heading} | ||
/> | ||
<Paragraph | ||
muted={i === 0} | ||
text={paragraph} | ||
/> | ||
<List | ||
icon={i === 0 ? 'x' : 'check'} | ||
muted={i === 0} | ||
size="sm" | ||
items={list} | ||
/> | ||
</Prose> | ||
</Card> | ||
) | ||
) | ||
} | ||
</Stack> | ||
<Button {...button} /> | ||
</Container> | ||
</Section> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters