@hyvor/design 0.0.67 → 1.0.3
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/dist/components/ActionList/ActionList.svelte +21 -13
- package/dist/components/ActionList/ActionList.svelte.d.ts +8 -20
- package/dist/components/ActionList/ActionListGroup.svelte +40 -35
- package/dist/components/ActionList/ActionListGroup.svelte.d.ts +8 -20
- package/dist/components/ActionList/ActionListItem.svelte +129 -107
- package/dist/components/ActionList/ActionListItem.svelte.d.ts +27 -25
- package/dist/components/ActionList/Selected.svelte +27 -24
- package/dist/components/ActionList/Selected.svelte.d.ts +6 -17
- package/dist/components/Avatar/Avatar.svelte +22 -19
- package/dist/components/Avatar/Avatar.svelte.d.ts +7 -18
- package/dist/components/Avatar/AvatarStack.svelte +29 -27
- package/dist/components/Avatar/AvatarStack.svelte.d.ts +6 -18
- package/dist/components/Base/Base.svelte +16 -8
- package/dist/components/Base/Base.svelte.d.ts +6 -18
- package/dist/components/Box/Box.svelte +16 -9
- package/dist/components/Box/Box.svelte.d.ts +7 -19
- package/dist/components/Button/Button.svelte +65 -47
- package/dist/components/Button/Button.svelte.d.ts +16 -39
- package/dist/components/Button/ButtonGroup.svelte +14 -6
- package/dist/components/Button/ButtonGroup.svelte.d.ts +5 -27
- package/dist/components/Callout/Callout.svelte +110 -87
- package/dist/components/Callout/Callout.svelte.d.ts +11 -22
- package/dist/components/Checkbox/Checkbox.svelte +156 -144
- package/dist/components/Checkbox/Checkbox.svelte.d.ts +11 -34
- package/dist/components/CodeBlock/CodeBlock.svelte +45 -32
- package/dist/components/CodeBlock/CodeBlock.svelte.d.ts +6 -17
- package/dist/components/CodeBlock/getCode.js +8 -6
- package/dist/components/CodeBlock/hljs.scss +189 -191
- package/dist/components/CodeBlock/prism.scss +370 -7
- package/dist/components/ColorPicker/ColorPicker.svelte +75 -56
- package/dist/components/ColorPicker/ColorPicker.svelte.d.ts +25 -19
- package/dist/components/Dark/DarkProvider.svelte +16 -14
- package/dist/components/Dark/DarkProvider.svelte.d.ts +16 -12
- package/dist/components/Dark/DarkToggle.svelte +15 -16
- package/dist/components/Dark/DarkToggle.svelte.d.ts +16 -12
- package/dist/components/Divider/Divider.svelte +23 -13
- package/dist/components/Divider/Divider.svelte.d.ts +9 -20
- package/dist/components/Dropdown/Dropdown.svelte +58 -114
- package/dist/components/Dropdown/Dropdown.svelte.d.ts +13 -24
- package/dist/components/Dropdown/DropdownContent.svelte +152 -0
- package/dist/components/Dropdown/DropdownContent.svelte.d.ts +12 -0
- package/dist/components/FormControl/Caption.svelte +18 -11
- package/dist/components/FormControl/Caption.svelte.d.ts +7 -19
- package/dist/components/FormControl/FormControl.svelte +28 -19
- package/dist/components/FormControl/FormControl.svelte.d.ts +6 -27
- package/dist/components/FormControl/InputGroup.svelte +22 -15
- package/dist/components/FormControl/InputGroup.svelte.d.ts +7 -19
- package/dist/components/FormControl/Label.svelte +15 -6
- package/dist/components/FormControl/Label.svelte.d.ts +6 -27
- package/dist/components/FormControl/Validation.svelte +30 -19
- package/dist/components/FormControl/Validation.svelte.d.ts +9 -21
- package/dist/components/HyvorBar/BarProducts.svelte +71 -0
- package/dist/components/HyvorBar/BarProducts.svelte.d.ts +32 -0
- package/dist/components/HyvorBar/BarSupport.svelte +183 -0
- package/dist/components/HyvorBar/BarSupport.svelte.d.ts +8 -0
- package/dist/components/HyvorBar/BarUpdates.svelte +68 -0
- package/dist/components/HyvorBar/BarUpdates.svelte.d.ts +7 -0
- package/dist/components/HyvorBar/BarUpdatesList.svelte +159 -0
- package/dist/components/HyvorBar/BarUpdatesList.svelte.d.ts +7 -0
- package/dist/components/HyvorBar/BarUser.svelte +72 -0
- package/dist/components/HyvorBar/BarUser.svelte.d.ts +5 -0
- package/dist/components/HyvorBar/BarUserPreview.svelte +43 -0
- package/dist/components/HyvorBar/BarUserPreview.svelte.d.ts +18 -0
- package/dist/components/HyvorBar/HyvorBar.svelte +183 -0
- package/dist/components/HyvorBar/HyvorBar.svelte.d.ts +8 -0
- package/dist/components/HyvorBar/bar.d.ts +33 -0
- package/dist/components/HyvorBar/bar.js +74 -0
- package/dist/components/HyvorBar/img/G2.svelte +9 -0
- package/dist/components/HyvorBar/img/G2.svelte.d.ts +26 -0
- package/dist/components/HyvorBar/img/Trustpilot.svelte +11 -0
- package/dist/components/HyvorBar/img/Trustpilot.svelte.d.ts +26 -0
- package/dist/components/IconButton/IconButton.svelte +49 -32
- package/dist/components/IconButton/IconButton.svelte.d.ts +10 -33
- package/dist/components/IconMessage/IconMessage.svelte +157 -51
- package/dist/components/IconMessage/IconMessage.svelte.d.ts +19 -27
- package/dist/components/Internationalization/InternationalizationProvider.svelte +15 -8
- package/dist/components/Internationalization/InternationalizationProvider.svelte.d.ts +7 -19
- package/dist/components/Internationalization/LanguageToggle.svelte +80 -57
- package/dist/components/Internationalization/LanguageToggle.svelte.d.ts +11 -22
- package/dist/components/Internationalization/T.svelte +158 -114
- package/dist/components/Internationalization/T.svelte.d.ts +17 -15
- package/dist/components/Internationalization/i18n.d.ts +3 -5
- package/dist/components/Internationalization/i18n.js +13 -11
- package/dist/components/Internationalization/t.d.ts +2 -3
- package/dist/components/Internationalization/t.js +4 -4
- package/dist/components/Internationalization/types.d.ts +2 -1
- package/dist/components/Link/Link.svelte +68 -61
- package/dist/components/Link/Link.svelte.d.ts +11 -34
- package/dist/components/Loader/LoadButton.svelte +39 -38
- package/dist/components/Loader/LoadButton.svelte.d.ts +29 -42
- package/dist/components/Loader/Loader.svelte +121 -107
- package/dist/components/Loader/Loader.svelte.d.ts +15 -27
- package/dist/components/Modal/ConfirmModalProvider.svelte +41 -51
- package/dist/components/Modal/ConfirmModalProvider.svelte.d.ts +3 -14
- package/dist/components/Modal/Modal.svelte +202 -203
- package/dist/components/Modal/Modal.svelte.d.ts +31 -29
- package/dist/components/Modal/ModalFooter.svelte +36 -31
- package/dist/components/Modal/ModalFooter.svelte.d.ts +22 -18
- package/dist/components/Modal/confirm.d.ts +2 -2
- package/dist/components/Modal/confirm.js +4 -4
- package/dist/components/Modal/modal-types.d.ts +4 -4
- package/dist/components/NavLink/NavLink.svelte +94 -89
- package/dist/components/NavLink/NavLink.svelte.d.ts +11 -33
- package/dist/components/Radio/Radio.svelte +46 -35
- package/dist/components/Radio/Radio.svelte.d.ts +10 -33
- package/dist/components/Slider/Slider.svelte +129 -120
- package/dist/components/Slider/Slider.svelte.d.ts +24 -20
- package/dist/components/SplitControl/SplitControl.svelte +43 -48
- package/dist/components/SplitControl/SplitControl.svelte.d.ts +11 -24
- package/dist/components/Switch/Switch.svelte +77 -67
- package/dist/components/Switch/Switch.svelte.d.ts +8 -31
- package/dist/components/TabNav/TabNav.svelte +33 -23
- package/dist/components/TabNav/TabNav.svelte.d.ts +7 -19
- package/dist/components/TabNav/TabNavItem.svelte +65 -51
- package/dist/components/TabNav/TabNavItem.svelte.d.ts +10 -24
- package/dist/components/Table/Table.svelte +17 -7
- package/dist/components/Table/Table.svelte.d.ts +7 -19
- package/dist/components/Table/TableRow.svelte +32 -24
- package/dist/components/Table/TableRow.svelte.d.ts +7 -19
- package/dist/components/Tag/Tag.svelte +75 -49
- package/dist/components/Tag/Tag.svelte.d.ts +16 -39
- package/dist/components/Text/Text.svelte +33 -26
- package/dist/components/Text/Text.svelte.d.ts +10 -22
- package/dist/components/TextInput/TextInput.svelte +54 -33
- package/dist/components/TextInput/TextInput.svelte.d.ts +12 -36
- package/dist/components/Textarea/Textarea.svelte +68 -46
- package/dist/components/Textarea/Textarea.svelte.d.ts +13 -37
- package/dist/components/Toast/ToastIcon.svelte +55 -46
- package/dist/components/Toast/ToastIcon.svelte.d.ts +5 -16
- package/dist/components/Toast/ToastMessage.svelte +42 -41
- package/dist/components/Toast/ToastMessage.svelte.d.ts +5 -16
- package/dist/components/Toast/ToastProvider.svelte +22 -20
- package/dist/components/Toast/ToastProvider.svelte.d.ts +16 -12
- package/dist/components/Toast/cleaner.js +5 -5
- package/dist/components/Toast/toast.d.ts +3 -3
- package/dist/components/Toast/toast.js +10 -10
- package/dist/components/Tooltip/Tooltip.svelte +163 -148
- package/dist/components/Tooltip/Tooltip.svelte.d.ts +35 -23
- package/dist/components/directives/clickOutside.js +4 -4
- package/dist/components/directives/debounce.d.ts +1 -0
- package/dist/components/directives/debounce.js +8 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +1 -0
- package/dist/index.css +31 -33
- package/dist/marketing/Container/Container.svelte +15 -9
- package/dist/marketing/Container/Container.svelte.d.ts +6 -18
- package/dist/marketing/Docs/Content/Content.svelte +48 -35
- package/dist/marketing/Docs/Content/Content.svelte.d.ts +5 -16
- package/dist/marketing/Docs/Content/DocsImage.svelte +67 -69
- package/dist/marketing/Docs/Content/DocsImage.svelte.d.ts +9 -20
- package/dist/marketing/Docs/Docs.svelte +28 -25
- package/dist/marketing/Docs/Docs.svelte.d.ts +6 -29
- package/dist/marketing/Docs/Nav/Nav.svelte +96 -70
- package/dist/marketing/Docs/Nav/Nav.svelte.d.ts +5 -16
- package/dist/marketing/Docs/Nav/NavCategory.svelte +39 -29
- package/dist/marketing/Docs/Nav/NavCategory.svelte.d.ts +8 -20
- package/dist/marketing/Docs/Nav/NavItem.svelte +30 -26
- package/dist/marketing/Docs/Nav/NavItem.svelte.d.ts +6 -18
- package/dist/marketing/Docs/Sidebar/Sidebar.svelte +22 -25
- package/dist/marketing/Docs/Sidebar/Sidebar.svelte.d.ts +22 -19
- package/dist/marketing/Docs/Toc.svelte +64 -56
- package/dist/marketing/Docs/Toc.svelte.d.ts +3 -14
- package/dist/marketing/Document/Document.svelte +15 -8
- package/dist/marketing/Document/Document.svelte.d.ts +7 -19
- package/dist/marketing/Document/DocumentTitle.svelte +65 -54
- package/dist/marketing/Document/DocumentTitle.svelte.d.ts +9 -20
- package/dist/marketing/Footer/Footer.svelte +154 -145
- package/dist/marketing/Footer/Footer.svelte.d.ts +8 -20
- package/dist/marketing/Footer/FooterLinkList.svelte +31 -27
- package/dist/marketing/Footer/FooterLinkList.svelte.d.ts +6 -18
- package/dist/marketing/Header/Header.svelte +47 -37
- package/dist/marketing/Header/Header.svelte.d.ts +10 -22
- package/dist/marketing/Logo/LogoBlogs.svelte +46 -0
- package/dist/marketing/Logo/LogoBlogs.svelte.d.ts +5 -0
- package/dist/marketing/Logo/LogoCore.svelte +46 -0
- package/dist/marketing/Logo/LogoCore.svelte.d.ts +5 -0
- package/dist/marketing/Logo/LogoFortguard.svelte +54 -0
- package/dist/marketing/Logo/LogoFortguard.svelte.d.ts +5 -0
- package/dist/marketing/Logo/LogoTalk.svelte +32 -0
- package/dist/marketing/Logo/LogoTalk.svelte.d.ts +5 -0
- package/dist/stores/dark.d.ts +0 -1
- package/dist/stores/dark.js +8 -8
- package/dist/variables.scss +41 -48
- package/package.json +59 -58
|
@@ -1,20 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
events: {
|
|
11
|
-
[evt: string]: CustomEvent<any>;
|
|
12
|
-
};
|
|
13
|
-
slots: {};
|
|
14
|
-
};
|
|
15
|
-
export type DocumentTitleProps = typeof __propDef.props;
|
|
16
|
-
export type DocumentTitleEvents = typeof __propDef.events;
|
|
17
|
-
export type DocumentTitleSlots = typeof __propDef.slots;
|
|
18
|
-
export default class DocumentTitle extends SvelteComponent<DocumentTitleProps, DocumentTitleEvents, DocumentTitleSlots> {
|
|
19
|
-
}
|
|
20
|
-
export {};
|
|
1
|
+
declare const DocumentTitle: import("svelte").Component<{
|
|
2
|
+
title: string;
|
|
3
|
+
subtitle?: string | undefined;
|
|
4
|
+
icon?: null | string;
|
|
5
|
+
h2Style?: string | undefined;
|
|
6
|
+
wrapStyle?: string | undefined;
|
|
7
|
+
}, {}, "">;
|
|
8
|
+
type DocumentTitle = ReturnType<typeof DocumentTitle>;
|
|
9
|
+
export default DocumentTitle;
|
|
@@ -1,159 +1,168 @@
|
|
|
1
|
-
<script
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import Container from '../Container/Container.svelte';
|
|
3
|
+
import {
|
|
4
|
+
IconCopy,
|
|
5
|
+
IconDiscord,
|
|
6
|
+
IconEnvelope,
|
|
7
|
+
IconGithub,
|
|
8
|
+
IconLinkedin,
|
|
9
|
+
IconTwitterX,
|
|
10
|
+
IconYoutube
|
|
11
|
+
} from '@hyvor/icons';
|
|
12
|
+
import Link from '../../components/Link/Link.svelte';
|
|
13
|
+
import IconButton from '../../components/IconButton/IconButton.svelte';
|
|
14
|
+
import Tooltip from '../../components/Tooltip/Tooltip.svelte';
|
|
15
|
+
import LanguageToggle from '../../components/Internationalization/LanguageToggle.svelte';
|
|
16
|
+
|
|
17
|
+
const year = new Date().getFullYear();
|
|
18
|
+
|
|
19
|
+
interface Props {
|
|
20
|
+
email?: string | null;
|
|
21
|
+
social?: any;
|
|
22
|
+
emailCopied?: boolean;
|
|
23
|
+
center?: import('svelte').Snippet;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
let {
|
|
27
|
+
email = null,
|
|
28
|
+
social = $bindable({} as Record<string, string | null>),
|
|
29
|
+
emailCopied = $bindable(false),
|
|
30
|
+
center
|
|
31
|
+
}: Props = $props();
|
|
32
|
+
|
|
33
|
+
social = {
|
|
34
|
+
...{
|
|
35
|
+
x: null,
|
|
36
|
+
discord: 'https://discord.com/invite/2WRJxQB',
|
|
37
|
+
github: 'https://github.com/hyvor',
|
|
38
|
+
youtube: 'https://www.youtube.com/@HYVOR',
|
|
39
|
+
linkedin: 'https://www.linkedin.com/company/30240435'
|
|
40
|
+
},
|
|
41
|
+
...social
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
function handleCopy() {
|
|
45
|
+
navigator.clipboard.writeText(email!);
|
|
46
|
+
emailCopied = true;
|
|
47
|
+
setTimeout(() => {
|
|
48
|
+
emailCopied = false;
|
|
49
|
+
}, 1000);
|
|
50
|
+
}
|
|
28
51
|
</script>
|
|
29
52
|
|
|
30
53
|
<footer>
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
<div class="footer-bottom">
|
|
93
|
-
<div class="footer-bottom-left">
|
|
94
|
-
HYVOR © {year}
|
|
95
|
-
</div>
|
|
96
|
-
<div class="footer-bottom-right">
|
|
97
|
-
From France 🇫🇷
|
|
98
|
-
</div>
|
|
99
|
-
</div>
|
|
100
|
-
|
|
101
|
-
</Container>
|
|
102
|
-
|
|
54
|
+
<Container>
|
|
55
|
+
<div class="footer-top">
|
|
56
|
+
<div class="footer-top-left">
|
|
57
|
+
{#if email}
|
|
58
|
+
<div class="email-wrap">
|
|
59
|
+
<Link href="mailto:{email}" underline={false} color="text" rel="nofollow">
|
|
60
|
+
{#snippet start()}
|
|
61
|
+
<IconEnvelope />
|
|
62
|
+
{/snippet}
|
|
63
|
+
{email}
|
|
64
|
+
</Link>
|
|
65
|
+
<Tooltip text={emailCopied ? 'Copied!' : 'Copy email'} position="top">
|
|
66
|
+
<IconButton
|
|
67
|
+
size="small"
|
|
68
|
+
variant="invisible"
|
|
69
|
+
on:click={handleCopy}
|
|
70
|
+
on:mouseleave={() => (emailCopied = false)}
|
|
71
|
+
>
|
|
72
|
+
<IconCopy size={12} />
|
|
73
|
+
</IconButton>
|
|
74
|
+
</Tooltip>
|
|
75
|
+
</div>
|
|
76
|
+
{/if}
|
|
77
|
+
|
|
78
|
+
<div class="social-media">
|
|
79
|
+
{#if social.github}
|
|
80
|
+
<a href={social.github} target="_blank" rel="nofollow"><IconGithub /></a>
|
|
81
|
+
{/if}
|
|
82
|
+
{#if social.x}
|
|
83
|
+
<a href={social.x} target="_blank" rel="nofollow"><IconTwitterX /></a>
|
|
84
|
+
{/if}
|
|
85
|
+
{#if social.discord}
|
|
86
|
+
<a href={social.discord} target="_blank" rel="nofollow"><IconDiscord /></a>
|
|
87
|
+
{/if}
|
|
88
|
+
{#if social.youtube}
|
|
89
|
+
<a href={social.youtube} target="_blank" rel="nofollow"><IconYoutube /></a>
|
|
90
|
+
{/if}
|
|
91
|
+
{#if social.linkedin}
|
|
92
|
+
<a href={social.linkedin} target="_blank" rel="nofollow"><IconLinkedin /></a>
|
|
93
|
+
{/if}
|
|
94
|
+
</div>
|
|
95
|
+
</div>
|
|
96
|
+
|
|
97
|
+
<div class="footer-top-right">
|
|
98
|
+
<span class="language-toggle-wrap">
|
|
99
|
+
<LanguageToggle />
|
|
100
|
+
</span>
|
|
101
|
+
</div>
|
|
102
|
+
</div>
|
|
103
|
+
|
|
104
|
+
<div class="footer-center">
|
|
105
|
+
{@render center?.()}
|
|
106
|
+
</div>
|
|
107
|
+
|
|
108
|
+
<div class="footer-bottom">
|
|
109
|
+
<div class="footer-bottom-left">
|
|
110
|
+
HYVOR © {year}
|
|
111
|
+
</div>
|
|
112
|
+
<div class="footer-bottom-right">From France 🇫🇷</div>
|
|
113
|
+
</div>
|
|
114
|
+
</Container>
|
|
103
115
|
</footer>
|
|
104
116
|
|
|
105
117
|
<style>
|
|
118
|
+
footer {
|
|
119
|
+
border-top: 1px solid var(--border);
|
|
120
|
+
}
|
|
106
121
|
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
}
|
|
140
|
-
.social-media a:hover {
|
|
141
|
-
color: var(--accent);
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
.footer-bottom {
|
|
145
|
-
padding-top: 50px;
|
|
146
|
-
padding-bottom: 30px;
|
|
147
|
-
display: flex;
|
|
148
|
-
}
|
|
149
|
-
.footer-bottom-left {
|
|
150
|
-
flex: 1;
|
|
151
|
-
}
|
|
122
|
+
.footer-top {
|
|
123
|
+
padding-top: 60px;
|
|
124
|
+
display: flex;
|
|
125
|
+
align-items: flex-start;
|
|
126
|
+
}
|
|
127
|
+
.footer-center {
|
|
128
|
+
padding-top: 50px;
|
|
129
|
+
}
|
|
130
|
+
.footer-top-left {
|
|
131
|
+
flex: 1;
|
|
132
|
+
}
|
|
133
|
+
.footer-top-right {
|
|
134
|
+
display: flex;
|
|
135
|
+
}
|
|
136
|
+
.email-wrap {
|
|
137
|
+
display: inline-flex;
|
|
138
|
+
align-items: center;
|
|
139
|
+
gap: 4px;
|
|
140
|
+
margin-bottom: 15px;
|
|
141
|
+
}
|
|
142
|
+
.social-media a {
|
|
143
|
+
display: inline-block;
|
|
144
|
+
padding: 3px;
|
|
145
|
+
margin-right: 8px;
|
|
146
|
+
color: var(--text-light);
|
|
147
|
+
}
|
|
148
|
+
.social-media a:first-child {
|
|
149
|
+
padding-left: 0;
|
|
150
|
+
}
|
|
151
|
+
.social-media a:hover {
|
|
152
|
+
color: var(--accent);
|
|
153
|
+
}
|
|
152
154
|
|
|
155
|
+
.footer-bottom {
|
|
156
|
+
padding-top: 50px;
|
|
157
|
+
padding-bottom: 30px;
|
|
158
|
+
display: flex;
|
|
159
|
+
}
|
|
160
|
+
.footer-bottom-left {
|
|
161
|
+
flex: 1;
|
|
162
|
+
}
|
|
153
163
|
|
|
154
164
|
.language-toggle-wrap {
|
|
155
165
|
margin-left: 8px;
|
|
156
166
|
font-size: 18px;
|
|
157
167
|
}
|
|
158
|
-
|
|
159
168
|
</style>
|
|
@@ -1,20 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
[evt: string]: CustomEvent<any>;
|
|
10
|
-
};
|
|
11
|
-
slots: {
|
|
12
|
-
center: {};
|
|
13
|
-
};
|
|
14
|
-
};
|
|
15
|
-
export type FooterProps = typeof __propDef.props;
|
|
16
|
-
export type FooterEvents = typeof __propDef.events;
|
|
17
|
-
export type FooterSlots = typeof __propDef.slots;
|
|
18
|
-
export default class Footer extends SvelteComponent<FooterProps, FooterEvents, FooterSlots> {
|
|
19
|
-
}
|
|
20
|
-
export {};
|
|
1
|
+
declare const Footer: import("svelte").Component<{
|
|
2
|
+
email?: string | null;
|
|
3
|
+
social?: any;
|
|
4
|
+
emailCopied?: boolean;
|
|
5
|
+
center?: import("svelte").Snippet;
|
|
6
|
+
}, {}, "social" | "emailCopied">;
|
|
7
|
+
type Footer = ReturnType<typeof Footer>;
|
|
8
|
+
export default Footer;
|
|
@@ -1,36 +1,40 @@
|
|
|
1
|
-
<script>
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
interface Props {
|
|
3
|
+
title: string;
|
|
4
|
+
children?: import('svelte').Snippet;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
let { title, children }: Props = $props();
|
|
2
8
|
</script>
|
|
3
9
|
|
|
4
10
|
<div class="link-list">
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
11
|
+
<div class="title">{title}</div>
|
|
12
|
+
<div class="links">
|
|
13
|
+
{@render children?.()}
|
|
14
|
+
</div>
|
|
9
15
|
</div>
|
|
10
16
|
|
|
11
17
|
<style>
|
|
18
|
+
.link-list {
|
|
19
|
+
flex: 1;
|
|
20
|
+
}
|
|
12
21
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
font-weight: 600;
|
|
19
|
-
text-transform: uppercase;
|
|
20
|
-
margin-bottom: 10px;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.links {
|
|
24
|
-
display: flex;
|
|
25
|
-
flex-direction: column;
|
|
26
|
-
align-items: flex-start;
|
|
27
|
-
}
|
|
22
|
+
.title {
|
|
23
|
+
font-weight: 600;
|
|
24
|
+
text-transform: uppercase;
|
|
25
|
+
margin-bottom: 10px;
|
|
26
|
+
}
|
|
28
27
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
}
|
|
28
|
+
.links {
|
|
29
|
+
display: flex;
|
|
30
|
+
flex-direction: column;
|
|
31
|
+
align-items: flex-start;
|
|
32
|
+
}
|
|
35
33
|
|
|
36
|
-
|
|
34
|
+
.links :global(a) {
|
|
35
|
+
margin-top: 12px;
|
|
36
|
+
}
|
|
37
|
+
.links :global(a:hover) {
|
|
38
|
+
text-decoration: underline;
|
|
39
|
+
}
|
|
40
|
+
</style>
|
|
@@ -1,18 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
[evt: string]: CustomEvent<any>;
|
|
8
|
-
};
|
|
9
|
-
slots: {
|
|
10
|
-
default: {};
|
|
11
|
-
};
|
|
12
|
-
};
|
|
13
|
-
export type FooterLinkListProps = typeof __propDef.props;
|
|
14
|
-
export type FooterLinkListEvents = typeof __propDef.events;
|
|
15
|
-
export type FooterLinkListSlots = typeof __propDef.slots;
|
|
16
|
-
export default class FooterLinkList extends SvelteComponent<FooterLinkListProps, FooterLinkListEvents, FooterLinkListSlots> {
|
|
17
|
-
}
|
|
18
|
-
export {};
|
|
1
|
+
declare const FooterLinkList: import("svelte").Component<{
|
|
2
|
+
title: string;
|
|
3
|
+
children?: import("svelte").Snippet;
|
|
4
|
+
}, {}, "">;
|
|
5
|
+
type FooterLinkList = ReturnType<typeof FooterLinkList>;
|
|
6
|
+
export default FooterLinkList;
|
|
@@ -1,41 +1,52 @@
|
|
|
1
|
-
<script
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import { IconList } from
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import Container from './../Container/Container.svelte';
|
|
3
|
+
import DarkToggle from '../../components/Dark/DarkToggle.svelte';
|
|
4
|
+
import IconButton from '../../components/IconButton/IconButton.svelte';
|
|
5
|
+
import Dropdown from '../../components/Dropdown/Dropdown.svelte';
|
|
6
|
+
import { IconList } from '@hyvor/icons';
|
|
7
|
+
|
|
8
|
+
interface Props {
|
|
9
|
+
logo: string;
|
|
10
|
+
name?: string;
|
|
11
|
+
subName?: undefined | string;
|
|
12
|
+
darkToggle?: boolean;
|
|
13
|
+
center?: import('svelte').Snippet;
|
|
14
|
+
end?: import('svelte').Snippet;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
let {
|
|
18
|
+
logo,
|
|
19
|
+
name = 'HYVOR',
|
|
20
|
+
subName = undefined,
|
|
21
|
+
darkToggle = true,
|
|
22
|
+
center,
|
|
23
|
+
end
|
|
24
|
+
}: Props = $props();
|
|
11
25
|
</script>
|
|
12
26
|
|
|
13
27
|
<header>
|
|
14
|
-
|
|
15
28
|
<Container as="nav">
|
|
16
|
-
|
|
17
29
|
<div class="nav-start">
|
|
18
|
-
|
|
19
|
-
|
|
30
|
+
<a class="nav-brand" href="/">
|
|
31
|
+
<img src={logo} alt="Hyvor Logo" width="30" height="30" />
|
|
20
32
|
<span class="brand-product">
|
|
21
33
|
<span class="brand">{name}</span>
|
|
22
34
|
{#if subName}
|
|
23
35
|
<span class="product">{subName}</span>
|
|
24
36
|
{/if}
|
|
25
37
|
</span>
|
|
26
|
-
|
|
27
|
-
|
|
38
|
+
</a>
|
|
39
|
+
</div>
|
|
28
40
|
|
|
29
41
|
<div class="nav-center">
|
|
30
|
-
|
|
42
|
+
{@render center?.()}
|
|
31
43
|
</div>
|
|
32
44
|
|
|
33
45
|
<div class="nav-end">
|
|
34
|
-
|
|
46
|
+
{@render end?.()}
|
|
35
47
|
</div>
|
|
36
48
|
|
|
37
49
|
<div class="dark-mobile">
|
|
38
|
-
|
|
39
50
|
{#if darkToggle}
|
|
40
51
|
<span class="dark-toggle-wrap">
|
|
41
52
|
<DarkToggle />
|
|
@@ -60,33 +71,31 @@ export let darkToggle = true;
|
|
|
60
71
|
</div>
|
|
61
72
|
</Dropdown>
|
|
62
73
|
</span> -->
|
|
63
|
-
|
|
64
74
|
</div>
|
|
65
75
|
|
|
66
76
|
<span class="mobile-nav-wrap">
|
|
67
77
|
<Dropdown align="end" width={300}>
|
|
68
|
-
|
|
69
|
-
variant="invisible"
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
78
|
+
{#snippet trigger()}
|
|
79
|
+
<IconButton variant="invisible">
|
|
80
|
+
<IconList size={18} />
|
|
81
|
+
</IconButton>
|
|
82
|
+
{/snippet}
|
|
83
|
+
{#snippet content()}
|
|
84
|
+
<div class="mobile-content">
|
|
85
|
+
<div class="mobile-inner center">
|
|
86
|
+
{@render center?.()}
|
|
87
|
+
</div>
|
|
88
|
+
<div class="mobile-inner end">
|
|
89
|
+
{@render end?.()}
|
|
90
|
+
</div>
|
|
80
91
|
</div>
|
|
81
|
-
|
|
92
|
+
{/snippet}
|
|
82
93
|
</Dropdown>
|
|
83
94
|
</span>
|
|
84
|
-
|
|
85
95
|
</Container>
|
|
86
|
-
|
|
87
96
|
</header>
|
|
88
97
|
|
|
89
|
-
<div class="header-space"
|
|
98
|
+
<div class="header-space"></div>
|
|
90
99
|
|
|
91
100
|
<style>.header-space {
|
|
92
101
|
height: var(--header-height);
|
|
@@ -184,7 +193,8 @@ header :global(nav) {
|
|
|
184
193
|
display: inline-block;
|
|
185
194
|
}
|
|
186
195
|
}
|
|
187
|
-
.mobile-content,
|
|
196
|
+
.mobile-content,
|
|
197
|
+
.mobile-inner {
|
|
188
198
|
display: flex;
|
|
189
199
|
flex-direction: column;
|
|
190
200
|
}
|
|
@@ -1,22 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
};
|
|
12
|
-
slots: {
|
|
13
|
-
center: {};
|
|
14
|
-
end: {};
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
export type HeaderProps = typeof __propDef.props;
|
|
18
|
-
export type HeaderEvents = typeof __propDef.events;
|
|
19
|
-
export type HeaderSlots = typeof __propDef.slots;
|
|
20
|
-
export default class Header extends SvelteComponent<HeaderProps, HeaderEvents, HeaderSlots> {
|
|
21
|
-
}
|
|
22
|
-
export {};
|
|
1
|
+
declare const Header: import("svelte").Component<{
|
|
2
|
+
logo: string;
|
|
3
|
+
name?: string;
|
|
4
|
+
subName?: undefined | string;
|
|
5
|
+
darkToggle?: boolean;
|
|
6
|
+
center?: import("svelte").Snippet;
|
|
7
|
+
end?: import("svelte").Snippet;
|
|
8
|
+
}, {}, "">;
|
|
9
|
+
type Header = ReturnType<typeof Header>;
|
|
10
|
+
export default Header;
|