-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
- Loading branch information
1 parent
cf504c4
commit cd30fc6
Showing
263 changed files
with
7,679 additions
and
3,701 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<template> | ||
<main class="min-h-[calc(100vh-4rem)] py-8 md:py-16"> | ||
<div v-if="$slots.header" class="mb-8 lg:mb-16"> | ||
<slot name="header" /> | ||
</div> | ||
|
||
<slot /> | ||
</main> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<script setup lang="ts"> | ||
defineOptions({ | ||
inheritAttrs: false, | ||
}) | ||
defineProps<{ | ||
dark: string | ||
light: string | ||
}>() | ||
</script> | ||
|
||
<template> | ||
<img :src="light" class="dark:hidden" v-bind="$attrs"> | ||
<img :src="dark" class="hidden dark:block" v-bind="$attrs"> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,57 @@ | ||
<script lang="ts" setup> | ||
const website = useWebsite() | ||
const uiButton = { color: { gray: { ghost: 'hover:bg-primary/10 dark:hover:bg-primary/90' } } } | ||
const colorMode = useColorMode() | ||
const toggleTheme = function () { | ||
colorMode.preference = colorMode.value === 'dark' ? 'light' : 'dark' | ||
} | ||
const uiButton = { color: { gray: { ghost: 'text-gray-500 hover:text-gray-800 dark:text-gray-400 dark:hover:text-gray-200 hover:bg-primary/60 dark:hover:bg-primary/40' } } } | ||
</script> | ||
|
||
<template> | ||
<footer class="px-6 pt-20 pb-20 md:pb-30 flex flex-col gap-12 md:gap-20 rounded-2xl border border-zinc-100 bg-white"> | ||
<div class="flex flex-col md:flex-row gap-12 md:gap-25"> | ||
<div class="grow flex flex-col gap-6"> | ||
<NuxtLink to="/" class="block"> | ||
<AppLogo /> | ||
</NuxtLink> | ||
<p class="max-w-lg text-sm md:text-base text-zinc-600 italic"> | ||
{{ website.footer.quote }} | ||
</p> | ||
<ul class="flex gap-8"> | ||
<div class="border-t border-gray-100 dark:border-gray-800"> | ||
<footer class="container mx-auto max-w-7xl px-4 md:px-6 pt-20 pb-20 md:pb-30 flex flex-col gap-12 md:gap-20"> | ||
<div class="grid md:grid-cols-2 gap-y-6 gap-x-12 md:gap-x-25"> | ||
<div class="grow flex flex-col gap-6 max-w-sm"> | ||
<NuxtLink to="/" class="block"> | ||
<AppLogo /> | ||
</NuxtLink> | ||
<p class="max-w-lg text-sm md:text-base text-gray-500 dark:text-gray-400 italic"> | ||
{{ website.footer.quote }} | ||
</p> | ||
</div> | ||
<ul class="flex gap-2"> | ||
<li v-for="social in website.socials" :key="social.name"> | ||
<UButton :rel="social.rel" :target="social.target" :to="social.url" :icon="social.icon" :aria-label="`Follow us on ${social.name}`" size="xl" variant="ghost" color="gray" :ui="{ icon: { xl: 'md:w-7 md:h-7' }, ...uiButton }" /> | ||
</li> | ||
</ul> | ||
</div> | ||
<nav class="grid grid-cols-2 md:grid-cols-3 gap-4 md:gap-10 text-[1.125rem]"> | ||
<div v-for="list in website.footer.menu" :key="list.title" class="flex flex-col gap-4"> | ||
<p class="font-bold"> | ||
{{ list.title }} | ||
</p> | ||
<ul class="flex flex-col gap-3"> | ||
<li v-for="item in list.items" :key="item.url"> | ||
<NuxtLink :to="item.url" :rel="item.rel" :target="item.target" class="hover:underline underline-offset-8"> | ||
{{ item.title }} | ||
</NuxtLink> | ||
</li> | ||
</ul> | ||
<nav class="mt-6 md:mt-0 md:justify-self-end md:col-start-2 md:row-start-1 grid grid-cols-2 md:grid-cols-3 gap-x-2 gap-y-6 md:gap-10 text-[1.125rem]"> | ||
<div v-for="list in website.footer.menu" :key="list.title" class="flex flex-col gap-4"> | ||
<p class="font-bold text-gray-950 dark:text-gray-50"> | ||
{{ list.title }} | ||
</p> | ||
<ul class="flex flex-col gap-3 text-gray-500 dark:text-gray-400"> | ||
<li v-for="item in list.items" :key="item.url"> | ||
<NuxtLink :to="item.url" :rel="item.rel" :target="item.target" class="hover:underline underline-offset-8"> | ||
{{ item.title }} | ||
</NuxtLink> | ||
</li> | ||
</ul> | ||
</div> | ||
</nav> | ||
|
||
<div class="place-self-center md:place-self-end"> | ||
<ClientOnly> | ||
<UTooltip :text="$colorMode.value === 'dark' ? 'Light Mode' : 'Dark Mode'"> | ||
<UButton size="xl" variant="ghost" color="gray" square :trailing-icon="$colorMode.value === 'dark' ? 'i-heroicons-sun' : 'i-heroicons-moon'" :ui="uiButton" aria-label="Toggle Theme" @click="toggleTheme"> | ||
{{ $colorMode.value === 'dark' ? 'Light' : 'Dark' }} | ||
</UButton> | ||
</UTooltip> | ||
</ClientOnly> | ||
</div> | ||
</nav> | ||
</div> | ||
<AppFooterLicense class="text-sm text-zinc-400 text-center" /> | ||
</footer> | ||
</div> | ||
<AppFooterLicense class="text-sm dark:text-gray-400 text-center" /> | ||
</footer> | ||
</div> | ||
</template> |
Oops, something went wrong.