Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
100 changes: 51 additions & 49 deletions apps/dashboard/src/@/components/blocks/app-footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,37 @@ type AppFooterProps = {
containerClassName?: string;
};

const footerLinks = [
{
href: "/home",
label: "Home",
},
{
href: "https://blog.thirdweb.com",
label: "Blog",
},
{
href: "https://portal.thirdweb.com/changelog",
label: "Changelog",
},
{
href: "https://feedback.thirdweb.com/",
label: "Feedback",
},
{
href: "https://thirdweb.com/privacy-policy",
label: "Privacy Policy",
},
{
href: "https://thirdweb.com/terms",
label: "Terms of Service",
},
{
href: "https://thirdweb.com/chainlist",
label: "Chainlist",
},
];

export function AppFooter(props: AppFooterProps) {
return (
<footer
Expand Down Expand Up @@ -80,57 +111,28 @@ export function AppFooter(props: AppFooterProps) {
</div>
{/* bottom row */}
<div className="grid grid-flow-col grid-cols-2 grid-rows-5 gap-2 md:flex md:flex-row md:justify-between">
<Link
className="px-[10px] py-[6px] text-muted-foreground text-sm hover:underline"
href="/home"
>
Home
</Link>
<Link
className="px-[10px] py-[6px] text-muted-foreground text-sm hover:underline"
href="https://blog.thirdweb.com"
target="_blank"
>
Blog
</Link>
<Link
className="px-[10px] py-[6px] text-muted-foreground text-sm hover:underline"
href="https://portal.thirdweb.com/changelog"
target="_blank"
>
Changelog
</Link>
<Link
className="px-[10px] py-[6px] text-muted-foreground text-sm hover:underline"
href="https://feedback.thirdweb.com/"
target="_blank"
>
Feedback
</Link>
<Link
className="px-[10px] py-[6px] text-muted-foreground text-sm hover:underline"
href="https://thirdweb.com/privacy-policy"
target="_blank"
>
Privacy Policy
</Link>
<Link
className="px-[10px] py-[6px] text-muted-foreground text-sm hover:underline"
href="https://thirdweb.com/terms"
target="_blank"
>
Terms of Service
</Link>

<Link
className="px-[10px] py-[6px] text-muted-foreground text-sm hover:underline"
href="https://thirdweb.com/chainlist"
target="_blank"
>
Chain List
</Link>
{footerLinks.map((link) => (
<FooterLink key={link.href} {...link} />
))}
</div>
</div>
</footer>
);
}

function FooterLink(props: {
href: string;
label: string;
prefetch?: boolean;
}) {
return (
<Link
href={props.href}
prefetch={false}
className="px-0 py-[6px] text-muted-foreground text-sm hover:underline"
target="_blank"
>
{props.label}
</Link>
);
}
Loading