@hanzo/ui 2.0.4 → 2.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/lux-site-icons/android-chrome-192x192.png +0 -0
- package/assets/lux-site-icons/android-chrome-512x512.png +0 -0
- package/assets/lux-site-icons/apple-touch-icon.png +0 -0
- package/assets/lux-site-icons/favicon-16x16.png +0 -0
- package/assets/lux-site-icons/favicon-32x32.png +0 -0
- package/assets/lux-site-icons/favicon.ico +0 -0
- package/assets/standard-docs/LUX-NFT-Terms-and-Conditions.pdf +0 -0
- package/assets/standard-docs/LUX-Privacy-Policy.pdf +0 -0
- package/blocks/components/card-block.tsx +1 -1
- package/blocks/components/screenful-block/index.tsx +11 -1
- package/common/chat-widget.tsx +75 -0
- package/common/contact-dialog/contact-form.tsx +111 -0
- package/common/contact-dialog/disclaimer.tsx +13 -0
- package/common/contact-dialog/index.tsx +48 -0
- package/common/copyright.tsx +21 -0
- package/common/drawer-menu.tsx +54 -0
- package/common/footer.tsx +77 -0
- package/common/head-metadata/from-next/metadata-types.ts +158 -0
- package/common/head-metadata/from-next/opengraph-types.ts +267 -0
- package/common/head-metadata/from-next/twitter-types.ts +92 -0
- package/common/head-metadata/index.tsx +208 -0
- package/common/header/index.tsx +66 -0
- package/common/header/mobile-nav.tsx +72 -0
- package/common/header/theme-toggle.tsx +26 -0
- package/common/icons/index.tsx +34 -0
- package/common/icons/lux-logo.tsx +10 -0
- package/common/icons/secure-delivery.tsx +13 -0
- package/common/icons/social-icon.tsx +35 -0
- package/common/index.ts +14 -0
- package/common/logo.tsx +71 -0
- package/common/mini-chart/index.tsx +8 -0
- package/common/mini-chart/mini-chart-props.ts +44 -0
- package/common/mini-chart/mini-chart.tsx +76 -0
- package/common/mini-chart/wrapper.tsx +23 -0
- package/context-providers/index.ts +1 -0
- package/{style → context-providers}/theme-provider.tsx +2 -2
- package/next/README.md +11 -0
- package/next/analytics/fpixel.ts +18 -0
- package/next/analytics/pixel-analytics.tsx +55 -0
- package/next/determine-device-middleware.ts +16 -0
- package/next/fonts/DrukTextWide-Bold-Trial.otf +0 -0
- package/next/fonts/DrukTextWide-Heavy-Trial.otf +0 -0
- package/next/fonts/DrukTextWide-Medium-Trial.otf +0 -0
- package/next/fonts/DrukWide-Bold-Trial.otf +0 -0
- package/next/fonts/DrukWide-Heavy-Trial.otf +0 -0
- package/next/fonts/DrukWide-Medium-Trial.otf +0 -0
- package/next/get-app-router-font-classes.ts +12 -0
- package/next/load-and-return-lux-next-fonts-on-import.ts +94 -0
- package/next/next-font-desc.ts +28 -0
- package/next/not-found-content.mdx +5 -0
- package/next/not-found.tsx +23 -0
- package/next/pages-router-font-vars.tsx +18 -0
- package/next/root-layout.tsx +62 -0
- package/package.json +12 -9
- package/primitives/carousel.tsx +263 -0
- package/primitives/index.ts +8 -1
- package/primitives/toggle-group.tsx +1 -1
- package/primitives/youtube-embed.tsx +1 -1
- package/siteDef/footer/community.tsx +67 -0
- package/siteDef/footer/company.ts +37 -0
- package/siteDef/footer/ecosystem.ts +37 -0
- package/siteDef/footer/index.tsx +26 -0
- package/siteDef/footer/legal.ts +28 -0
- package/siteDef/footer/network.ts +37 -0
- package/siteDef/footer/svg/warpcast-logo.svg +12 -0
- package/siteDef/main-nav.ts +35 -0
- package/style/hanzo-default-colors.css +2 -2
- package/style/social-svg.css +3 -0
- package/tailwind/{fontSize.tailwind.ts → fonts.tailwind.ts} +19 -1
- package/tailwind/index.ts +15 -4
- package/tailwind/lux-tw-fonts.ts +37 -0
- package/tailwind/{tailwind.config.hanzo-preset.js → tailwind.config.base.js} +2 -4
- package/tailwind/typo-plugin/get-plugin-styles.js +42 -42
- package/tailwind/typography-test.mdx +1 -1
- package/types/index.ts +15 -5
- package/types/site-def.ts +36 -0
- package/primitives/icons/index.ts +0 -18
- package/tailwind/fontFamily.tailwind.ts +0 -7
- package/tailwind/tailwind.config.hanzo-preset.d.ts +0 -5
- /package/{primitives → common}/icons/github.tsx +0 -0
- /package/{primitives → common}/icons/youtube-logo.tsx +0 -0
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type { LinkDef } from '../types'
|
|
2
|
+
|
|
3
|
+
export default [
|
|
4
|
+
{
|
|
5
|
+
title: "AI",
|
|
6
|
+
href: "https://lux.chat",
|
|
7
|
+
newTab: false,
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
title: "Credit",
|
|
11
|
+
href: "https://lux.credit",
|
|
12
|
+
newTab: false,
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
title: "Exchange",
|
|
16
|
+
href: "https://lux.exchange",
|
|
17
|
+
newTab: false,
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
title: "Finance",
|
|
21
|
+
href: "https://lux.finance",
|
|
22
|
+
newTab: false,
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
title: "Market",
|
|
26
|
+
href: "https://lux.market",
|
|
27
|
+
newTab: false,
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
title: "Network",
|
|
31
|
+
href: "https://lux.network",
|
|
32
|
+
newTab: false,
|
|
33
|
+
},
|
|
34
|
+
] satisfies LinkDef[]
|
|
35
|
+
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
@layer base {
|
|
5
5
|
|
|
6
|
-
:root, .
|
|
6
|
+
:root, .lux-light-theme {
|
|
7
7
|
--hz-ui-fg-0: hsl(0 0% 0%);
|
|
8
8
|
--hz-ui-fg-body: hsl(0 0% 10%);
|
|
9
9
|
--hz-ui-fg-1: hsl(0 0% 20%);
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
--hz-ui-radius: 0.5rem;
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
-
.
|
|
52
|
+
.lux-dark-theme {
|
|
53
53
|
|
|
54
54
|
--hz-ui-fg-0: hsl(0 0% 100%);
|
|
55
55
|
--hz-ui-fg-body: hsl(0, 0%, 97%);
|
|
@@ -1,4 +1,22 @@
|
|
|
1
|
-
|
|
1
|
+
import luxTwFonts from './lux-tw-fonts'
|
|
2
|
+
import type TwFontDesc from './tw-font-desc'
|
|
3
|
+
|
|
4
|
+
export const fontFamily = (ignoreTheme: any): {
|
|
5
|
+
[key: string]: string[]
|
|
6
|
+
} => {
|
|
7
|
+
|
|
8
|
+
let result: any = {}
|
|
9
|
+
luxTwFonts.forEach((font: TwFontDesc) => {
|
|
10
|
+
result[font.twName] = font.fontFamily
|
|
11
|
+
// eg: heading: ['var(--font-druk-text-wide)']
|
|
12
|
+
})
|
|
13
|
+
|
|
14
|
+
return result as {
|
|
15
|
+
[key: string]: string[]
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export const fontSize = {
|
|
2
20
|
xxs: ['0.65rem', { lineHeight: '0.8rem' }], // very fine print
|
|
3
21
|
xs: ['0.8rem', { lineHeight: '1rem' }], // fine print
|
|
4
22
|
sm: ['0.9rem', { lineHeight: '1.2rem' }], // 'standard' some news article cards (set manually when using typography-sm)
|
package/tailwind/index.ts
CHANGED
|
@@ -1,7 +1,18 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import colors from './colors.tailwind'
|
|
2
|
+
import { fontFamily, fontSize } from './fonts.tailwind'
|
|
3
|
+
import safelist from './safelist.tailwind'
|
|
4
|
+
import screens from './screens.tailwind'
|
|
5
|
+
import spacing from './spacing.tailwind'
|
|
6
|
+
import typographyPlugin from './typo-plugin'
|
|
7
|
+
import config from './tailwind.config.base'
|
|
3
8
|
|
|
4
9
|
export {
|
|
5
|
-
|
|
6
|
-
|
|
10
|
+
colors,
|
|
11
|
+
config,
|
|
12
|
+
fontFamily,
|
|
13
|
+
fontSize,
|
|
14
|
+
safelist,
|
|
15
|
+
screens,
|
|
16
|
+
spacing,
|
|
17
|
+
typographyPlugin
|
|
7
18
|
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import type TwFontDesc from './tw-font-desc'
|
|
2
|
+
|
|
3
|
+
export default [
|
|
4
|
+
{
|
|
5
|
+
fontFamily: ['var(--font-inter)'], // do not provide fall-backs due to next bug
|
|
6
|
+
cssVar: '--font-inter',
|
|
7
|
+
twName: 'sans'
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
fontFamily: ['var(--font-druk-text-wide)'], // do not provide fall-backs due to next bug
|
|
11
|
+
cssVar: '--font-druk-text-wide',
|
|
12
|
+
twName: 'nav'
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
fontFamily: ['var(--font-druk-wide)'], // do not provide fall-backs due to next bug
|
|
16
|
+
cssVar: '--font-druk-wide',
|
|
17
|
+
twName: 'heading'
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
twName: 'serif',
|
|
21
|
+
fontFamily: ['ui-serif', 'Georgia', 'Cambria', '"Times New Roman"', 'Times']
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
twName: 'mono',
|
|
25
|
+
fontFamily: [
|
|
26
|
+
'ui-monospace',
|
|
27
|
+
'SFMono-Regular',
|
|
28
|
+
'Menlo',
|
|
29
|
+
'Monaco',
|
|
30
|
+
'Consolas',
|
|
31
|
+
'"Liberation Mono"',
|
|
32
|
+
'"Courier New"',
|
|
33
|
+
'monospace',
|
|
34
|
+
]
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
] as TwFontDesc[]
|
|
@@ -6,14 +6,12 @@ import colors from './colors.tailwind'
|
|
|
6
6
|
import safelist from './safelist.tailwind'
|
|
7
7
|
import screens from './screens.tailwind'
|
|
8
8
|
import spacing from './spacing.tailwind'
|
|
9
|
-
import fontSize from './
|
|
10
|
-
import fontFamily from './fontFamily.tailwind'
|
|
9
|
+
import { fontFamily, fontSize} from './fonts.tailwind'
|
|
11
10
|
import typographyPlugin from './typo-plugin'
|
|
12
11
|
|
|
13
12
|
export default {
|
|
14
13
|
presets: [],
|
|
15
14
|
darkMode: ["class"],
|
|
16
|
-
content: [],
|
|
17
15
|
safelist,
|
|
18
16
|
plugins: [
|
|
19
17
|
animatePlugin,
|
|
@@ -298,7 +296,7 @@ export default {
|
|
|
298
296
|
0: '0',
|
|
299
297
|
DEFAULT: '1',
|
|
300
298
|
},
|
|
301
|
-
fontFamily,
|
|
299
|
+
fontFamily,
|
|
302
300
|
fontSize,
|
|
303
301
|
fontWeight: {
|
|
304
302
|
thin: '100',
|
|
@@ -7,29 +7,29 @@ import {
|
|
|
7
7
|
const typographyColorTheme = {
|
|
8
8
|
// vars are defined in global.css
|
|
9
9
|
// and dark mode is handled at that level.
|
|
10
|
-
'--tw-
|
|
11
|
-
'--tw-
|
|
12
|
-
'--tw-
|
|
13
|
-
'--tw-
|
|
14
|
-
'--tw-
|
|
15
|
-
'--tw-
|
|
16
|
-
'--tw-
|
|
17
|
-
'--tw-
|
|
18
|
-
'--tw-
|
|
19
|
-
'--tw-
|
|
20
|
-
'--tw-
|
|
21
|
-
'--tw-
|
|
22
|
-
'--tw-
|
|
23
|
-
'--tw-
|
|
24
|
-
'--tw-
|
|
25
|
-
'--tw-
|
|
26
|
-
'--tw-
|
|
27
|
-
'--tw-
|
|
10
|
+
'--tw-prose-body': "var(--hz-ui-fg-body)",
|
|
11
|
+
'--tw-prose-headings': "var(--hz-ui-fg-0)",
|
|
12
|
+
'--tw-prose-links': "var(--hz-ui-fg-0)",
|
|
13
|
+
'--tw-prose-links-hover': "var(--hz-ui-fg-2)",
|
|
14
|
+
'--tw-prose-bold': "var(--hz-ui-fg-0)",
|
|
15
|
+
'--tw-prose-counters': "var(--hz-ui-fg-4)",
|
|
16
|
+
'--tw-prose-bullets': "var(--hz-ui-fg-2)",
|
|
17
|
+
'--tw-prose-hr': "var(--hz-ui-fg-2)",
|
|
18
|
+
'--tw-prose-quotes': "var(--hz-ui-fg-body)",
|
|
19
|
+
'--tw-prose-quote-borders': "var(--hz-ui-fg-3)",
|
|
20
|
+
'--tw-prose-captions': "var(--hz-ui-fg-2)",
|
|
21
|
+
'--tw-prose-kbd': "var(--hz-ui-fg-0)",
|
|
22
|
+
'--tw-prose-kbd-shadows': "var(--hz-ui-fg-1)",
|
|
23
|
+
'--tw-prose-code': "var(--hz-ui-fg-0)",
|
|
24
|
+
'--tw-prose-pre-code': "var(--hz-ui-fg-1)",
|
|
25
|
+
'--tw-prose-pre-bg': "var(--hz-ui-bg-1)",
|
|
26
|
+
'--tw-prose-th-borders': "var(--hz-ui-fg-2)",
|
|
27
|
+
'--tw-prose-td-borders': "var(--hz-ui-fg-3)",
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
const defaultCSS = {
|
|
31
31
|
|
|
32
|
-
color: 'var(--tw-
|
|
32
|
+
color: 'var(--tw-prose-body)',
|
|
33
33
|
// YUCK maxWidth: '65ch',
|
|
34
34
|
p: {
|
|
35
35
|
textAlign: 'inherit'
|
|
@@ -37,17 +37,17 @@ const defaultCSS = {
|
|
|
37
37
|
'p:first-child': {},
|
|
38
38
|
'p:last-child': {},
|
|
39
39
|
a: {
|
|
40
|
-
color: 'var(--tw-
|
|
40
|
+
color: 'var(--tw-prose-links)',
|
|
41
41
|
textDecoration: 'underline',
|
|
42
42
|
fontWeight: '400',
|
|
43
43
|
},
|
|
44
44
|
'a:hover': {
|
|
45
|
-
color: 'var(--tw-
|
|
45
|
+
color: 'var(--tw-prose-links-hover)',
|
|
46
46
|
},
|
|
47
47
|
blockquote: {
|
|
48
48
|
fontWeight: '400',
|
|
49
49
|
fontStyle: 'italic',
|
|
50
|
-
color: 'var(--tw-
|
|
50
|
+
color: 'var(--tw-prose-quotes)',
|
|
51
51
|
quotes: '"\\201C""\\201D""\\2018""\\2019"',
|
|
52
52
|
},
|
|
53
53
|
//'blockquote::before': {},
|
|
@@ -65,7 +65,7 @@ const defaultCSS = {
|
|
|
65
65
|
display: 'block',
|
|
66
66
|
fontStyle: 'normal',
|
|
67
67
|
textAlign: 'right',
|
|
68
|
-
color: 'var(--tw-
|
|
68
|
+
color: 'var(--tw-prose-quotes)',
|
|
69
69
|
},
|
|
70
70
|
ol: {
|
|
71
71
|
listStyleType: 'decimal',
|
|
@@ -75,44 +75,44 @@ const defaultCSS = {
|
|
|
75
75
|
},
|
|
76
76
|
'ol > li::marker': {
|
|
77
77
|
fontWeight: '400',
|
|
78
|
-
color: 'var(--tw-
|
|
78
|
+
color: 'var(--tw-prose-counters)',
|
|
79
79
|
},
|
|
80
80
|
'ul > li::marker': {
|
|
81
|
-
color: 'var(--tw-
|
|
81
|
+
color: 'var(--tw-prose-bullets)',
|
|
82
82
|
},
|
|
83
83
|
'ul > li::before': {
|
|
84
84
|
},
|
|
85
85
|
hr: {
|
|
86
|
-
borderColor: 'var(--tw-
|
|
86
|
+
borderColor: 'var(--tw-prose-hr)',
|
|
87
87
|
borderTopWidth: 1,
|
|
88
88
|
},
|
|
89
89
|
h1: {
|
|
90
|
-
color: 'var(--tw-
|
|
90
|
+
color: 'var(--tw-prose-headings)',
|
|
91
91
|
fontWeight: '800',
|
|
92
92
|
textAlign: 'inherit'
|
|
93
93
|
},
|
|
94
94
|
h2: {
|
|
95
|
-
color: 'var(--tw-
|
|
95
|
+
color: 'var(--tw-prose-headings)',
|
|
96
96
|
fontWeight: '700',
|
|
97
97
|
textAlign: 'inherit'
|
|
98
98
|
},
|
|
99
99
|
h3: {
|
|
100
|
-
color: 'var(--tw-
|
|
100
|
+
color: 'var(--tw-prose-headings)',
|
|
101
101
|
fontWeight: '600',
|
|
102
102
|
textAlign: 'inherit'
|
|
103
103
|
},
|
|
104
104
|
h4: {
|
|
105
|
-
color: 'var(--tw-
|
|
105
|
+
color: 'var(--tw-prose-headings)',
|
|
106
106
|
fontWeight: '600',
|
|
107
107
|
textAlign: 'inherit'
|
|
108
108
|
},
|
|
109
109
|
h5: {
|
|
110
|
-
color: 'var(--tw-
|
|
110
|
+
color: 'var(--tw-prose-headings)',
|
|
111
111
|
fontWeight: '600',
|
|
112
112
|
textAlign: 'inherit'
|
|
113
113
|
},
|
|
114
114
|
h6: {
|
|
115
|
-
color: 'var(--tw-
|
|
115
|
+
color: 'var(--tw-prose-headings)',
|
|
116
116
|
textAlign: 'inherit'
|
|
117
117
|
},
|
|
118
118
|
img: {},
|
|
@@ -124,19 +124,19 @@ const defaultCSS = {
|
|
|
124
124
|
display: 'block',
|
|
125
125
|
},
|
|
126
126
|
strong: {
|
|
127
|
-
color: 'var(--tw-
|
|
127
|
+
color: 'var(--tw-prose-bold)',
|
|
128
128
|
fontWeight: '600',
|
|
129
129
|
},
|
|
130
130
|
video: {},
|
|
131
131
|
kbd: {
|
|
132
132
|
fontWeight: '500',
|
|
133
133
|
fontFamily: 'inherit',
|
|
134
|
-
color: 'var(--tw-
|
|
134
|
+
color: 'var(--tw-prose-kbd)',
|
|
135
135
|
boxShadow:
|
|
136
|
-
'0 0 0 1px rgb(var(--tw-
|
|
136
|
+
'0 0 0 1px rgb(var(--tw-prose-kbd-shadows) / 10%), 0 3px 0 rgb(var(--tw-prose-kbd-shadows) / 10%)',
|
|
137
137
|
},
|
|
138
138
|
code: {
|
|
139
|
-
color: 'var(--tw-
|
|
139
|
+
color: 'var(--tw-prose-code)',
|
|
140
140
|
fontWeight: '500',
|
|
141
141
|
},
|
|
142
142
|
'code::before': {
|
|
@@ -173,8 +173,8 @@ const defaultCSS = {
|
|
|
173
173
|
color: 'inherit',
|
|
174
174
|
},
|
|
175
175
|
pre: {
|
|
176
|
-
color: 'var(--tw-
|
|
177
|
-
backgroundColor: 'var(--tw-
|
|
176
|
+
color: 'var(--tw-prose-pre-code)',
|
|
177
|
+
backgroundColor: 'var(--tw-prose-pre-bg)',
|
|
178
178
|
overflowX: 'auto',
|
|
179
179
|
fontWeight: '400',
|
|
180
180
|
},
|
|
@@ -202,10 +202,10 @@ const defaultCSS = {
|
|
|
202
202
|
},
|
|
203
203
|
thead: {
|
|
204
204
|
borderBottomWidth: '1px',
|
|
205
|
-
borderBottomColor: 'var(--tw-
|
|
205
|
+
borderBottomColor: 'var(--tw-prose-th-borders)',
|
|
206
206
|
},
|
|
207
207
|
'thead th': {
|
|
208
|
-
color: 'var(--tw-
|
|
208
|
+
color: 'var(--tw-prose-headings)',
|
|
209
209
|
fontWeight: '600',
|
|
210
210
|
verticalAlign: 'bottom',
|
|
211
211
|
},
|
|
@@ -218,7 +218,7 @@ const defaultCSS = {
|
|
|
218
218
|
},
|
|
219
219
|
tfoot: {
|
|
220
220
|
borderTopWidth: '1px',
|
|
221
|
-
borderTopColor: 'var(--tw-
|
|
221
|
+
borderTopColor: 'var(--tw-prose-th-borders)',
|
|
222
222
|
},
|
|
223
223
|
'tfoot td': {
|
|
224
224
|
verticalAlign: 'top',
|
|
@@ -244,7 +244,7 @@ const defaultModifiers = (base) => ({
|
|
|
244
244
|
a: {},
|
|
245
245
|
'a:hover': {},
|
|
246
246
|
blockquote: {
|
|
247
|
-
//color: 'blue', //var(--tw-
|
|
247
|
+
//color: 'blue', //var(--tw-prose-quotes)',
|
|
248
248
|
//marginTop: pxToEm(32, 20),
|
|
249
249
|
//marginBottom: pxToEm(32, 20),
|
|
250
250
|
//paddingLeft: pxToEm(20, 20),
|
package/types/index.ts
CHANGED
|
@@ -11,9 +11,19 @@ export type {default as GridDef, GridColumnSpec} from './grid-def'
|
|
|
11
11
|
export type { TShirtDimensions, Dimensions } from './dimensions'
|
|
12
12
|
export type { ContactInfo, ContactInfoFields } from './contact-info'
|
|
13
13
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
14
|
+
import type BulletItem from './bullet-item'
|
|
15
|
+
import type Icon from './icon'
|
|
16
|
+
import type ImageDef from './image-def'
|
|
17
|
+
import type LinkDef from './link-def'
|
|
18
|
+
import type SiteDef from './site-def'
|
|
19
|
+
import type TShirtSize from './t-shirt-size'
|
|
20
|
+
|
|
21
|
+
export {
|
|
22
|
+
type BulletItem,
|
|
23
|
+
type Icon,
|
|
24
|
+
type ImageDef,
|
|
25
|
+
type LinkDef,
|
|
26
|
+
type SiteDef,
|
|
27
|
+
type TShirtSize,
|
|
28
|
+
}
|
|
19
29
|
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type LinkDef from './link-def'
|
|
2
|
+
|
|
3
|
+
interface SiteDef {
|
|
4
|
+
/** url of this site. All nav links in the system will show it in 'current' state */
|
|
5
|
+
currentAs?: string
|
|
6
|
+
nav: {
|
|
7
|
+
/** common elements (will auto-select currentAs if it's provide) */
|
|
8
|
+
/** optional feature element. right-most after 'elements' (any min-w is ignored) */
|
|
9
|
+
common: LinkDef[]
|
|
10
|
+
featured?: LinkDef[]
|
|
11
|
+
auth?: boolean
|
|
12
|
+
cart?: React.ReactNode
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Array of columns, each of which itself is an array of links
|
|
17
|
+
* (or "title defs" where href='' and variant='linkFG')
|
|
18
|
+
* Common use case: To render a site-specific first column:
|
|
19
|
+
* {
|
|
20
|
+
* footer[myColumn, ...commonColumnsFromUi]
|
|
21
|
+
* }
|
|
22
|
+
* see: @hanzo/ui/siteDef/footer (default export)
|
|
23
|
+
* or @hanzo/ui/siteDef/footer/common
|
|
24
|
+
*/
|
|
25
|
+
footer: LinkDef[][]
|
|
26
|
+
|
|
27
|
+
/** optional override of default 'above copyright' horizantal links */
|
|
28
|
+
/** default (undefined or absent): @ui/sideDef/footer/legal are rendered */
|
|
29
|
+
/** [] renders nothing above the copyright */
|
|
30
|
+
aboveCopyright?: LinkDef[]
|
|
31
|
+
|
|
32
|
+
/** any site-specific stuff we'd like access to (link urls, etc) */
|
|
33
|
+
ext?: any
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export { type SiteDef as default }
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Moon as moon,
|
|
3
|
-
SunMedium as sun,
|
|
4
|
-
Menu as burger,
|
|
5
|
-
ArrowUpRight as linkOut,
|
|
6
|
-
} from 'lucide-react'
|
|
7
|
-
|
|
8
|
-
import youtube from './youtube-logo'
|
|
9
|
-
import gitHub from './github'
|
|
10
|
-
|
|
11
|
-
export {
|
|
12
|
-
sun,
|
|
13
|
-
moon,
|
|
14
|
-
burger,
|
|
15
|
-
gitHub,
|
|
16
|
-
linkOut,
|
|
17
|
-
youtube,
|
|
18
|
-
}
|
|
File without changes
|
|
File without changes
|