@@ -222,4 +222,5 @@ export const ROLE_HOME_ROUTES = Object.freeze({
|
|||||||
admin: 'admin-dashboard',
|
admin: 'admin-dashboard',
|
||||||
counselor: 'counselor-dashboard',
|
counselor: 'counselor-dashboard',
|
||||||
missionary: 'missionary-dashboard',
|
missionary: 'missionary-dashboard',
|
||||||
|
student: 'student-dashboard',
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -1,29 +0,0 @@
|
|||||||
<template>
|
|
||||||
<div class="landing">
|
|
||||||
<h1 class="landing__title">سایت اصلی دانشگاه</h1>
|
|
||||||
<p class="landing__subtitle">در حال توسعه...</p>
|
|
||||||
</div>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<script setup></script>
|
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
|
||||||
.landing {
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: center;
|
|
||||||
height: 100vh;
|
|
||||||
background-color: #f3f4f6;
|
|
||||||
|
|
||||||
&__title {
|
|
||||||
font-family: var(--font-family-fa);
|
|
||||||
font-size: 1.5rem;
|
|
||||||
margin: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
&__subtitle {
|
|
||||||
margin-top: 0.5rem;
|
|
||||||
margin-bottom: 0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
export default [
|
|
||||||
{
|
|
||||||
path: '/',
|
|
||||||
name: 'home',
|
|
||||||
component: () => import('@/features/landing/pages/LandingPage.vue'),
|
|
||||||
meta: { public: true, layout: 'public', title: 'صفحه اصلی' },
|
|
||||||
},
|
|
||||||
]
|
|
||||||
+1
-1
@@ -7,7 +7,7 @@ const routes = Object.values(routeModules).flatMap((mod) => mod.default || [])
|
|||||||
|
|
||||||
const router = createRouter({
|
const router = createRouter({
|
||||||
history: createWebHistory(),
|
history: createWebHistory(),
|
||||||
routes: [...routes, { path: '/:pathMatch(.*)*', redirect: { name: 'home' } }],
|
routes: [...routes, { path: '/:pathMatch(.*)*', redirect: { name: 'login' } }],
|
||||||
scrollBehavior(to, from, savedPosition) {
|
scrollBehavior(to, from, savedPosition) {
|
||||||
if (savedPosition) return savedPosition
|
if (savedPosition) return savedPosition
|
||||||
if (to.hash) return { el: to.hash }
|
if (to.hash) return { el: to.hash }
|
||||||
|
|||||||
Reference in New Issue
Block a user