fix: fix a bug with social media kit
This commit is contained in:
parent
1bd798b2fb
commit
8ffcfe817d
|
@ -9,6 +9,7 @@ import { LPEFooterGroup } from '@/types/ui.types'
|
||||||
const socialLinks = FooterLinksItems.about.find(
|
const socialLinks = FooterLinksItems.about.find(
|
||||||
(item) => item.key === 'social',
|
(item) => item.key === 'social',
|
||||||
) as LPEFooterGroup
|
) as LPEFooterGroup
|
||||||
|
|
||||||
export const SocialMediaKit = () => {
|
export const SocialMediaKit = () => {
|
||||||
return (
|
return (
|
||||||
<Container>
|
<Container>
|
||||||
|
@ -29,6 +30,7 @@ export const SocialMediaKit = () => {
|
||||||
Icon = null
|
Icon = null
|
||||||
}
|
}
|
||||||
return (
|
return (
|
||||||
|
Icon && (
|
||||||
<LinkContainer>
|
<LinkContainer>
|
||||||
<Link
|
<Link
|
||||||
href={link.href}
|
href={link.href}
|
||||||
|
@ -36,10 +38,11 @@ export const SocialMediaKit = () => {
|
||||||
title={`Join us on ${link.label}`}
|
title={`Join us on ${link.label}`}
|
||||||
target={'_blank'}
|
target={'_blank'}
|
||||||
>
|
>
|
||||||
{Icon && <Icon />}
|
<Icon />
|
||||||
</Link>
|
</Link>
|
||||||
</LinkContainer>
|
</LinkContainer>
|
||||||
)
|
)
|
||||||
|
)
|
||||||
})}
|
})}
|
||||||
</Container>
|
</Container>
|
||||||
)
|
)
|
||||||
|
@ -56,8 +59,10 @@ const Container = styled.div`
|
||||||
`
|
`
|
||||||
|
|
||||||
const LinkContainer = styled.div`
|
const LinkContainer = styled.div`
|
||||||
|
@media (max-width: ${({ theme }) => theme.breakpoints.sm.width}px) {
|
||||||
width: fit-content;
|
width: fit-content;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|
||||||
&:not(:last-child) {
|
&:not(:last-child) {
|
||||||
&:after {
|
&:after {
|
||||||
content: '';
|
content: '';
|
||||||
|
@ -65,4 +70,5 @@ const LinkContainer = styled.div`
|
||||||
border-right: 1px solid rgb(var(--lsd-border-primary));
|
border-right: 1px solid rgb(var(--lsd-border-primary));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
`
|
`
|
||||||
|
|
|
@ -1,7 +1,4 @@
|
||||||
import { LPEFooterGroup } from '@/types/ui.types'
|
import { LPEFooterGroup } from '@/types/ui.types'
|
||||||
import { DiscordIcon } from '@/components/Icons/DiscordIcon'
|
|
||||||
import { YoutubeIcon } from '@/components/Icons/YTIcon'
|
|
||||||
import { XIcon } from '@/components/Icons/XIcon'
|
|
||||||
|
|
||||||
export const ArticleBlocksOrders = {
|
export const ArticleBlocksOrders = {
|
||||||
title: 0,
|
title: 0,
|
||||||
|
@ -61,12 +58,12 @@ export const FooterLinksItems: {
|
||||||
title: null,
|
title: null,
|
||||||
key: 'social',
|
key: 'social',
|
||||||
links: [
|
links: [
|
||||||
{ label: 'X', href: 'https://twitter.com/Logos_state', key: 'x' },
|
|
||||||
{
|
{
|
||||||
label: 'Discord',
|
label: 'Discord',
|
||||||
href: 'https://discord.gg/logos-state',
|
href: 'https://discord.gg/logos-state',
|
||||||
key: 'discord',
|
key: 'discord',
|
||||||
},
|
},
|
||||||
|
{ label: 'X', href: 'https://twitter.com/Logos_state', key: 'x' },
|
||||||
{
|
{
|
||||||
label: 'Github',
|
label: 'Github',
|
||||||
href: 'https://github.com/acid-info',
|
href: 'https://github.com/acid-info',
|
||||||
|
|
Loading…
Reference in New Issue