1
1
import { component$ } from '@builder.io/qwik' ;
2
2
import { DocumentHead } from '@builder.io/qwik-city' ;
3
- import {
4
- Card ,
5
- CardContent ,
6
- CardDescription ,
7
- CardHeader ,
8
- CardImage ,
9
- CardTitle ,
10
- } from '@qwik-ui/styled' ;
3
+ import { Card , CardDescription , CardHeader , CardImage , CardTitle } from '@qwik-ui/styled' ;
11
4
import { cn } from '@qwik-ui/utils' ;
12
5
13
- const whyHeadless = [
14
- {
15
- emoji : '🧑🎨' ,
16
- description : 'Create your own components from scratch' ,
17
- } ,
18
- {
19
- emoji : '⛓️💥' ,
20
- description :
21
- 'Use with vanilla CSS, SASS, TailwindCSS, UnoCSS, PandaCSS, or whateverCSS' ,
22
- } ,
23
- {
24
- emoji : '🧑🎓' ,
25
- description :
26
- 'Learn about the headless APIs, accessibility, and the html/css features to come' ,
27
- } ,
28
- ] ;
6
+ // const whyHeadless = [
7
+ // {
8
+ // emoji: '🧑🎨',
9
+ // description: 'Create your own components from scratch',
10
+ // },
11
+ // {
12
+ // emoji: '⛓️💥',
13
+ // description:
14
+ // 'Use with vanilla CSS, SASS, TailwindCSS, UnoCSS, PandaCSS, or whateverCSS',
15
+ // },
16
+ // {
17
+ // emoji: '🧑🎓',
18
+ // description:
19
+ // 'Learn about the headless APIs, accessibility, and the html/css features to come',
20
+ // },
21
+ // ];
29
22
30
- const whyStyled = [
31
- {
32
- emoji : '😌' ,
33
- description : 'Start with good defaults' ,
34
- } ,
35
- {
36
- emoji : '💫' ,
37
- description : "Change your entire app's style & theme at the click of a button" ,
38
- } ,
39
- {
40
- emoji : '👏' ,
41
- description : 'Avoid code duplication thanks to cva variants' ,
42
- } ,
43
- ] ;
23
+ // const whyStyled = [
24
+ // {
25
+ // emoji: '😌',
26
+ // description: 'Start with good defaults',
27
+ // },
28
+ // {
29
+ // emoji: '💫',
30
+ // description: "Change your entire app's style & theme at the click of a button",
31
+ // },
32
+ // {
33
+ // emoji: '👏',
34
+ // description: 'Avoid code duplication thanks to cva variants',
35
+ // },
36
+ // ];
44
37
45
38
export default component$ ( ( ) => {
46
39
return (
47
- < div class = "flex flex-col gap-8" >
48
- < h1 class = "text-center text-3xl font-bold leading-normal lg:text-5xl" >
49
- < span class = "text-primary text-outlined font-black tracking-wide" > Qwik</ span > { ' ' }
50
- < span class = "text-secondary font-black tracking-wide" > UI</ span >
40
+ < div class = "flex flex-col items-center gap-8 py-24 " >
41
+ < h1 class = "text-center text-4xl leading-normal lg:text-5xl" >
42
+ < span class = "text-primary text-outlined font-extrabold tracking-wide" > Qwik</ span > { ' ' }
43
+ < span class = "text-secondary font-extrabold tracking-wide" > UI</ span >
51
44
</ h1 >
52
- < h2 class = "text-center text-2xl font-bold leading-normal lg:text-4xl" >
53
- The world's fastest loading UI components < br />
45
+ < h2 class = "text-center text-xl font-bold leading-normal lg:text-3xl" >
46
+ Headless & styled copy - paste components
47
+ < br />
54
48
< span class = "text-primary text-outlined leading-normal" >
55
49
automatically optimized for you
56
50
</ span >
57
51
</ h2 >
58
- < p class = "text-center text-xl font-medium lg:text-2xl " >
52
+ < p class = "text-center text-lg lg:text-xl " >
59
53
Choose a kit and start building the future{ ' ' }
60
54
< span class = "hue-rotate-[150deg]" > ⚡</ span >
61
55
</ p >
62
56
< div class = "mt-4 flex flex-wrap justify-center justify-items-center gap-14" >
63
57
< a href = { `/docs/headless/introduction` } >
64
58
< Card
65
59
class = { cn (
66
- 'ease-step relative block w -full max-w-md rounded-lg shadow-lg outline-1 duration-150 hover:scale-[1.025] focus:scale-[1.025]' ,
60
+ 'ease-step relative block h -full max-w-md rounded-lg shadow-lg outline-1 duration-150 hover:scale-[1.025] focus:scale-[1.025]' ,
67
61
) }
68
62
>
69
63
< CardImage
70
64
src = { `/images/qwik-ui-headless-hero.webp` }
71
65
width = "300"
72
66
height = "300"
73
67
alt = { `styled kit` }
74
- class = "h-64 rounded-t-sm"
68
+ class = "w-full rounded-t-sm"
75
69
/>
76
70
< CardHeader >
77
71
< CardTitle class = "text-xl" > Headless</ CardTitle >
78
72
< CardDescription class = "text-lg" >
79
- A headless component library of unstyled, accessible, and resumable
80
- components for the most creative minds.
73
+ A headless component library of completely unstyled, accessible, and
74
+ resumable components for the most creative minds.
81
75
</ CardDescription >
82
76
</ CardHeader >
83
- < CardContent >
77
+ { /* <CardContent>
84
78
<ul>
85
79
{whyHeadless.map((pro, index) => (
86
80
<li key={index} class="mb-5 grid grid-cols-[25px_1fr] items-start">
@@ -89,17 +83,17 @@ export default component$(() => {
89
83
</li>
90
84
))}
91
85
</ul>
92
- </ CardContent >
86
+ </CardContent> */ }
93
87
</ Card >
94
88
</ a >
95
- < a href = { `/docs/headless /introduction` } >
96
- < Card class = "ease-step relative block w -full max-w-md rounded-lg shadow-lg outline-1 duration-150 hover:scale-[1.025] focus:scale-[1.025]" >
89
+ < a href = { `/docs/styled /introduction` } >
90
+ < Card class = "ease-step relative block h -full max-w-md rounded-lg shadow-lg outline-1 duration-150 hover:scale-[1.025] focus:scale-[1.025]" >
97
91
< CardImage
98
92
src = { `/images/qwik-ui-fluffy-creature-screen.webp` }
99
93
width = "300"
100
94
height = "300"
101
95
alt = { `styled kit` }
102
- class = "h-64 rounded-t-sm"
96
+ class = "w-full rounded-t-sm"
103
97
/>
104
98
< CardHeader >
105
99
< CardTitle class = "text-xl" > Styled</ CardTitle >
@@ -108,7 +102,7 @@ export default component$(() => {
108
102
components built on top of headless.
109
103
</ CardDescription >
110
104
</ CardHeader >
111
- < CardContent >
105
+ { /* <CardContent>
112
106
<ul>
113
107
{whyStyled.map((pro, index) => (
114
108
<li key={index} class="mb-5 grid grid-cols-[25px_1fr] items-start">
@@ -117,7 +111,7 @@ export default component$(() => {
117
111
</li>
118
112
))}
119
113
</ul>
120
- </ CardContent >
114
+ </CardContent> */ }
121
115
</ Card >
122
116
</ a >
123
117
</ div >
0 commit comments