1
1
import { component$ } from '@builder.io/qwik' ;
2
2
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' ;
4
4
import { cn } from '@qwik-ui/utils' ;
5
5
6
6
// 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$(() => {
54
54
</ p >
55
55
< div class = "mt-4 flex flex-wrap justify-center justify-items-center gap-14" >
56
56
< a href = { `/docs/headless/introduction` } >
57
- < Card
57
+ < Card . Root
58
58
class = { cn (
59
59
'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]' ,
60
60
) }
61
61
>
62
- < CardImage
62
+ < Card . Image
63
63
src = { `/images/qwik-ui-headless-hero.webp` }
64
64
width = "300"
65
65
height = "300"
66
66
alt = { `styled kit` }
67
67
class = "w-full rounded-t-sm"
68
68
/>
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" >
72
72
A headless component library of completely unstyled, accessible, and
73
73
resumable components for the most creative minds.
74
- </ CardDescription >
75
- </ CardHeader >
76
- { /* <CardContent >
74
+ </ Card . Description >
75
+ </ Card . Header >
76
+ { /* <Card.Content >
77
77
<ul>
78
78
{whyHeadless.map((pro, index) => (
79
79
<li key={index} class="mb-5 grid grid-cols-[25px_1fr] items-start">
@@ -82,26 +82,26 @@ export default component$(() => {
82
82
</li>
83
83
))}
84
84
</ul>
85
- </CardContent > */ }
86
- </ Card >
85
+ </Card.Content > */ }
86
+ </ Card . Root >
87
87
</ a >
88
88
< 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
91
91
src = { `/images/qwik-ui-fluffy-creature-screen.webp` }
92
92
width = "300"
93
93
height = "300"
94
94
alt = { `styled kit` }
95
95
class = "w-full rounded-t-sm"
96
96
/>
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" >
100
100
A design system of copy-paste, reusable, styled components built on top of
101
101
headless. Easy to use, easy to customize.
102
- </ CardDescription >
103
- </ CardHeader >
104
- { /* <CardContent >
102
+ </ Card . Description >
103
+ </ Card . Header >
104
+ { /* <Card.Content >
105
105
<ul>
106
106
{whyStyled.map((pro, index) => (
107
107
<li key={index} class="mb-5 grid grid-cols-[25px_1fr] items-start">
@@ -110,8 +110,8 @@ export default component$(() => {
110
110
</li>
111
111
))}
112
112
</ul>
113
- </CardContent > */ }
114
- </ Card >
113
+ </Card.Content > */ }
114
+ </ Card . Root >
115
115
</ a >
116
116
</ div >
117
117
</ div >
0 commit comments