11/**
22 * Footer / social presence. Update hrefs if a handle or invite URL changes.
33 */
4- export type SocialNetwork = 'github' | 'linkedin' | 'instagram' | 'youtube' | 'x' | 'discord' ;
4+ const SOCIAL_LINKS = [ 'github' , 'linkedin' , 'instagram' , 'youtube' ] as const ;
55
6- export type FooterSocialLink = {
6+ export type SocialNetwork = ( typeof SOCIAL_LINKS ) [ number ] ;
7+
8+ export type SocialLink = {
79 href : string ;
810 /** Screen reader label (pt-BR). */
911 label : string ;
1012 network : SocialNetwork ;
1113} ;
1214
1315/** Iconify ids for `astro-icon` + `@iconify-json/simple-icons`. */
14- export const footerSocialIconify : Record < SocialNetwork , string > = {
16+ export const socialIconify : Record < SocialNetwork , string > = {
1517 github : 'simple-icons:github' ,
1618 linkedin : 'simple-icons:linkedin' ,
1719 instagram : 'simple-icons:instagram' ,
1820 youtube : 'simple-icons:youtube' ,
19- x : 'simple-icons:x' ,
20- discord : 'simple-icons:discord' ,
2121} ;
2222
23- export const footerSocialLinks : FooterSocialLink [ ] = [
23+ export const socialLinks : SocialLink [ ] = [
2424 {
2525 network : 'github' ,
26- href : 'https://github.com/podcodar' ,
26+ href : 'https://github.com/podcodar/ ' ,
2727 label : 'PodCodar no GitHub' ,
2828 } ,
2929 {
@@ -38,17 +38,7 @@ export const footerSocialLinks: FooterSocialLink[] = [
3838 } ,
3939 {
4040 network : 'youtube' ,
41- href : 'https://www.youtube.com/@podcodar ' ,
41+ href : 'https://www.youtube.com/@podcodar5070/ ' ,
4242 label : 'PodCodar no YouTube' ,
4343 } ,
44- {
45- network : 'x' ,
46- href : 'https://x.com/podcodar' ,
47- label : 'PodCodar no X' ,
48- } ,
49- {
50- network : 'discord' ,
51- href : 'https://discord.com/invite/podcodar' ,
52- label : 'PodCodar no Discord' ,
53- } ,
5444] ;
0 commit comments