feat: complete UI/UX improvements, vuesax icons, media server, and section management

This commit is contained in:
s.esmaeili
2026-10-23 21:06:15 +03:30
parent 49f30a96b1
commit fa61a76444
64 changed files with 4527 additions and 819 deletions
+29 -32
View File
@@ -1,45 +1,42 @@
<script setup lang="ts">
import type { SocialType } from "@imen/shared";
import {
AtSign,
Globe,
Instagram,
Linkedin,
MessageCircle,
Phone,
Send,
Youtube,
} from "lucide-vue-next";
import type { Component } from "vue";
import VuesaxIcon from "~/components/ui/VuesaxIcon.vue";
import Logo from "~/components/ui/Logo.vue";
const QUICK_LINKS = [
{ href: "/#home", label: "خانه" },
{ href: "/#products", label: "محصولات" },
{ href: "/#about", label: "درباره ما" },
{ href: "/#services", label: "خدمات" },
{ href: "/#standards", label: "استانداردها" },
{ href: "/#industries", label: "صنایع" },
];
const ALL_QUICK_LINKS = [
{ href: "/#home", label: "خانه", section: "hero" },
{ href: "/#products", label: "محصولات", section: "productsIntro" },
{ href: "/#about", label: "درباره ما", section: "about" },
{ href: "/#services", label: "خدمات", section: "services" },
{ href: "/#standards", label: "استانداردها", section: "standards" },
{ href: "/#industries", label: "صنایع", section: "industries" },
] as const;
const SOCIAL_META: Record<SocialType, { icon: Component; label: string }> = {
website: { icon: Globe, label: "وب‌سایت" },
telegram: { icon: Send, label: "تلگرام" },
instagram: { icon: Instagram, label: "اینستاگرام" },
linkedin: { icon: Linkedin, label: "لینکدین" },
whatsapp: { icon: MessageCircle, label: "واتساپ" },
bale: { icon: MessageCircle, label: "بله" },
eitaa: { icon: MessageCircle, label: "ایتا" },
aparat: { icon: Youtube, label: "آپارات" },
youtube: { icon: Youtube, label: "یوتیوب" },
email: { icon: AtSign, label: "ایمیل" },
phone: { icon: Phone, label: "تماس" },
const SOCIAL_META: Record<SocialType, { icon: string; label: string }> = {
website: { icon: "global", label: "وب‌سایت" },
telegram: { icon: "send-2", label: "تلگرام" },
instagram: { icon: "instagram", label: "اینستاگرام" },
linkedin: { icon: "link", label: "لینکدین" },
whatsapp: { icon: "messages-2", label: "واتساپ" },
bale: { icon: "messages-2", label: "بله" },
eitaa: { icon: "messages-2", label: "ایتا" },
aparat: { icon: "video-play", label: "آپارات" },
youtube: { icon: "video-play", label: "یوتیوب" },
email: { icon: "sms", label: "ایمیل" },
phone: { icon: "call", label: "تماس" },
};
const site = useSiteStore();
const footer = computed(() => site.sections.footer);
const settings = computed(() => site.settings);
const QUICK_LINKS = computed(() =>
ALL_QUICK_LINKS.filter(
(l) =>
(site.sections as Record<string, { enabled?: boolean }>)?.[l.section]?.enabled !== false,
),
);
const PRODUCT_LINKS = computed(() =>
site.categories.map((c) => ({ label: c.name, href: `/categories/${c.slug}` })),
);
@@ -75,7 +72,7 @@ const SOCIALS = computed(() =>
:rel="s.external ? 'noopener' : undefined"
class="flex size-10 items-center justify-center rounded-lg border border-line text-muted transition-all duration-300 hover:border-accent hover:bg-accent hover:text-bg"
>
<component :is="s.icon" class="size-4" />
<VuesaxIcon :name="s.icon" class="size-4" />
</a>
</div>
</div>