mirror of
https://github.com/Dadechin/XRoomDashboardFront.git
synced 2025-07-02 16:24:35 +00:00
responsive spaces Page /// fix some style in meet
This commit is contained in:
parent
012057ee7a
commit
94e8b089a9
|
@ -666,6 +666,7 @@ export default {
|
||||||
|
|
||||||
.room-image {
|
.room-image {
|
||||||
border-radius: 10px;
|
border-radius: 10px;
|
||||||
|
object-fit :cover;
|
||||||
}
|
}
|
||||||
|
|
||||||
</style>
|
</style>
|
|
@ -111,6 +111,11 @@
|
||||||
:space-between="10"
|
:space-between="10"
|
||||||
:loop="true"
|
:loop="true"
|
||||||
:pagination="{ clickable: true }"
|
:pagination="{ clickable: true }"
|
||||||
|
:breakpoints="{
|
||||||
|
768: { slidesPerView: 3.3, spaceBetween: 15 },
|
||||||
|
1024: { slidesPerView: 2.1, spaceBetween: 15 },
|
||||||
|
1280: { slidesPerView: 4.1, spaceBetween: 25 },
|
||||||
|
}"
|
||||||
:modules="modules"
|
:modules="modules"
|
||||||
class="swiper-meetings-list"
|
class="swiper-meetings-list"
|
||||||
>
|
>
|
||||||
|
@ -220,6 +225,14 @@ export default {
|
||||||
type: 'فنی',
|
type: 'فنی',
|
||||||
maxCapacity: 12,
|
maxCapacity: 12,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
id: 4,
|
||||||
|
title: 'جلسه تیم طرای',
|
||||||
|
date: '2025-06-01T09:00:00',
|
||||||
|
image: require('@/assets/img/img.jpg'),
|
||||||
|
type: 'طراحی',
|
||||||
|
maxCapacity: 24,
|
||||||
|
},
|
||||||
],
|
],
|
||||||
filteredMeetings: [],
|
filteredMeetings: [],
|
||||||
};
|
};
|
||||||
|
@ -345,6 +358,7 @@ export default {
|
||||||
margin-top: 1rem;
|
margin-top: 1rem;
|
||||||
padding: 1px;
|
padding: 1px;
|
||||||
padding-left: 0.7px;
|
padding-left: 0.7px;
|
||||||
|
padding-top: 1.4px;
|
||||||
border-radius: 10px;
|
border-radius: 10px;
|
||||||
background: linear-gradient(to right, #001940, #4364f7);
|
background: linear-gradient(to right, #001940, #4364f7);
|
||||||
position: relative;
|
position: relative;
|
||||||
|
@ -403,6 +417,7 @@ export default {
|
||||||
font-size: 15px;
|
font-size: 15px;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
color: #101010;
|
color: #101010;
|
||||||
|
line-height: 190%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.create-meet {
|
.create-meet {
|
||||||
|
@ -446,6 +461,10 @@ export default {
|
||||||
.meet-title {
|
.meet-title {
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
color: #101010;
|
color: #101010;
|
||||||
|
white-space: nowrap;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
overflow-x: clip;
|
||||||
|
width: 90px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.meet-capacity {
|
.meet-capacity {
|
||||||
|
@ -477,6 +496,10 @@ export default {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.filter-section {
|
||||||
|
padding : 0;
|
||||||
|
}
|
||||||
|
|
||||||
/* Mobile devices (max-width: 600px) */
|
/* Mobile devices (max-width: 600px) */
|
||||||
@media (max-width: 600px) {
|
@media (max-width: 600px) {
|
||||||
.meeting-filters {
|
.meeting-filters {
|
||||||
|
@ -593,13 +616,18 @@ export default {
|
||||||
}
|
}
|
||||||
|
|
||||||
.filter-section {
|
.filter-section {
|
||||||
max-width: 15%;
|
max-width: 20%;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: flex-start;
|
||||||
|
margin-bottom: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.filter-buttons {
|
.filter-buttons {
|
||||||
margin-top: 1rem;
|
margin-top: 1rem;
|
||||||
|
width: 100%;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
}
|
}
|
||||||
|
|
||||||
.active-filter {
|
.active-filter {
|
||||||
|
@ -625,7 +653,7 @@ export default {
|
||||||
.meetings-list {
|
.meetings-list {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: repeat(3, 1fr);
|
grid-template-columns: repeat(3, 1fr);
|
||||||
gap: 0.5rem;
|
gap: 1rem;
|
||||||
margin-bottom: 2rem;
|
margin-bottom: 2rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -731,12 +759,18 @@ export default {
|
||||||
}
|
}
|
||||||
|
|
||||||
.filter-section {
|
.filter-section {
|
||||||
max-width: 15%;
|
max-width: 20%;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: flex-start;
|
||||||
|
margin-bottom: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.filter-buttons {
|
.filter-buttons {
|
||||||
margin-top: 1rem;
|
margin-top: 1rem;
|
||||||
|
width: 100%;
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
}
|
}
|
||||||
|
|
||||||
.active-filter {
|
.active-filter {
|
||||||
|
@ -754,20 +788,36 @@ export default {
|
||||||
}
|
}
|
||||||
|
|
||||||
.create-meet {
|
.create-meet {
|
||||||
padding: 12px 24px;
|
white-space: nowrap;
|
||||||
font-size: 16px;
|
padding: 8px 20px;
|
||||||
|
font-size: 14px;
|
||||||
|
width: -moz-max-content;
|
||||||
width: max-content;
|
width: max-content;
|
||||||
}
|
}
|
||||||
|
|
||||||
.meetings-list {
|
.meetings-list {
|
||||||
display: grid;
|
display: flex;
|
||||||
grid-template-columns: repeat(3, 1fr);
|
|
||||||
gap: 2rem;
|
|
||||||
margin-bottom: 2rem;
|
margin-bottom: 2rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.swiper-meetings-list {
|
||||||
|
width: 100%;
|
||||||
|
margin-bottom: 1.5rem;
|
||||||
|
display: block !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.swiper-meeting-item {
|
||||||
|
width: 100%;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
border: 1px solid #b8c0cb;
|
||||||
|
border-radius: 12px;
|
||||||
|
padding: 4px;
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
|
||||||
.meeting-item {
|
.meeting-item {
|
||||||
padding: 8px;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.meet-title {
|
.meet-title {
|
||||||
|
@ -796,6 +846,9 @@ export default {
|
||||||
.filter-section {
|
.filter-section {
|
||||||
max-width: 15%;
|
max-width: 15%;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: flex-start;
|
||||||
|
margin-bottom: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.filter-buttons {
|
.filter-buttons {
|
||||||
|
|
|
@ -21,10 +21,16 @@
|
||||||
<!-- Spaces -->
|
<!-- Spaces -->
|
||||||
<div v-if="filteredSpaces.length > 0 " style="z-index: 0;">
|
<div v-if="filteredSpaces.length > 0 " style="z-index: 0;">
|
||||||
<swiper
|
<swiper
|
||||||
:slidesPerView="3.6"
|
:slidesPerView="1.7"
|
||||||
:spaceBetween="30"
|
:spaceBetween="20"
|
||||||
|
:freeMode="true"
|
||||||
:pagination="{ clickable: false }"
|
:pagination="{ clickable: false }"
|
||||||
:modules="modules"
|
:modules="modules"
|
||||||
|
:breakpoints="{
|
||||||
|
768: { slidesPerView: 3.3, spaceBetween: 15 },
|
||||||
|
1024: { slidesPerView: 2.8, spaceBetween: 15 },
|
||||||
|
1280: { slidesPerView: 4.1, spaceBetween: 25 },
|
||||||
|
}"
|
||||||
class="mySwiper"
|
class="mySwiper"
|
||||||
>
|
>
|
||||||
<swiper-slide v-for="(space, index) in filteredSpaces" :key="index" class="card">
|
<swiper-slide v-for="(space, index) in filteredSpaces" :key="index" class="card">
|
||||||
|
@ -64,7 +70,7 @@
|
||||||
import CreateSpaceModal from '@/components/CreateSpaceModal.vue';
|
import CreateSpaceModal from '@/components/CreateSpaceModal.vue';
|
||||||
import { Swiper, SwiperSlide } from 'swiper/vue';
|
import { Swiper, SwiperSlide } from 'swiper/vue';
|
||||||
import 'swiper/css';
|
import 'swiper/css';
|
||||||
import { Pagination } from 'swiper/modules';
|
import { FreeMode, Pagination } from 'swiper/modules';
|
||||||
import axios from 'axios';
|
import axios from 'axios';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
@ -76,7 +82,7 @@ export default {
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
modules: [Pagination],
|
modules: [FreeMode, Pagination],
|
||||||
isCreateSpaceModalVisible: false,
|
isCreateSpaceModalVisible: false,
|
||||||
sharingFilters: [
|
sharingFilters: [
|
||||||
{ label: 'همه', value: 'all' },
|
{ label: 'همه', value: 'all' },
|
||||||
|
@ -162,47 +168,30 @@ export default {
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
|
||||||
/* Add your CSS styling here */
|
|
||||||
</style>
|
|
||||||
|
|
||||||
<style scoped>
|
<style>
|
||||||
/* .dashboard-page {
|
/* Base styles applied across all screen sizes */
|
||||||
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 {
|
.section-title {
|
||||||
font-size: 20px;
|
font-weight: 700;
|
||||||
font-weight: 600;
|
color: #101010;
|
||||||
color: #2d3748;
|
font-size: 19px;
|
||||||
margin-top: 20px;
|
line-height: 26.6px;
|
||||||
margin-bottom: 10px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.section-description {
|
.section-description {
|
||||||
margin-bottom: 3rem;
|
margin: 1rem 0 3rem;
|
||||||
margin-top: 1rem;
|
|
||||||
font-size: 20px;
|
font-size: 20px;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
color: #2d3748;
|
color: #2d3748;
|
||||||
margin: 1rem 0 3rem;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.section-description p {
|
.section-description p {
|
||||||
line-height: 190%;
|
line-height: 190%;
|
||||||
color: #4F5A69;
|
color: #4f5a69;
|
||||||
font-size: 16px;
|
font-size: 15px;
|
||||||
margin-top: 1rem;
|
margin-top: 1rem;
|
||||||
|
font-weight: 500;
|
||||||
|
text-align: justify;
|
||||||
}
|
}
|
||||||
|
|
||||||
.filter-section {
|
.filter-section {
|
||||||
|
@ -255,42 +244,37 @@ export default {
|
||||||
|
|
||||||
.add-space {
|
.add-space {
|
||||||
display: block;
|
display: block;
|
||||||
padding: 12px 24px 12px 24px;
|
|
||||||
background-color: #3A57E8;
|
background-color: #3A57E8;
|
||||||
border-radius: 8px;
|
|
||||||
font-size: 16px;
|
|
||||||
font-weight: 500;
|
|
||||||
color: #FFFFFF;
|
color: #FFFFFF;
|
||||||
|
border-radius: 8px;
|
||||||
border: none;
|
border: none;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
width: max-content;
|
width: max-content;
|
||||||
margin: auto;
|
margin: auto;
|
||||||
|
font-weight: 500;
|
||||||
}
|
}
|
||||||
|
|
||||||
.mySwiper {
|
.mySwiper {
|
||||||
margin-top: 2.5rem;
|
margin: 2.5rem 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.card {
|
.card {
|
||||||
max-width: 250px !important;
|
height: auto;
|
||||||
width: 100% !important;
|
|
||||||
height: 335px;
|
|
||||||
border: 1px solid #B8C0CB;
|
border: 1px solid #B8C0CB;
|
||||||
border-radius: 16px;
|
border-radius: 16px;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
padding: 4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.card img {
|
.card img {
|
||||||
max-width: 235px;
|
|
||||||
width: 100%;
|
width: 100%;
|
||||||
max-height: 205px;
|
height: 10rem;
|
||||||
height: 100%;
|
|
||||||
border-radius: 14px;
|
border-radius: 14px;
|
||||||
border: none;
|
border: none;
|
||||||
margin-top: 0.4rem;
|
object-fit: cover;
|
||||||
}
|
}
|
||||||
|
|
||||||
.card-texts {
|
.card-texts {
|
||||||
|
@ -301,16 +285,19 @@ export default {
|
||||||
gap: 1rem;
|
gap: 1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.space-name {
|
.card-texts h2 {
|
||||||
font-size: 17px;
|
text-overflow: ellipsis;
|
||||||
|
white-space: nowrap;
|
||||||
|
overflow-x: clip;
|
||||||
|
width: 170px;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
color: #444D5A;
|
color: #101010;
|
||||||
}
|
}
|
||||||
|
|
||||||
.space-capacity {
|
.space-capacity {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
font-size: 15px;
|
font-size: 14px;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
color: #718096;
|
color: #718096;
|
||||||
}
|
}
|
||||||
|
@ -318,9 +305,13 @@ export default {
|
||||||
.space-type {
|
.space-type {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
font-size: 15px;
|
font-size: 14px;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
color: #3A57E8;
|
color: #3A57E8;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
overflow-x: clip;
|
||||||
|
white-space: nowrap;
|
||||||
|
width: 170px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.no-spaces-message {
|
.no-spaces-message {
|
||||||
|
@ -331,4 +322,92 @@ export default {
|
||||||
margin-bottom: 12rem;
|
margin-bottom: 12rem;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Media Queries for responsive adjustments */
|
||||||
|
@media (max-width: 600px) {
|
||||||
|
.card {
|
||||||
|
max-width: 250px;
|
||||||
|
height: 17.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card-texts h2 {
|
||||||
|
font-size: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.add-space {
|
||||||
|
padding : 8px 18px ;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (min-width: 600px) and (max-width: 1024px) {
|
||||||
|
.card-texts h2 {
|
||||||
|
font-size: 17px;
|
||||||
|
font-weight: 500;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card {
|
||||||
|
height: 17.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.add-space {
|
||||||
|
padding : 8px 18px ;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (min-width: 1024px) and (max-width: 1280px) {
|
||||||
|
.section-title {
|
||||||
|
font-size: 20px;
|
||||||
|
font-weight: 600;
|
||||||
|
color: #101010;
|
||||||
|
margin: 20px 0 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.add-space {
|
||||||
|
padding: 10px 20px;
|
||||||
|
font-size: 15px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card-texts h2 {
|
||||||
|
font-size: 18px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card {
|
||||||
|
height: 17.5rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (min-width: 1280px) {
|
||||||
|
.section-title {
|
||||||
|
font-size: 21px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.section-description p {
|
||||||
|
font-size: 17.5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.add-space {
|
||||||
|
padding: 12px 24px;
|
||||||
|
font-size: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card {
|
||||||
|
max-width: 250px;
|
||||||
|
height: 20rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card img {
|
||||||
|
width: 100%;
|
||||||
|
height: 12rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card-texts h2 {
|
||||||
|
font-size: 21px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.space-capacity,
|
||||||
|
.space-type {
|
||||||
|
font-size: 16px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
</style>
|
</style>
|
Loading…
Reference in New Issue
Block a user