mirror of
https://github.com/Dadechin/XRoomDashboardFront.git
synced 2025-07-05 09:44:35 +00:00
add Download Page
This commit is contained in:
parent
6de13452fc
commit
19712a3c1c
BIN
xroom-dashboard/src/assets/img/image10.png
Normal file
BIN
xroom-dashboard/src/assets/img/image10.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 4.1 KiB |
BIN
xroom-dashboard/src/assets/img/image11.png
Normal file
BIN
xroom-dashboard/src/assets/img/image11.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 7.0 KiB |
|
@ -138,13 +138,14 @@ export default {
|
||||||
.welcome-container {
|
.welcome-container {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
text-align: right;
|
text-align: right;
|
||||||
padding-right: 20px;
|
/* padding-right: 20px; */
|
||||||
}
|
}
|
||||||
|
|
||||||
.welcome-message {
|
.welcome-message {
|
||||||
font-size: 14px;
|
color: #111;
|
||||||
color: #666666;
|
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
font-size: 19px;
|
||||||
|
font-weight: 600;
|
||||||
}
|
}
|
||||||
|
|
||||||
.user-info-container {
|
.user-info-container {
|
||||||
|
@ -288,47 +289,6 @@ export default {
|
||||||
z-index: 100; /* Lower than dropdown but higher than page content */
|
z-index: 100; /* Lower than dropdown but higher than page content */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
.dropdown-menu {
|
.dropdown-menu {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 100%;
|
top: 100%;
|
||||||
|
|
|
@ -49,7 +49,7 @@
|
||||||
<div class="text-wrapper">جلسات</div>
|
<div class="text-wrapper">جلسات</div>
|
||||||
</router-link>
|
</router-link>
|
||||||
|
|
||||||
<router-link to="/download" class="nav-button" :class="{ active: isActive('/download') }">
|
<router-link to="/dashboard/download" class="nav-button" :class="{ active: isActive('/download') }">
|
||||||
<img class="img" src="https://c.animaapp.com/m9nvumalUMfQbN/img/property-1-download.svg" />
|
<img class="img" src="https://c.animaapp.com/m9nvumalUMfQbN/img/property-1-download.svg" />
|
||||||
<div class="text-wrapper">دانلود</div>
|
<div class="text-wrapper">دانلود</div>
|
||||||
</router-link>
|
</router-link>
|
||||||
|
|
234
xroom-dashboard/src/pages/dashboard/Download.vue
Normal file
234
xroom-dashboard/src/pages/dashboard/Download.vue
Normal file
|
@ -0,0 +1,234 @@
|
||||||
|
<template>
|
||||||
|
|
||||||
|
<SidebarMenu />
|
||||||
|
<div class="dashboard-page">
|
||||||
|
<div class="content">
|
||||||
|
<!-- Top Header -->
|
||||||
|
<AppHeader pageTitle="دانلود ها" />
|
||||||
|
|
||||||
|
<!-- Description -->
|
||||||
|
<div class="section-description">
|
||||||
|
<div class="section-title">دانلود XRoom</div>
|
||||||
|
<p class="title-description">
|
||||||
|
برای شروع , برنامه XRoom را برای پلتفرم خود دانلود کنید
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Choose Device -->
|
||||||
|
<div class="chose-device">
|
||||||
|
<div class="section-title">لطفا پلتفرم خود را انتخاب کنید :</div>
|
||||||
|
|
||||||
|
<div class="cards">
|
||||||
|
<div class="platform-card" v-for="(item, index) in platforms" :key="index">
|
||||||
|
<div class="card-objects">
|
||||||
|
<img :src="item.img" :alt="item.title" :style="item.imgStyle" />
|
||||||
|
|
||||||
|
<p class="card-title">{{ item.title }}</p>
|
||||||
|
|
||||||
|
<span class="card-subtitle">{{ item.subtitle }}</span>
|
||||||
|
|
||||||
|
<router-link
|
||||||
|
to="/dashboard/download"
|
||||||
|
:class="item.buttonText === 'دانلود اپلیکیشن' ? 'active-button' : 'disabled-button'"
|
||||||
|
>
|
||||||
|
{{ item.buttonText }}
|
||||||
|
</router-link>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- download instructions -->
|
||||||
|
<span class="instructions-text">
|
||||||
|
برای دستورالعملهای نصب ، حتماً از <router-link to="/dashboard/download" style="color: #3A57E8;">پایگاه دانش ما</router-link> دیدن کنید.
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import SidebarMenu from '@/components/SidebarMenu.vue'
|
||||||
|
import AppHeader from '@/components/Header.vue';
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: 'DashboardPage',
|
||||||
|
components: {
|
||||||
|
SidebarMenu,
|
||||||
|
AppHeader,
|
||||||
|
|
||||||
|
},
|
||||||
|
data () {
|
||||||
|
return {
|
||||||
|
platforms: [
|
||||||
|
{
|
||||||
|
title: "Headsets",
|
||||||
|
subtitle: "Meta Quest 2, Meta Quest Pro, Meta Quest 3",
|
||||||
|
img: require("@/assets/img/image11.png"),
|
||||||
|
imgStyle: "width: 70px;height: 80px;",
|
||||||
|
buttonText: "دانلود اپلیکیشن",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "Windows",
|
||||||
|
subtitle: "Desktop mode for PC",
|
||||||
|
img: require("@/assets/img/image10.png"),
|
||||||
|
imgStyle: "width: 90px;height: 80px;",
|
||||||
|
buttonText: "بزودی",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style scoped>
|
||||||
|
|
||||||
|
.dashboard-page {
|
||||||
|
margin-right: 360px;
|
||||||
|
padding: 20px;
|
||||||
|
direction: rtl;
|
||||||
|
font-family: IRANSansXFaNum, sans-serif;
|
||||||
|
}
|
||||||
|
.content {
|
||||||
|
background-color: #f8f9fa;
|
||||||
|
border-radius: 20px;
|
||||||
|
padding: 35px 80px;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 32px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.section-title {
|
||||||
|
font-size: 17px;
|
||||||
|
font-weight: 600;
|
||||||
|
}
|
||||||
|
|
||||||
|
.title-description {
|
||||||
|
font-size: 15px;
|
||||||
|
font-weight: 500;
|
||||||
|
margin-top: 1.5rem;
|
||||||
|
color: #4F5A69;
|
||||||
|
}
|
||||||
|
|
||||||
|
.chose-device {
|
||||||
|
margin-top: 2rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.cards {
|
||||||
|
display: flex;
|
||||||
|
justify-content: right;
|
||||||
|
align-items: center;
|
||||||
|
margin-top: 2.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card-border {
|
||||||
|
background: linear-gradient(to right, #001940, #4364F7);
|
||||||
|
padding: 2px 1px;
|
||||||
|
border-radius: 20px;
|
||||||
|
width: 287px;
|
||||||
|
height: 442px;
|
||||||
|
margin-left: 2.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.platform-card {
|
||||||
|
position: relative;
|
||||||
|
width: 287px;
|
||||||
|
height: 442px;
|
||||||
|
border-radius: 20px;
|
||||||
|
background: white;
|
||||||
|
z-index: 0;
|
||||||
|
overflow: hidden;
|
||||||
|
margin-left: 2.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.platform-card::before {
|
||||||
|
content: "";
|
||||||
|
position: absolute;
|
||||||
|
inset: 0;
|
||||||
|
padding: 2.5px;
|
||||||
|
border-radius: 20px;
|
||||||
|
background: linear-gradient(to right, #001940, #4364F7);
|
||||||
|
-webkit-mask:
|
||||||
|
linear-gradient(#000 0 0) content-box,
|
||||||
|
linear-gradient(#000 0 0);
|
||||||
|
-webkit-mask-composite: xor;
|
||||||
|
mask-composite: exclude;
|
||||||
|
z-index: -1;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.card-objects {
|
||||||
|
text-align: center;
|
||||||
|
padding: 2.5rem 0px;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: space-between;
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
.card-title {
|
||||||
|
font-size: 24px;
|
||||||
|
font-weight: 500;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card-subtitle {
|
||||||
|
font-size: 17px;
|
||||||
|
font-weight: 500;
|
||||||
|
color : #718096;
|
||||||
|
max-width: 220px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.active-button {
|
||||||
|
position: relative;
|
||||||
|
width: 207px;
|
||||||
|
height: 46px;
|
||||||
|
border-radius: 8px;
|
||||||
|
background: white;
|
||||||
|
z-index: 0;
|
||||||
|
overflow: hidden;
|
||||||
|
color: black;
|
||||||
|
font-size: 17px;
|
||||||
|
font-weight: 500;
|
||||||
|
padding-top: 5%;
|
||||||
|
transition: background 0.8s ease, color 0.6s ease-in-out;
|
||||||
|
}
|
||||||
|
|
||||||
|
.active-button::before {
|
||||||
|
content: "";
|
||||||
|
position: absolute;
|
||||||
|
inset: 0;
|
||||||
|
padding: 1px;
|
||||||
|
border-radius: 8px;
|
||||||
|
background: linear-gradient(to right, #001940, #4364F7);
|
||||||
|
-webkit-mask:
|
||||||
|
linear-gradient(#000 0 0) content-box,
|
||||||
|
linear-gradient(#000 0 0);
|
||||||
|
-webkit-mask-composite: xor;
|
||||||
|
mask-composite: exclude;
|
||||||
|
z-index: -1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.active-button:hover {
|
||||||
|
background: linear-gradient(to right, #001940, #4364F7);
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
|
.disabled-button {
|
||||||
|
width: 207px;
|
||||||
|
height: 46px;
|
||||||
|
color: #111;
|
||||||
|
background-color: #E6E6E6;
|
||||||
|
border-radius: 8px;
|
||||||
|
font-size: 17px;
|
||||||
|
font-weight: 500;
|
||||||
|
padding-top: 5%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.instructions-text {
|
||||||
|
margin-top: 1.5rem;
|
||||||
|
font-size: 15px;
|
||||||
|
font-weight: 600;
|
||||||
|
color: #4F5A69;
|
||||||
|
}
|
||||||
|
|
||||||
|
</style>
|
|
@ -6,6 +6,7 @@ import SmsVerification from '../pages/SmsVerification.vue'
|
||||||
import DashboardPage from '../pages/dashboard/index.vue'
|
import DashboardPage from '../pages/dashboard/index.vue'
|
||||||
import FilesPage from '@/pages/dashboard/files.vue';
|
import FilesPage from '@/pages/dashboard/files.vue';
|
||||||
import TeamsPage from '@/pages/dashboard/team.vue';
|
import TeamsPage from '@/pages/dashboard/team.vue';
|
||||||
|
import DownloadPage from '@/pages/dashboard/Download.vue';
|
||||||
import axios from '@/axios';
|
import axios from '@/axios';
|
||||||
|
|
||||||
const routes = [
|
const routes = [
|
||||||
|
@ -41,6 +42,12 @@ const routes = [
|
||||||
component: FilesPage,
|
component: FilesPage,
|
||||||
meta: { requiresAuth: true }
|
meta: { requiresAuth: true }
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
path: '/dashboard/download',
|
||||||
|
name: 'download',
|
||||||
|
component: DownloadPage,
|
||||||
|
meta: { requiresAuth: true }
|
||||||
|
},
|
||||||
{
|
{
|
||||||
path: '/dashboard/teams',
|
path: '/dashboard/teams',
|
||||||
name: 'teams',
|
name: 'teams',
|
||||||
|
|
Loading…
Reference in New Issue
Block a user