feat: complete UI/UX improvements, vuesax icons, media server, and section management
This commit is contained in:
@@ -11,31 +11,39 @@ import Testimonials from "~/components/sections/Testimonials.vue";
|
||||
import Contact from "~/components/sections/Contact.vue";
|
||||
|
||||
const canonical = useAbsUrl()("/");
|
||||
const { hero } = useSiteStore().sections;
|
||||
const siteStore = useSiteStore();
|
||||
const sections = computed(() => siteStore.sections);
|
||||
const hero = computed(() => sections.value.hero);
|
||||
|
||||
useHead({
|
||||
link: [
|
||||
{ rel: "canonical", href: canonical },
|
||||
{ rel: "preload", as: "image", href: hero.image.url, fetchpriority: "high" },
|
||||
...(hero.value?.image?.url && hero.value.enabled !== false
|
||||
? [{ rel: "preload" as const, as: "image" as const, href: hero.value.image.url, fetchpriority: "high" as const }]
|
||||
: []),
|
||||
],
|
||||
});
|
||||
useSeoMeta({
|
||||
robots: "index, follow",
|
||||
ogUrl: canonical,
|
||||
});
|
||||
|
||||
onMounted(() => {
|
||||
void siteStore.load();
|
||||
});
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<main>
|
||||
<Hero />
|
||||
<TapeMarquee />
|
||||
<Stats />
|
||||
<Products />
|
||||
<About />
|
||||
<Services />
|
||||
<Standards />
|
||||
<Industries />
|
||||
<Testimonials />
|
||||
<Contact />
|
||||
<Hero v-if="sections.hero?.enabled !== false" />
|
||||
<TapeMarquee v-if="sections.tape?.enabled !== false" />
|
||||
<Stats v-if="sections.stats?.enabled !== false" />
|
||||
<Products v-if="sections.productsIntro?.enabled !== false" />
|
||||
<About v-if="sections.about?.enabled !== false" />
|
||||
<Services v-if="sections.services?.enabled !== false" />
|
||||
<Standards v-if="sections.standards?.enabled !== false" />
|
||||
<Industries v-if="sections.industries?.enabled !== false" />
|
||||
<Testimonials v-if="sections.testimonials?.enabled !== false" />
|
||||
<Contact v-if="sections.contact?.enabled !== false" />
|
||||
</main>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user