506 lines
25 KiB
Vue
506 lines
25 KiB
Vue
<template>
|
||
<div class="space-y-16 pb-16">
|
||
<!-- 1. Hero Section -->
|
||
<section class="relative overflow-hidden pt-8 pb-12 sm:pt-14 sm:pb-20 border-b border-stone-200/60 dark:border-stone-800/60 bg-gradient-to-b from-primary-50/50 via-transparent to-transparent dark:from-primary-950/20">
|
||
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
||
<div class="grid grid-cols-1 lg:grid-cols-12 gap-12 items-center">
|
||
<!-- Text column -->
|
||
<div class="lg:col-span-7 space-y-6 text-center lg:text-start">
|
||
<div class="inline-flex items-center gap-2 px-3.5 py-1.5 rounded-full text-xs font-semibold bg-primary-100/80 dark:bg-primary-900/40 text-primary-800 dark:text-primary-300 border border-primary-200 dark:border-primary-800">
|
||
<UIcon :name="getIcon('award', 'i-lucide-award')" class="w-4 h-4 text-primary-600 dark:text-primary-400" />
|
||
<span>پذیرش برادران علاقهمند به فراگیری علوم حوزوی</span>
|
||
</div>
|
||
|
||
<h1 class="text-3xl sm:text-4xl lg:text-5xl font-extrabold text-stone-900 dark:text-white tracking-tight leading-tight">
|
||
{{ currentTheme.name }}
|
||
</h1>
|
||
|
||
<p class="text-base sm:text-lg text-stone-600 dark:text-stone-300 leading-relaxed max-w-2xl">
|
||
مرکز تخصصی تربیت مبلغان متعهد، آشنا به شیوههای نوین تبلیغ و پژوهشگران معارف اهلبیت (علیهمالسلام) در فضایی معنوی و پویا.
|
||
</p>
|
||
|
||
<!-- Action Buttons -->
|
||
<div class="flex flex-wrap items-center justify-center lg:justify-start gap-3.5 pt-2">
|
||
<UButton
|
||
color="primary"
|
||
variant="solid"
|
||
size="lg"
|
||
:icon="getIcon('graduationCap', 'i-lucide-graduation-cap')"
|
||
label="ثبتنام و پذیرش دوره جدید"
|
||
class="shadow-lg shadow-primary-500/25 px-6 font-bold"
|
||
@click="openAdmissionModal"
|
||
/>
|
||
<UButton
|
||
color="neutral"
|
||
variant="outline"
|
||
size="lg"
|
||
:icon="getIcon('bookOpen', 'i-lucide-book-open')"
|
||
label="آشنایی با نظام آموزشی"
|
||
class="px-5 font-semibold"
|
||
@click="scrollToCourses"
|
||
/>
|
||
</div>
|
||
|
||
<!-- Key Highlights List -->
|
||
<div class="pt-6 grid grid-cols-2 sm:grid-cols-3 gap-4 text-xs font-medium text-stone-600 dark:text-stone-300 border-t border-stone-200/80 dark:border-stone-800/80">
|
||
<div class="flex items-center gap-2">
|
||
<UIcon :name="getIcon('check', 'i-lucide-check')" class="w-4 h-4 text-primary-500 flex-shrink-0" />
|
||
<span>مدرک رسمی سطح ۲ حوزه علمیه</span>
|
||
</div>
|
||
<div class="flex items-center gap-2">
|
||
<UIcon :name="getIcon('check', 'i-lucide-check')" class="w-4 h-4 text-primary-500 flex-shrink-0" />
|
||
<span>اساتید برجسته سطوح عالی</span>
|
||
</div>
|
||
<div class="flex items-center gap-2">
|
||
<UIcon :name="getIcon('check', 'i-lucide-check')" class="w-4 h-4 text-primary-500 flex-shrink-0" />
|
||
<span>امکانات اسکان و خوابگاه طلاب</span>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<!-- Feature Cards Showcase column -->
|
||
<div class="lg:col-span-5">
|
||
<div class="relative">
|
||
<!-- Glow backdrop -->
|
||
<div class="absolute -inset-2 bg-gradient-to-r from-primary-500 to-amber-600 rounded-3xl blur-2xl opacity-20 dark:opacity-30"></div>
|
||
|
||
<div class="relative bg-white dark:bg-stone-900 border border-stone-200/80 dark:border-stone-800 rounded-3xl p-6 sm:p-8 shadow-xl space-y-6">
|
||
<!-- Header inside card -->
|
||
<div class="flex items-center justify-between border-b border-stone-100 dark:border-stone-800 pb-4">
|
||
<div class="flex items-center gap-3">
|
||
<div class="w-10 h-10 rounded-xl bg-primary-500/10 text-primary-600 dark:text-primary-400 flex items-center justify-center">
|
||
<UIcon :name="getIcon('calendar', 'i-lucide-calendar')" class="w-5 h-5" />
|
||
</div>
|
||
<div>
|
||
<div class="text-xs text-stone-500 dark:text-stone-400">تقویم جاری حوزه</div>
|
||
<div class="text-sm font-bold text-stone-900 dark:text-white">نیمسال تحصیلی ۱۴۰۵-۱۴۰۶</div>
|
||
</div>
|
||
</div>
|
||
<span class="inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-semibold bg-emerald-100 dark:bg-emerald-950/60 text-emerald-800 dark:text-emerald-300">
|
||
فعال
|
||
</span>
|
||
</div>
|
||
|
||
<!-- Stats grid -->
|
||
<div class="grid grid-cols-2 gap-4">
|
||
<div class="p-4 rounded-2xl bg-stone-50 dark:bg-stone-800/60 border border-stone-100 dark:border-stone-700/60">
|
||
<div class="text-2xl font-black text-primary-600 dark:text-primary-400">۳۵۰+</div>
|
||
<div class="text-xs text-stone-500 dark:text-stone-400 mt-0.5">طلبه در حال تحصیل</div>
|
||
</div>
|
||
<div class="p-4 rounded-2xl bg-stone-50 dark:bg-stone-800/60 border border-stone-100 dark:border-stone-700/60">
|
||
<div class="text-2xl font-black text-primary-600 dark:text-primary-400">۲۸</div>
|
||
<div class="text-xs text-stone-500 dark:text-stone-400 mt-0.5">استاد سطوح عالی</div>
|
||
</div>
|
||
<div class="p-4 rounded-2xl bg-stone-50 dark:bg-stone-800/60 border border-stone-100 dark:border-stone-700/60">
|
||
<div class="text-2xl font-black text-primary-600 dark:text-primary-400">۱۲,۰۰۰</div>
|
||
<div class="text-xs text-stone-500 dark:text-stone-400 mt-0.5">جلد کتب کتابخانه</div>
|
||
</div>
|
||
<div class="p-4 rounded-2xl bg-stone-50 dark:bg-stone-800/60 border border-stone-100 dark:border-stone-700/60">
|
||
<div class="text-2xl font-black text-primary-600 dark:text-primary-400">۱۰۰٪</div>
|
||
<div class="text-xs text-stone-500 dark:text-stone-400 mt-0.5">اعزام مبلغان به سراسر کشور</div>
|
||
</div>
|
||
</div>
|
||
|
||
<!-- Fast entrance link -->
|
||
<div class="pt-2">
|
||
<UButton
|
||
block
|
||
color="primary"
|
||
variant="soft"
|
||
size="md"
|
||
label="ورود به سامانه انتخاب واحد و دروس"
|
||
:icon="getIcon('chevronLeft', 'i-lucide-chevron-left')"
|
||
/>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</section>
|
||
|
||
<!-- 2. Interactive Theme & Font Customizer Live Bar -->
|
||
<section class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
||
<div class="p-6 rounded-2xl bg-white dark:bg-stone-900 border border-stone-200 dark:border-stone-800 shadow-sm space-y-4">
|
||
<div class="flex flex-col sm:flex-row sm:items-center justify-between gap-4 border-b border-stone-100 dark:border-stone-800 pb-4">
|
||
<div class="flex items-center gap-3">
|
||
<div class="w-9 h-9 rounded-xl bg-primary-100 dark:bg-primary-950 text-primary-600 dark:text-primary-400 flex items-center justify-center">
|
||
<UIcon :name="getIcon('palette', 'i-lucide-palette')" class="w-5 h-5" />
|
||
</div>
|
||
<div>
|
||
<h3 class="text-sm font-bold text-stone-900 dark:text-white">پنل تغییر زنده تم و فونت سامانه</h3>
|
||
<p class="text-xs text-stone-500 dark:text-stone-400">به وسیله theme.json و کامپوزبل composSystemTheme</p>
|
||
</div>
|
||
</div>
|
||
|
||
<!-- Color palette buttons -->
|
||
<div class="flex items-center gap-2">
|
||
<span class="text-xs text-stone-500 dark:text-stone-400">رنگ پایه:</span>
|
||
<button
|
||
v-for="color in themePresets"
|
||
:key="color.hex"
|
||
:style="{ backgroundColor: color.hex }"
|
||
:title="color.name"
|
||
class="w-7 h-7 rounded-lg border-2 transition transform hover:scale-110 active:scale-95 flex items-center justify-center text-white"
|
||
:class="primaryColor.toLowerCase() === color.hex.toLowerCase() ? 'border-stone-900 dark:border-white ring-2 ring-primary-300' : 'border-transparent'"
|
||
@click="setPrimaryColor(color.hex)"
|
||
>
|
||
<UIcon v-if="primaryColor.toLowerCase() === color.hex.toLowerCase()" :name="getIcon('check', 'i-lucide-check')" class="w-3.5 h-3.5" />
|
||
</button>
|
||
</div>
|
||
</div>
|
||
|
||
<!-- Fonts selection from public folder -->
|
||
<div class="flex flex-wrap items-center justify-between gap-4 pt-1">
|
||
<div class="flex items-center gap-2 text-xs">
|
||
<UIcon :name="getIcon('font', 'i-lucide-type')" class="w-4 h-4 text-primary-500" />
|
||
<span class="text-stone-600 dark:text-stone-400 font-medium">فونتهای پوشه public:</span>
|
||
<div class="flex flex-wrap gap-1.5">
|
||
<UButton
|
||
v-for="f in availableFonts"
|
||
:key="f.name"
|
||
size="xs"
|
||
:variant="fontName === f.name ? 'solid' : 'outline'"
|
||
color="neutral"
|
||
@click="setFont(f.name, f.fallback)"
|
||
>
|
||
{{ f.label }}
|
||
</UButton>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="flex items-center gap-3 text-xs text-stone-500">
|
||
<span>جهت: <strong class="text-primary-600">{{ isRtl ? 'راستچین (RTL)' : 'چپچین (LTR)' }}</strong></span>
|
||
<span>•</span>
|
||
<span>رنگ جاری: <code class="font-mono text-primary-600">{{ primaryColor }}</code></span>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</section>
|
||
|
||
<!-- 3. Departments / معاونتهای حوزه -->
|
||
<section id="departments" class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 space-y-8">
|
||
<div class="text-center max-w-2xl mx-auto space-y-2">
|
||
<h2 class="text-2xl sm:text-3xl font-extrabold text-stone-900 dark:text-white">
|
||
معاونتهای تخصصی مدرسه علمیه
|
||
</h2>
|
||
<p class="text-sm text-stone-600 dark:text-stone-400">
|
||
ارائه خدمات آموزشی، تهذیبی، پژوهشی و تبلیغی هدفمند به طلاب محترم
|
||
</p>
|
||
</div>
|
||
|
||
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6">
|
||
<div
|
||
v-for="dept in departments"
|
||
:key="dept.title"
|
||
class="p-6 rounded-2xl bg-white dark:bg-stone-900 border border-stone-200 dark:border-stone-800 shadow-sm hover:border-primary-500/60 hover:shadow-md transition group space-y-3"
|
||
>
|
||
<div class="w-12 h-12 rounded-2xl bg-primary-50 dark:bg-primary-950/60 text-primary-600 dark:text-primary-400 flex items-center justify-center group-hover:bg-primary-500 group-hover:text-white transition duration-200">
|
||
<UIcon :name="getIcon(dept.icon, 'i-lucide-book-open')" class="w-6 h-6" />
|
||
</div>
|
||
<h3 class="font-bold text-base text-stone-900 dark:text-white">{{ dept.title }}</h3>
|
||
<p class="text-xs text-stone-600 dark:text-stone-400 leading-relaxed">{{ dept.description }}</p>
|
||
</div>
|
||
</div>
|
||
</section>
|
||
|
||
<!-- 4. Educational Courses / دورههای آموزشی -->
|
||
<section id="courses" class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 space-y-8">
|
||
<div class="flex flex-col sm:flex-row sm:items-end justify-between gap-4">
|
||
<div>
|
||
<h2 class="text-2xl sm:text-3xl font-extrabold text-stone-900 dark:text-white">
|
||
دورههای تخصصی و آموزشی
|
||
</h2>
|
||
<p class="text-sm text-stone-600 dark:text-stone-400 mt-1">
|
||
برنامههای درسی جامع با تأکید بر ادبیات عرب، فقه و اصول، کلام، تفسیر و فن خطابه
|
||
</p>
|
||
</div>
|
||
<UButton
|
||
color="primary"
|
||
variant="outline"
|
||
size="sm"
|
||
label="دانلود سرفصل دروس"
|
||
:icon="getIcon('fileText', 'i-lucide-file-text')"
|
||
/>
|
||
</div>
|
||
|
||
<div class="grid grid-cols-1 md:grid-cols-3 gap-6">
|
||
<div
|
||
v-for="course in courses"
|
||
:key="course.title"
|
||
class="p-6 rounded-2xl bg-white dark:bg-stone-900 border border-stone-200 dark:border-stone-800 shadow-sm flex flex-col justify-between space-y-4 hover:border-primary-500/50 transition"
|
||
>
|
||
<div class="space-y-3">
|
||
<div class="flex items-center justify-between">
|
||
<span class="px-2.5 py-1 rounded-lg text-xs font-semibold bg-stone-100 dark:bg-stone-800 text-stone-700 dark:text-stone-300">
|
||
{{ course.level }}
|
||
</span>
|
||
<span class="text-xs text-primary-600 font-bold">{{ course.duration }}</span>
|
||
</div>
|
||
<h3 class="text-base font-bold text-stone-900 dark:text-white">{{ course.title }}</h3>
|
||
<p class="text-xs text-stone-600 dark:text-stone-400 leading-relaxed">{{ course.desc }}</p>
|
||
</div>
|
||
|
||
<div class="pt-3 border-t border-stone-100 dark:border-stone-800 flex items-center justify-between text-xs">
|
||
<span class="text-stone-500">مدرس: {{ course.instructor }}</span>
|
||
<UButton size="xs" color="primary" variant="ghost" label="مشاهده جزییات" :icon="getIcon('chevronLeft', 'i-lucide-chevron-left')" />
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</section>
|
||
|
||
<!-- 5. News & Announcements / اخبار و رویدادها -->
|
||
<section id="news" class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 space-y-8">
|
||
<div class="text-center max-w-2xl mx-auto space-y-2">
|
||
<h2 class="text-2xl sm:text-3xl font-extrabold text-stone-900 dark:text-white">
|
||
تازهترین رویدادها و اخبار حوزه
|
||
</h2>
|
||
<p class="text-sm text-stone-600 dark:text-stone-400">
|
||
اطلاعیههای آموزشی، همایشها و برنامههای فرهنگی سفیران هدایت
|
||
</p>
|
||
</div>
|
||
|
||
<div class="grid grid-cols-1 md:grid-cols-3 gap-6">
|
||
<div
|
||
v-for="news in newsList"
|
||
:key="news.id"
|
||
class="rounded-2xl bg-white dark:bg-stone-900 border border-stone-200 dark:border-stone-800 overflow-hidden shadow-sm flex flex-col justify-between hover:shadow-md transition"
|
||
>
|
||
<div class="p-6 space-y-3">
|
||
<div class="flex items-center gap-2 text-xs text-stone-400">
|
||
<UIcon :name="getIcon('calendar', 'i-lucide-calendar')" class="w-3.5 h-3.5 text-primary-500" />
|
||
<span>{{ news.date }}</span>
|
||
</div>
|
||
<h3 class="font-bold text-sm sm:text-base text-stone-900 dark:text-white leading-snug hover:text-primary-600 transition cursor-pointer">
|
||
{{ news.title }}
|
||
</h3>
|
||
<p class="text-xs text-stone-600 dark:text-stone-400 leading-relaxed">
|
||
{{ news.summary }}
|
||
</p>
|
||
</div>
|
||
|
||
<div class="p-4 bg-stone-50/60 dark:bg-stone-800/40 border-t border-stone-100 dark:border-stone-800/80 flex items-center justify-between text-xs">
|
||
<span class="text-stone-500 font-medium">{{ news.category }}</span>
|
||
<button class="text-primary-600 dark:text-primary-400 font-bold hover:underline flex items-center gap-1">
|
||
متن کامل
|
||
<UIcon :name="getIcon('chevronLeft', 'i-lucide-chevron-left')" class="w-3.5 h-3.5" />
|
||
</button>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</section>
|
||
|
||
<!-- 6. Contact & Consultation Modal Form -->
|
||
<BaseModal
|
||
:isOpen="isAdmissionModalOpen"
|
||
:modalSchema="admissionModalSchema"
|
||
@modal-action="handleAdmissionAction"
|
||
@update:isOpen="(val) => isAdmissionModalOpen = val"
|
||
>
|
||
<template #modal-body-content>
|
||
<div class="space-y-4 py-2">
|
||
<p class="text-xs text-stone-600 dark:text-stone-300">
|
||
جهت ثبتنام اولیه در دوره جدید حوزه علمیه سفیران هدایت، مشخصات خود را وارد نمایید. کارشناسان پذیرش در اسرع وقت با شما تماس خواهند گرفت:
|
||
</p>
|
||
|
||
<div class="space-y-3">
|
||
<div>
|
||
<label class="block text-xs font-semibold mb-1">نام و نامخانوادگی داوطلب:</label>
|
||
<input
|
||
type="text"
|
||
v-model="admissionForm.fullName"
|
||
placeholder="مثال: علی رضایی"
|
||
class="w-full px-3 py-2 text-xs rounded-xl border border-stone-300 dark:border-stone-700 bg-white dark:bg-stone-800 focus:outline-none focus:ring-2 focus:ring-primary-500"
|
||
/>
|
||
</div>
|
||
<div>
|
||
<label class="block text-xs font-semibold mb-1">شماره تماس (همراه):</label>
|
||
<input
|
||
type="text"
|
||
v-model="admissionForm.phone"
|
||
placeholder="۰۹۱۲۰۰۰۰۰۰۰"
|
||
class="w-full px-3 py-2 text-xs rounded-xl border border-stone-300 dark:border-stone-700 bg-white dark:bg-stone-800 focus:outline-none focus:ring-2 focus:ring-primary-500"
|
||
/>
|
||
</div>
|
||
<div>
|
||
<label class="block text-xs font-semibold mb-1">آخرین مدرک تحصیلی:</label>
|
||
<select
|
||
v-model="admissionForm.education"
|
||
class="w-full px-3 py-2 text-xs rounded-xl border border-stone-300 dark:border-stone-700 bg-white dark:bg-stone-800 focus:outline-none focus:ring-2 focus:ring-primary-500"
|
||
>
|
||
<option value="diploma">دیپلم متوسطه</option>
|
||
<option value="associate">کاردانی</option>
|
||
<option value="bachelor">کارشناسی (لیسانس)</option>
|
||
<option value="master">کارشناسی ارشد و بالاتر</option>
|
||
</select>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</template>
|
||
</BaseModal>
|
||
</div>
|
||
</template>
|
||
|
||
<script setup lang="ts">
|
||
import { ref } from "vue";
|
||
import { composSystemTheme } from "~/composables/composSystemTheme";
|
||
import { useConfirm } from "~/composables/useConfirm";
|
||
|
||
const { ucoShowConfirmModal } = useConfirm();
|
||
|
||
const {
|
||
currentTheme,
|
||
primaryColor,
|
||
isRtl,
|
||
fontName,
|
||
setPrimaryColor,
|
||
setFont,
|
||
getIcon,
|
||
} = composSystemTheme();
|
||
|
||
// پالتهای رنگی آماده با اولویت رنگ درخواستی #d99058
|
||
const themePresets = [
|
||
{ name: "رنگ اصلی سفیران هدایت", hex: "#d99058" },
|
||
{ name: "سبز سنتی اسلامی", hex: "#15803d" },
|
||
{ name: "آبی فیروزهای اصیل", hex: "#0284c7" },
|
||
{ name: "لاجوردی حوزوی", hex: "#1e3a8a" },
|
||
{ name: "زرشکی سنتی", hex: "#991b1b" },
|
||
];
|
||
|
||
// فونتهای موجود در پوشه public
|
||
const availableFonts = [
|
||
{ name: "Vazirmatn", label: "وزیر متن (پیشفرض)", fallback: "'Sahel', sans-serif" },
|
||
{ name: "Sahel", label: "فونت ساحل (Sahel)", fallback: "'Vazirmatn', sans-serif" },
|
||
{ name: "Yekan", label: "یکان (Yekan)", fallback: "sans-serif" },
|
||
{ name: "system-ui", label: "سیستمی", fallback: "sans-serif" },
|
||
];
|
||
|
||
// معاونتهای مدرسه علمیه
|
||
const departments = [
|
||
{
|
||
title: "معاونت آموزش",
|
||
icon: "bookOpen",
|
||
description: "برنامهریزی آموزشی، نظارت بر کلاسها، امتحانات، ارزیابی علمی و نظام جامع دروس سطح یک و دو.",
|
||
},
|
||
{
|
||
title: "معاونت پژوهش",
|
||
icon: "library",
|
||
description: "توسعه فعالیتهای پژوهشی، نشریات تخصصی، هدایت مقالات طلاب و کارگاههای روش تحقیق.",
|
||
},
|
||
{
|
||
title: "معاونت تهذیب و اخلاق",
|
||
icon: "award",
|
||
description: "برگزاری درسهای اخلاق اساتید، مشاورههای مذهبی و برنامهریزی تعالی روحی طلاب.",
|
||
},
|
||
{
|
||
title: "معاونت تبلیغ و فرهنگ",
|
||
icon: "users",
|
||
description: "سازماندهی گروههای جهادی تبلیغی، اعزام مبلغان به مدارس و مساجد در مناسبتهای مذهبی.",
|
||
},
|
||
];
|
||
|
||
// دورههای آموزشی
|
||
const courses = [
|
||
{
|
||
title: "دوره عمومی سطح ۲ سفیران هدایت",
|
||
level: "عمومی تخصصی",
|
||
duration: "۵ سال پیوسته",
|
||
desc: "شامل ادبیات پیشرفته عرب، فقه، اصول، منطق، کلام، تفسیر قرآن و مهارتهای خطابه و مناظره.",
|
||
instructor: "شورای علمی اساتید",
|
||
},
|
||
{
|
||
title: "کارگاه مهارتهای نوین تبلیغ و خطابه",
|
||
level: "کارگاهی - عملی",
|
||
duration: "۲ ترم تحصیلی",
|
||
desc: "آموزش فن بیان، پاسخ به شبهات اعتقادی روز، سخنوری مذهبی و تولید محتوا در رسانههای نوین.",
|
||
instructor: "اساتید برجسته خطابه قم",
|
||
},
|
||
{
|
||
title: "دوره تخصصی علوم قرآن و حدیث",
|
||
level: "تکمیلی",
|
||
duration: "۱ سال",
|
||
desc: "روشهای تحلیل احادیث فقهی و اخلاقی، درایة الحدیث و تدبر موضوعی در آیات قرآن مجید.",
|
||
instructor: "اساتید تفسیر حوزه علمیه",
|
||
},
|
||
];
|
||
|
||
// اخبار و اطلاعیهها
|
||
const newsList = [
|
||
{
|
||
id: 1,
|
||
title: "شروع نامنویسی داوطلبان دوره جدید مدرسه علمیه سفیران هدایت",
|
||
date: "۱۴۰۵/۰۸/۱۰",
|
||
category: "پذیرش و ثبتنام",
|
||
summary: "به اطلاع میرساند کلیه متقاضیان دارای مدرک دیپلم و بالاتر میتوانند نسبت به ثبت نام اولیه اقدام نمایند.",
|
||
},
|
||
{
|
||
id: 2,
|
||
title: "برگزاری نشست اخلاقی هفتگی با حضور استاد اخلاق حوزه علمیه قم",
|
||
date: "۱۴۰۵/۰۸/۰۸",
|
||
category: "معاونت تهذیب",
|
||
summary: "سلسله جلسات هفتگی تهذیب نفس و اخلاق اسلامی روزهای چهارشنبه پس از نماز مغرب و عشا منعقد میگردد.",
|
||
},
|
||
{
|
||
id: 3,
|
||
title: "اعزام کاروان مبلغان طلاب سفیران هدایت به مناطق محروم",
|
||
date: "۱۴۰۵/۰۸/۰۴",
|
||
category: "معاونت تبلیغ",
|
||
summary: "گروه تبلیغی مدرسه علمیه جهت اجرای برنامههای فرهنگی و دینی عازم روستاهای تابعه گردیدند.",
|
||
},
|
||
];
|
||
|
||
// اسکرول نرم به بخش دورهها
|
||
const scrollToCourses = () => {
|
||
const el = document.getElementById("courses");
|
||
if (el) {
|
||
el.scrollIntoView({ behavior: "smooth" });
|
||
}
|
||
};
|
||
|
||
// مدال پذیرش و ثبتنام
|
||
const isAdmissionModalOpen = ref(false);
|
||
const admissionForm = ref({
|
||
fullName: "",
|
||
phone: "",
|
||
education: "diploma",
|
||
});
|
||
|
||
const admissionModalSchema = {
|
||
title: "درخواست ثبتنام و مشاوره پذیرش",
|
||
description: "حوزه علمیه تخصصی سفیران هدایت",
|
||
size: "md",
|
||
actions: {
|
||
left: [
|
||
{ key: "cancel", label: "انصراف", variant: "outline", color: "neutral", closeOnClick: true },
|
||
{ key: "submit", label: "ثبت درخواست", color: "primary", closeOnClick: false },
|
||
],
|
||
},
|
||
};
|
||
|
||
const openAdmissionModal = () => {
|
||
isAdmissionModalOpen.value = true;
|
||
};
|
||
|
||
const handleAdmissionAction = async (key: string) => {
|
||
if (key === "submit") {
|
||
if (!admissionForm.value.fullName || !admissionForm.value.phone) {
|
||
alert("لطفاً نام و شماره همراه خود را وارد نمایید.");
|
||
return;
|
||
}
|
||
|
||
const confirmed = await ucoShowConfirmModal({
|
||
title: "تأیید ثبت اطلاعات",
|
||
message: `آیا از ثبت اطلاعات داوطلب (${admissionForm.value.fullName}) اطمینان دارید؟`,
|
||
confirmText: "بله، ثبت نهایی",
|
||
cancelText: "ویرایش",
|
||
});
|
||
|
||
if (confirmed) {
|
||
isAdmissionModalOpen.value = false;
|
||
alert("درخواست شما با موفقیت ثبت شد. کارشناسان پذیرش به زودی با شما تماس خواهند گرفت.");
|
||
admissionForm.value = { fullName: "", phone: "", education: "diploma" };
|
||
}
|
||
}
|
||
};
|
||
</script>
|