Skip to content

Commit b7d7eac

Browse files
committed
docs(landing): improve responsiveness
1 parent b848e1e commit b7d7eac

File tree

2 files changed

+51
-57
lines changed

2 files changed

+51
-57
lines changed

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

Lines changed: 50 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -1,86 +1,80 @@
11
import { component$ } from '@builder.io/qwik';
22
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';
114
import { cn } from '@qwik-ui/utils';
125

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+
// ];
2922

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+
// ];
4437

4538
export default component$(() => {
4639
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>
5144
</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 />
5448
<span class="text-primary text-outlined leading-normal">
5549
automatically optimized for you
5650
</span>
5751
</h2>
58-
<p class="text-center text-xl font-medium lg:text-2xl">
52+
<p class="text-center text-lg lg:text-xl">
5953
Choose a kit and start building the future{' '}
6054
<span class="hue-rotate-[150deg]"></span>
6155
</p>
6256
<div class="mt-4 flex flex-wrap justify-center justify-items-center gap-14">
6357
<a href={`/docs/headless/introduction`}>
6458
<Card
6559
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]',
6761
)}
6862
>
6963
<CardImage
7064
src={`/images/qwik-ui-headless-hero.webp`}
7165
width="300"
7266
height="300"
7367
alt={`styled kit`}
74-
class="h-64 rounded-t-sm"
68+
class="w-full rounded-t-sm"
7569
/>
7670
<CardHeader>
7771
<CardTitle class="text-xl">Headless</CardTitle>
7872
<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.
8175
</CardDescription>
8276
</CardHeader>
83-
<CardContent>
77+
{/* <CardContent>
8478
<ul>
8579
{whyHeadless.map((pro, index) => (
8680
<li key={index} class="mb-5 grid grid-cols-[25px_1fr] items-start">
@@ -89,17 +83,17 @@ export default component$(() => {
8983
</li>
9084
))}
9185
</ul>
92-
</CardContent>
86+
</CardContent> */}
9387
</Card>
9488
</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]">
9791
<CardImage
9892
src={`/images/qwik-ui-fluffy-creature-screen.webp`}
9993
width="300"
10094
height="300"
10195
alt={`styled kit`}
102-
class="h-64 rounded-t-sm"
96+
class="w-full rounded-t-sm"
10397
/>
10498
<CardHeader>
10599
<CardTitle class="text-xl">Styled</CardTitle>
@@ -108,7 +102,7 @@ export default component$(() => {
108102
components built on top of headless.
109103
</CardDescription>
110104
</CardHeader>
111-
<CardContent>
105+
{/* <CardContent>
112106
<ul>
113107
{whyStyled.map((pro, index) => (
114108
<li key={index} class="mb-5 grid grid-cols-[25px_1fr] items-start">
@@ -117,7 +111,7 @@ export default component$(() => {
117111
</li>
118112
))}
119113
</ul>
120-
</CardContent>
114+
</CardContent> */}
121115
</Card>
122116
</a>
123117
</div>

apps/website/src/routes/layout-landing.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export default component$(() => {
66
return (
77
<>
88
<Header />
9-
<main class="mx-auto mb-24 max-w-7xl px-2 pt-28 md:px-8 lg:pt-32">
9+
<main>
1010
<Slot />
1111
</main>
1212
<Footer />

0 commit comments

Comments
 (0)