Skip to content

Commit 20d3be5

Browse files
committed
fix(index@landing): use card with dot notation
1 parent 73fdc9f commit 20d3be5

File tree

1 file changed

+21
-21
lines changed

1 file changed

+21
-21
lines changed

apps/website/src/routes/[email protected]

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { component$ } from '@builder.io/qwik';
22
import { DocumentHead } from '@builder.io/qwik-city';
3-
import { Card, CardDescription, CardHeader, CardImage, CardTitle } from '@qwik-ui/styled';
3+
import { Card } from '@qwik-ui/styled';
44
import { cn } from '@qwik-ui/utils';
55

66
// Keeping these so that we can integrate them later when refactoring the landing page to be more professional
@@ -54,26 +54,26 @@ export default component$(() => {
5454
</p>
5555
<div class="mt-4 flex flex-wrap justify-center justify-items-center gap-14">
5656
<a href={`/docs/headless/introduction`}>
57-
<Card
57+
<Card.Root
5858
class={cn(
5959
'relative block h-full max-w-md rounded-lg shadow-lg outline-1 duration-150 ease-step hover:scale-[1.025] focus:scale-[1.025]',
6060
)}
6161
>
62-
<CardImage
62+
<Card.Image
6363
src={`/images/qwik-ui-headless-hero.webp`}
6464
width="300"
6565
height="300"
6666
alt={`styled kit`}
6767
class="w-full rounded-t-sm"
6868
/>
69-
<CardHeader>
70-
<CardTitle class="text-xl">Headless</CardTitle>
71-
<CardDescription class="text-lg">
69+
<Card.Header>
70+
<Card.Title class="text-xl">Headless</Card.Title>
71+
<Card.Description class="text-lg">
7272
A headless component library of completely unstyled, accessible, and
7373
resumable components for the most creative minds.
74-
</CardDescription>
75-
</CardHeader>
76-
{/* <CardContent>
74+
</Card.Description>
75+
</Card.Header>
76+
{/* <Card.Content>
7777
<ul>
7878
{whyHeadless.map((pro, index) => (
7979
<li key={index} class="mb-5 grid grid-cols-[25px_1fr] items-start">
@@ -82,26 +82,26 @@ export default component$(() => {
8282
</li>
8383
))}
8484
</ul>
85-
</CardContent> */}
86-
</Card>
85+
</Card.Content> */}
86+
</Card.Root>
8787
</a>
8888
<a href={`/docs/styled/introduction`}>
89-
<Card class="relative block h-full max-w-md rounded-lg shadow-lg outline-1 duration-150 ease-step hover:scale-[1.025] focus:scale-[1.025]">
90-
<CardImage
89+
<Card.Root class="relative block h-full max-w-md rounded-lg shadow-lg outline-1 duration-150 ease-step hover:scale-[1.025] focus:scale-[1.025]">
90+
<Card.Image
9191
src={`/images/qwik-ui-fluffy-creature-screen.webp`}
9292
width="300"
9393
height="300"
9494
alt={`styled kit`}
9595
class="w-full rounded-t-sm"
9696
/>
97-
<CardHeader>
98-
<CardTitle class="text-xl">Styled</CardTitle>
99-
<CardDescription class="text-lg">
97+
<Card.Header>
98+
<Card.Title class="text-xl">Styled</Card.Title>
99+
<Card.Description class="text-lg">
100100
A design system of copy-paste, reusable, styled components built on top of
101101
headless. Easy to use, easy to customize.
102-
</CardDescription>
103-
</CardHeader>
104-
{/* <CardContent>
102+
</Card.Description>
103+
</Card.Header>
104+
{/* <Card.Content>
105105
<ul>
106106
{whyStyled.map((pro, index) => (
107107
<li key={index} class="mb-5 grid grid-cols-[25px_1fr] items-start">
@@ -110,8 +110,8 @@ export default component$(() => {
110110
</li>
111111
))}
112112
</ul>
113-
</CardContent> */}
114-
</Card>
113+
</Card.Content> */}
114+
</Card.Root>
115115
</a>
116116
</div>
117117
</div>

0 commit comments

Comments
 (0)