Skip to content
This repository was archived by the owner on Sep 20, 2024. It is now read-only.

Commit eae605c

Browse files
Merge pull request #33 from chakra-ui/docs/update-landing-page
Docs: update landing page
2 parents 5acaa7f + 1e9504a commit eae605c

File tree

11 files changed

+2178
-2508
lines changed

11 files changed

+2178
-2508
lines changed
Lines changed: 35 additions & 0 deletions
Loading

website/src/assets/custom-theme.ts

Lines changed: 145 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,145 @@
1+
import { extendTheme } from '@chakra-ui/vue-next'
2+
import { mode } from '@chakra-ui/vue-theme-tools'
3+
4+
export default extendTheme({
5+
colors: {
6+
vue: {
7+
50: '#EEF8F4',
8+
100: '#CDEBDD',
9+
200: '#ACDEC6',
10+
300: '#8BD1AF',
11+
400: '#6AC398',
12+
500: '#42B883',
13+
600: '#30855F',
14+
700: '#2E7452',
15+
800: '#21533B',
16+
900: '#143223',
17+
},
18+
},
19+
fonts: {
20+
heading: `Inter, sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"`,
21+
body: `Inter, sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"`,
22+
},
23+
shadows: {
24+
search:
25+
'0 0 0 1px rgba(16,22,26,.1), 0 4px 8px rgba(16,22,26,.2), 0 18px 46px 6px rgba(16,22,26,.2)',
26+
},
27+
styles: {
28+
global: (props: any) => ({
29+
body: {
30+
color: mode('gray.700', 'whiteAlpha.900')(props),
31+
'.deleted': {
32+
color: '#ff8383 !important',
33+
fontStyle: 'normal !important',
34+
},
35+
'.inserted': {
36+
color: '#b5f4a5 !important',
37+
fontStyle: 'normal !important',
38+
},
39+
},
40+
}),
41+
},
42+
textStyles: {
43+
heading: {
44+
fontFamily: 'heading',
45+
textAlign: 'center',
46+
fontWeight: 'bold',
47+
letterSpacing: '-0.015em',
48+
lineHeight: '1.24',
49+
fontSize: { base: '2rem', md: '3.5rem' },
50+
},
51+
'heading-2': {
52+
fontFamily: 'heading',
53+
textAlign: 'center',
54+
fontWeight: 'bold',
55+
letterSpacing: '-0.015em',
56+
lineHeight: '1.24',
57+
fontSize: { base: '1.75rem', md: '2.75rem' },
58+
},
59+
caps: {
60+
textTransform: 'uppercase',
61+
fontSize: 'sm',
62+
letterSpacing: 'widest',
63+
fontWeight: 'bold',
64+
},
65+
},
66+
mdx: {
67+
h1: {
68+
mt: '2rem',
69+
mb: '.25rem',
70+
lineHeight: 1.2,
71+
fontWeight: 'bold',
72+
fontSize: '1.875rem',
73+
letterSpacing: '-.025em',
74+
},
75+
h2: {
76+
mt: '4rem',
77+
mb: '0.5rem',
78+
lineHeight: 1.3,
79+
fontWeight: 'semibold',
80+
fontSize: '1.5rem',
81+
letterSpacing: '-.025em',
82+
'& + h3': {
83+
mt: '1.5rem',
84+
},
85+
},
86+
h3: {
87+
mt: '3rem',
88+
// mb: "0.5rem",
89+
lineHeight: 1.25,
90+
fontWeight: 'semibold',
91+
fontSize: '1.25rem',
92+
letterSpacing: '-.025em',
93+
},
94+
h4: {
95+
mt: '3rem',
96+
lineHeight: 1.375,
97+
fontWeight: 'semibold',
98+
fontSize: '1.125rem',
99+
},
100+
a: {
101+
color: 'teal.500',
102+
fontWeight: 'semibold',
103+
transition: 'color 0.15s',
104+
transitionTimingFunction: 'ease-out',
105+
_hover: {
106+
color: 'teal.600',
107+
},
108+
},
109+
p: {
110+
mt: '1.25rem',
111+
lineHeight: 1.7,
112+
'blockquote &': {
113+
mt: 0,
114+
},
115+
},
116+
hr: {
117+
my: '4rem',
118+
},
119+
blockquote: {
120+
bg: 'orange.100',
121+
borderWidth: '1px',
122+
borderColor: 'orange.200',
123+
rounded: 'lg',
124+
px: '1.25rem',
125+
py: '1rem',
126+
my: '1.5rem',
127+
},
128+
ul: {
129+
mt: '1.5rem',
130+
ml: '1.25rem',
131+
'blockquote &': { mt: 0 },
132+
'& > * + *': {
133+
mt: '0.25rem',
134+
},
135+
},
136+
code: {
137+
rounded: 'sm',
138+
px: '1',
139+
fontSize: '0.875em',
140+
py: '2px',
141+
whiteSpace: 'nowrap',
142+
lineHeight: 'normal',
143+
},
144+
},
145+
})

website/src/components/Navbar.vue

Lines changed: 22 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
11
<template>
22
<chakra.nav
33
h="60px"
4-
w="100vw"
4+
w="100%"
55
px="4"
66
d="flex"
77
position="fixed"
88
align-items="center"
99
shadow="sm"
1010
bg="white"
1111
z-index="10"
12+
border-top="6px solid"
13+
border-color="vue.500"
1214
>
13-
<CFlex align-items="center" flex="1" />
15+
<CFlex align-items="center" :flex="{ base: 0, sm: 1 }" />
1416
<CFlex flex="1" justify-content="center">
1517
<CIcon name="search" mt="8px" />
1618
</CFlex>
@@ -23,35 +25,48 @@
2325
pt="8px"
2426
justify-content="flex-end"
2527
>
26-
<CBox as="li" mr="2">
28+
<CBox as="li" mr="2" :d="{ base: 'none', sm: 'block' }">
2729
<CIconButton
2830
as="a"
2931
variant="ghost"
3032
variant-color="gray"
31-
aria-label="View the documentation"
33+
aria-label="View GitHub"
3234
target="_blank"
35+
rel="noopener noreferrer"
3336
href="https://github.com/chakra-ui/chakra-ui-vue"
37+
icon="github"
38+
/>
39+
</CBox>
40+
<CBox as="li" mr="2" :d="{ base: 'none', sm: 'block' }">
41+
<CIconButton
42+
as="a"
43+
variant="ghost"
44+
variant-color="gray"
45+
aria-label="View the documentation"
46+
href="/getting-started"
3447
icon="book"
3548
/>
3649
</CBox>
37-
<CBox as="li" mr="2">
50+
<CBox as="li" mr="2" :d="{ base: 'none', sm: 'block' }">
3851
<CIconButton
3952
as="a"
4053
variant="ghost"
4154
variant-color="gray"
4255
aria-label="Join Discord channel"
4356
target="_blank"
44-
href="https://discord.gg/sq2Kp6x"
57+
rel="noopener noreferrer"
58+
href="https://github.com/chakra-ui/chakra-ui-vue"
4559
icon="message-circle"
4660
/>
4761
</CBox>
48-
<CBox as="li" mr="2">
62+
<CBox as="li">
4963
<CIconButton
5064
as="a"
5165
variant="ghost"
5266
variant-color="gray"
5367
aria-label="Open menu"
5468
target="_blank"
69+
rel="noopener noreferrer"
5570
href="https://discord.gg/sq2Kp6x"
5671
icon="menu"
5772
/>

0 commit comments

Comments
 (0)