Skeleton loader for footer

This commit is contained in:
Anton Gunnarsson
2024-11-14 13:25:33 +01:00
parent 1980ae4350
commit 16882fc20a
7 changed files with 151 additions and 14 deletions

View File

@@ -1,7 +1,7 @@
import { getFooter } from "@/lib/trpc/memoizedRequests"
import FooterMainNav from "./MainNav"
import FooterSecondaryNav from "./SecondaryNav"
import FooterMainNav, { FooterMainNavSkeleton } from "./MainNav"
import FooterSecondaryNav, { FooterSecondaryNavSkeleton } from "./SecondaryNav"
import styles from "./navigation.module.css"
@@ -10,6 +10,7 @@ export default async function FooterNavigation() {
if (!footer) {
return null
}
return (
<section className={styles.section}>
<div className={styles.maxWidth}>
@@ -22,3 +23,14 @@ export default async function FooterNavigation() {
</section>
)
}
export function FooterNavigationSkeleton() {
return (
<section className={styles.section}>
<div className={styles.maxWidth}>
<FooterMainNavSkeleton />
<FooterSecondaryNavSkeleton />
</div>
</section>
)
}