@hyvor/design 1.1.0 → 1.1.1
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/HyvorBar/BarSupport.svelte +16 -16
- package/dist/components/HyvorBar/bar.d.ts +0 -1
- package/dist/marketing/Footer/Footer.svelte +12 -15
- package/dist/marketing/Footer/Footer.svelte.d.ts +3 -3
- package/dist/marketing/social.d.ts +9 -0
- package/dist/marketing/social.js +8 -0
- package/package.json +1 -1
|
@@ -16,6 +16,8 @@
|
|
|
16
16
|
import type { BarConfig, BarProduct } from './bar.js';
|
|
17
17
|
import G2 from './img/G2.svelte';
|
|
18
18
|
import Trustpilot from './img/Trustpilot.svelte';
|
|
19
|
+
import { SOCIAL_LINKS } from '../../marketing/social.js';
|
|
20
|
+
import IconTwitterX from '@hyvor/icons/IconTwitterX';
|
|
19
21
|
|
|
20
22
|
let supportDropdown = $state(false);
|
|
21
23
|
|
|
@@ -115,7 +117,7 @@
|
|
|
115
117
|
{/if}
|
|
116
118
|
|
|
117
119
|
<ActionListGroup title="Social">
|
|
118
|
-
<a href=
|
|
120
|
+
<a href={SOCIAL_LINKS.discord} target="_blank">
|
|
119
121
|
<ActionListItem>
|
|
120
122
|
Discord
|
|
121
123
|
{#snippet start()}
|
|
@@ -126,7 +128,7 @@
|
|
|
126
128
|
{/snippet}
|
|
127
129
|
</ActionListItem>
|
|
128
130
|
</a>
|
|
129
|
-
<a href=
|
|
131
|
+
<a href={SOCIAL_LINKS.blueksy} target="_blank">
|
|
130
132
|
<ActionListItem>
|
|
131
133
|
Bluesky
|
|
132
134
|
{#snippet start()}
|
|
@@ -137,20 +139,18 @@
|
|
|
137
139
|
{/snippet}
|
|
138
140
|
</ActionListItem>
|
|
139
141
|
</a>
|
|
140
|
-
{
|
|
141
|
-
<
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
{
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
{/if}
|
|
153
|
-
<a href="https://www.linkedin.com/company/hyvor" target="_blank">
|
|
142
|
+
<a href={SOCIAL_LINKS.x} target="_blank">
|
|
143
|
+
<ActionListItem>
|
|
144
|
+
Twitter
|
|
145
|
+
{#snippet start()}
|
|
146
|
+
<IconTwitterX />
|
|
147
|
+
{/snippet}
|
|
148
|
+
{#snippet end()}
|
|
149
|
+
<IconBoxArrowUpRight size={12} />
|
|
150
|
+
{/snippet}
|
|
151
|
+
</ActionListItem>
|
|
152
|
+
</a>
|
|
153
|
+
<a href={SOCIAL_LINKS.linkedin} target="_blank">
|
|
154
154
|
<ActionListItem>
|
|
155
155
|
Linkedin
|
|
156
156
|
{#snippet start()}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import Container from '../Container/Container.svelte';
|
|
3
|
-
|
|
4
3
|
import IconCopy from '@hyvor/icons/IconCopy';
|
|
5
4
|
import IconDiscord from '@hyvor/icons/IconDiscord';
|
|
6
5
|
import IconEnvelope from '@hyvor/icons/IconEnvelope';
|
|
@@ -8,39 +7,34 @@
|
|
|
8
7
|
import IconLinkedin from '@hyvor/icons/IconLinkedin';
|
|
9
8
|
import IconTwitterX from '@hyvor/icons/IconTwitterX';
|
|
10
9
|
import IconYoutube from '@hyvor/icons/IconYoutube';
|
|
11
|
-
|
|
12
10
|
import Link from '../../components/Link/Link.svelte';
|
|
13
11
|
import IconButton from '../../components/IconButton/IconButton.svelte';
|
|
14
12
|
import Tooltip from '../../components/Tooltip/Tooltip.svelte';
|
|
15
13
|
import LanguageToggle from '../../components/Internationalization/LanguageToggle.svelte';
|
|
14
|
+
import IconBluesky from '@hyvor/icons/IconBluesky';
|
|
15
|
+
import { SOCIAL_LINKS, type Socials } from '../social.js';
|
|
16
16
|
|
|
17
17
|
const year = new Date().getFullYear();
|
|
18
18
|
|
|
19
19
|
interface Props {
|
|
20
20
|
email?: string | null;
|
|
21
|
-
social?:
|
|
22
|
-
emailCopied?: boolean;
|
|
21
|
+
social?: Partial<Socials>;
|
|
23
22
|
center?: import('svelte').Snippet;
|
|
24
23
|
}
|
|
25
24
|
|
|
26
25
|
let {
|
|
27
26
|
email = null,
|
|
28
27
|
social = $bindable({} as Record<string, string | null>),
|
|
29
|
-
emailCopied = $bindable(false),
|
|
30
28
|
center
|
|
31
29
|
}: Props = $props();
|
|
32
30
|
|
|
33
31
|
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
|
-
},
|
|
32
|
+
...SOCIAL_LINKS,
|
|
41
33
|
...social
|
|
42
34
|
};
|
|
43
35
|
|
|
36
|
+
let emailCopied = $state(false);
|
|
37
|
+
|
|
44
38
|
function handleCopy() {
|
|
45
39
|
navigator.clipboard.writeText(email!);
|
|
46
40
|
emailCopied = true;
|
|
@@ -79,12 +73,15 @@
|
|
|
79
73
|
{#if social.github}
|
|
80
74
|
<a href={social.github} target="_blank" rel="nofollow"><IconGithub /></a>
|
|
81
75
|
{/if}
|
|
82
|
-
{#if social.x}
|
|
83
|
-
<a href={social.x} target="_blank" rel="nofollow"><IconTwitterX /></a>
|
|
84
|
-
{/if}
|
|
85
76
|
{#if social.discord}
|
|
86
77
|
<a href={social.discord} target="_blank" rel="nofollow"><IconDiscord /></a>
|
|
87
78
|
{/if}
|
|
79
|
+
{#if social.blueksy}
|
|
80
|
+
<a href={social.blueksy} target="_blank" rel="nofollow"><IconBluesky /></a>
|
|
81
|
+
{/if}
|
|
82
|
+
{#if social.x}
|
|
83
|
+
<a href={social.x} target="_blank" rel="nofollow"><IconTwitterX /></a>
|
|
84
|
+
{/if}
|
|
88
85
|
{#if social.youtube}
|
|
89
86
|
<a href={social.youtube} target="_blank" rel="nofollow"><IconYoutube /></a>
|
|
90
87
|
{/if}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import { type Socials } from '../social.js';
|
|
1
2
|
interface Props {
|
|
2
3
|
email?: string | null;
|
|
3
|
-
social?:
|
|
4
|
-
emailCopied?: boolean;
|
|
4
|
+
social?: Partial<Socials>;
|
|
5
5
|
center?: import('svelte').Snippet;
|
|
6
6
|
}
|
|
7
|
-
declare const Footer: import("svelte").Component<Props, {}, "social"
|
|
7
|
+
declare const Footer: import("svelte").Component<Props, {}, "social">;
|
|
8
8
|
type Footer = ReturnType<typeof Footer>;
|
|
9
9
|
export default Footer;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const SOCIAL_LINKS: {
|
|
2
|
+
readonly x: "https://x.com/HyvorHQ";
|
|
3
|
+
readonly blueksy: "https://bsky.app/profile/hyvor.com";
|
|
4
|
+
readonly discord: "https://discord.com/invite/2WRJxQB";
|
|
5
|
+
readonly github: "https://github.com/hyvor";
|
|
6
|
+
readonly youtube: "https://www.youtube.com/@HYVOR";
|
|
7
|
+
readonly linkedin: "https://www.linkedin.com/company/30240435";
|
|
8
|
+
};
|
|
9
|
+
export type Socials = typeof SOCIAL_LINKS;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export const SOCIAL_LINKS = {
|
|
2
|
+
x: 'https://x.com/HyvorHQ',
|
|
3
|
+
blueksy: 'https://bsky.app/profile/hyvor.com',
|
|
4
|
+
discord: 'https://discord.com/invite/2WRJxQB',
|
|
5
|
+
github: 'https://github.com/hyvor',
|
|
6
|
+
youtube: 'https://www.youtube.com/@HYVOR',
|
|
7
|
+
linkedin: 'https://www.linkedin.com/company/30240435'
|
|
8
|
+
};
|
package/package.json
CHANGED