Skip to content

Commit

Permalink
fix: aria social
Browse files Browse the repository at this point in the history
  • Loading branch information
nethen committed Dec 14, 2024
1 parent 585945b commit c12f8a8
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 9 deletions.
16 changes: 10 additions & 6 deletions src/components/footer/footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ const socialMediaSvgs: JSX.Element[] = [
<Github key={"github"} />,
];

const socialMediaLinks: string[] = [
"https://discord.gg/kscale",
"https://x.com/kscalelabs",
"https://github.com/kscalelabs",
const socialMediaLinks: { linkURL: string; name: string }[] = [
{ linkURL: "https://discord.gg/kscale", name: "Discord" },
{ linkURL: "https://x.com/kscalelabs", name: "Twitter" },
{ linkURL: "https://github.com/kscalelabs", name: "Github" },
];

export interface FooterSectionListProps {
Expand Down Expand Up @@ -99,9 +99,13 @@ export default function Footer() {
"col-span-full sm:col-span-2 md:col-span-3 5xl:col-span-2 flex flex-row gap-4 mb-8"
}
>
{socialMediaLinks.map((link: string, index: number) => (
{socialMediaLinks.map((link, index) => (
<li className={"list-none"} key={index}>
<SocialMediaItem linkURL={link} iconSvg={socialMediaSvgs[index]} />
<SocialMediaItem
linkURL={link.linkURL}
iconSvg={socialMediaSvgs[index]}
name={link.name}
/>
</li>
))}
</ul>
Expand Down
1 change: 1 addition & 0 deletions src/components/util/interfaces.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { Dispatch, JSX, SetStateAction } from "react";
export interface SocialMediaItemProps {
linkURL: string;
iconSvg: JSX.Element;
name: string;
}

export interface ExpressiveArrowProps {
Expand Down
6 changes: 3 additions & 3 deletions src/landing/Sponsors.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@ const Sponsors = () => {
" w1440:pt-16 w1024:pt-12 w640:pt-10 pt-8 sponsors"
}
>
<h4
className={"font-normal font-planar text-foreground "}
>{`Backed by the industry's best`}</h4>
<h2
className={"font-normal font-planar text-foreground text-heading-sm "}
>{`Backed by the industry's best`}</h2>
<Marquee className={""}>
{SvgChildren.map((sponsor, index) => {
return (
Expand Down

0 comments on commit c12f8a8

Please sign in to comment.