diff --git a/astro/src/components/footer/Footer.astro b/astro/src/components/footer/Footer.astro new file mode 100644 index 0000000..8082b68 --- /dev/null +++ b/astro/src/components/footer/Footer.astro @@ -0,0 +1,70 @@ +--- +import { getFooter } from "@/content/footer/footer"; +import { Image } from "astro:assets"; + +const footer = await getFooter(); +--- + + diff --git a/astro/src/content/footer/footer.ts b/astro/src/content/footer/footer.ts new file mode 100644 index 0000000..cfe5e95 --- /dev/null +++ b/astro/src/content/footer/footer.ts @@ -0,0 +1,110 @@ +import { createDirectusConnection } from "@/lib/directus"; +import { print } from 'graphql'; +import type { Footer, FooterColumn, FooterSecondaryLink, FooterSocial } from "@/types/footers/footer"; +import getFooterQuery from '@/graphql/footer/getFooter.graphql'; +import { getImageUrl } from "@/lib/images"; + +export async function getFooter(): Promise