chore(shared): Updated to social icons/list
This commit is contained in:
parent
09c884956f
commit
33c51a7289
3 changed files with 29 additions and 16 deletions
9
config/social.mjs
Normal file
9
config/social.mjs
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
export const social = {
|
||||||
|
YouTube: 'https://www.youtube.com/@freesewing',
|
||||||
|
Discord: 'https://discord.freesewing.org/',
|
||||||
|
Instagram: 'https://instagram.com/freesewing_org',
|
||||||
|
Facebook: 'https://www.facebook.com/groups/627769821272714/',
|
||||||
|
GitHub: 'https://github.com/freesewing',
|
||||||
|
Reddit: 'https://www.reddit.com/r/freesewing/',
|
||||||
|
Twitter: 'https://twitter.com/freesewing_org',
|
||||||
|
}
|
|
@ -13,43 +13,44 @@ import {
|
||||||
YouTubeIcon,
|
YouTubeIcon,
|
||||||
} from 'shared/components/icons.mjs'
|
} from 'shared/components/icons.mjs'
|
||||||
import { colors } from 'shared/components/wordmark.mjs'
|
import { colors } from 'shared/components/wordmark.mjs'
|
||||||
|
import { social } from 'config/social.mjs'
|
||||||
|
|
||||||
const iconClasses = (i) => ({
|
const iconClasses = (i) => ({
|
||||||
className: `w-8 lg:w-12 h-8 lg:h-12 text-${colors[i]}-400 hover:text-neutral-content`,
|
className: `w-8 lg:w-12 h-8 lg:h-12 text-${colors[i]}-400 hover:text-neutral-content`,
|
||||||
})
|
})
|
||||||
|
|
||||||
const social = {
|
const socialList = {
|
||||||
YouTube: {
|
MSF: {
|
||||||
icon: <YouTubeIcon {...iconClasses(0)} fill stroke={0} />,
|
icon: <MsfIcon {...iconClasses(0)} fill />,
|
||||||
href: 'https://www.youtube.com/channel/UCLAyxEL72gHvuKBpa-GmCvQ',
|
href: 'https://www.youtube.com/channel/UCLAyxEL72gHvuKBpa-GmCvQ',
|
||||||
},
|
},
|
||||||
Discord: {
|
Discord: {
|
||||||
icon: <DiscordIcon {...iconClasses(1)} />,
|
icon: <DiscordIcon {...iconClasses(1)} />,
|
||||||
href: 'https://discord.freesewing.org/',
|
href: social.Discord,
|
||||||
},
|
},
|
||||||
Instagram: {
|
Instagram: {
|
||||||
icon: <InstagramIcon {...iconClasses(2)} />,
|
icon: <InstagramIcon {...iconClasses(2)} />,
|
||||||
href: 'https://instagram.com/freesewing_org',
|
href: social.Instagram,
|
||||||
},
|
},
|
||||||
Facebook: {
|
Facebook: {
|
||||||
icon: <FacebookIcon {...iconClasses(3)} />,
|
icon: <FacebookIcon {...iconClasses(3)} />,
|
||||||
href: 'https://www.facebook.com/groups/627769821272714/',
|
href: social.Facebook,
|
||||||
},
|
},
|
||||||
Github: {
|
GitHub: {
|
||||||
icon: <GithubIcon {...iconClasses(4)} />,
|
icon: <GithubIcon {...iconClasses(4)} />,
|
||||||
href: 'https://github.com/freesewing',
|
href: social.GitHub,
|
||||||
},
|
},
|
||||||
Reddit: {
|
Reddit: {
|
||||||
icon: <RedditIcon {...iconClasses(5)} />,
|
icon: <RedditIcon {...iconClasses(5)} />,
|
||||||
href: 'https://www.reddit.com/r/freesewing/',
|
href: social.Reddit,
|
||||||
},
|
},
|
||||||
Twitter: {
|
Twitter: {
|
||||||
icon: <TwitterIcon {...iconClasses(6)} />,
|
icon: <TwitterIcon {...iconClasses(6)} />,
|
||||||
href: 'https://twitter.com/freesewing_org',
|
href: social.Twitter,
|
||||||
},
|
},
|
||||||
'Creative Commons content: CC-BY': {
|
YouTube: {
|
||||||
icon: <CcByIcon {...iconClasses(7)} />,
|
icon: <YouTubeIcon {...iconClasses(7)} fill stroke={0} />,
|
||||||
href: 'https://creativecommons.org/licenses/by/2.0/',
|
href: social.YouTube,
|
||||||
},
|
},
|
||||||
'Open Souce License: MIT': {
|
'Open Souce License: MIT': {
|
||||||
icon: <OpenSourceIcon {...iconClasses(8)} />,
|
icon: <OpenSourceIcon {...iconClasses(8)} />,
|
||||||
|
@ -62,8 +63,8 @@ const social = {
|
||||||
}
|
}
|
||||||
|
|
||||||
export const SocialIcons = () =>
|
export const SocialIcons = () =>
|
||||||
Object.keys(social).map((item) => (
|
Object.keys(socialList).map((item) => (
|
||||||
<Link key={item} href={social[item].href} className="hover:text-secondary" title={item}>
|
<Link key={item} href={socialList[item].href} className="hover:text-secondary" title={item}>
|
||||||
{social[item].icon}
|
{socialList[item].icon}
|
||||||
</Link>
|
</Link>
|
||||||
))
|
))
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
import { social } from 'config/social.mjs'
|
||||||
|
|
||||||
export const freeSewingConfig = {
|
export const freeSewingConfig = {
|
||||||
monorepo: 'https://github.com/freesewing/freesewing',
|
monorepo: 'https://github.com/freesewing/freesewing',
|
||||||
backend: process.env.NEXT_PUBLIC_BACKEND,
|
backend: process.env.NEXT_PUBLIC_BACKEND,
|
||||||
|
@ -37,4 +39,5 @@ export const freeSewingConfig = {
|
||||||
notes: 2,
|
notes: 2,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
social,
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue