241 lines
6.4 KiB
Vue
241 lines
6.4 KiB
Vue
<template>
|
|
<div class="services-page">
|
|
<div class="container">
|
|
<div class="row">
|
|
<div class="col-12">
|
|
<LineTxt label="شفافیت" />
|
|
</div>
|
|
|
|
<div class="body">
|
|
<div class="main">
|
|
<div>
|
|
<img
|
|
class="tasvir"
|
|
src="../../../static/images/shafaf.jpg"
|
|
alt="logo"
|
|
/>
|
|
</div>
|
|
<div>
|
|
شفافیت سریع ترین، کم هزینه ترین، ساده ترین، مبنایی ترین و قابل
|
|
اعتمادترین سازوکار برای مبارزه با فساد)هم در پیشگیری و هم کشف
|
|
جرم(، افزایش مسئولیت پذیری و پاسخگویی، ارتقاء شایسته ساالری،
|
|
مشارکت فعال و مؤثر مردمی، کاهش هزینه و زمان در پیشگیری و مبارزه با
|
|
فساد، و در نتیجه افزایش کارآمدی و سرمایه اجتماعی است؛ با ایجاد
|
|
شفافیت می توان عدالت را مستقر کرد و از ایجاد تبعیض های ناروا در
|
|
نظام جلوگیری کرد.به همین جهت، سازمان فناوری اطالعات با همکاری
|
|
سازمان غیردولتی شفافیت برای ایران اقدام به تاسیس کمیته شفافیت
|
|
نموده است
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="cards">
|
|
|
|
|
|
|
|
<div
|
|
v-for="(item, i) in items"
|
|
:key="i"
|
|
class="item">
|
|
<img :src="`/uploads/images/category/shafafiat/${item.icon}`" alt="شفافیت" />
|
|
<div class="parent">
|
|
<div class="right"></div>
|
|
<div class="left"></div>
|
|
</div>
|
|
<nuxt-link :to="`/ostandari/category/${item.title}?type=news&id=${item._id}`">
|
|
<p>{{ item?.title }}</p>
|
|
</nuxt-link>
|
|
</div>
|
|
|
|
|
|
</div>
|
|
<div class="space"></div>
|
|
<!-- <div class="col-12 col-md-6 services-view">
|
|
<nuxt-link
|
|
:to="{
|
|
name: 'portal-services-election',
|
|
params: { portal: currentPortal },
|
|
}"
|
|
class="services-item"
|
|
>
|
|
<i class="far fa-check-square"></i>
|
|
<span>شرکت در انتخابات استانداری مرکزی</span>
|
|
</nuxt-link>
|
|
</div>
|
|
<div class="col-12 col-md-6 services-view">
|
|
<nuxt-link
|
|
:to="{
|
|
name: 'portal-services-meeting',
|
|
params: { portal: currentPortal },
|
|
}"
|
|
class="services-item"
|
|
>
|
|
<i class="far fa-check-square"></i>
|
|
<span>ارتباط با استاندار</span>
|
|
</nuxt-link>
|
|
</div> -->
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
data(){
|
|
return{
|
|
items: []
|
|
}
|
|
},
|
|
computed: {
|
|
currentPortal() {
|
|
return this.$route.params.portal;
|
|
},
|
|
},
|
|
mounted() {
|
|
this.getData();
|
|
},
|
|
methods: {
|
|
async getData() {
|
|
const req = await this.$axios.get('/api/public/shafafiat')
|
|
console.log(req.data.data, 'reqq');
|
|
this.items = req?.data?.data
|
|
},
|
|
turnCateString(str) {
|
|
if (str.length > 22) {
|
|
return str.substring(0,22) + '...'
|
|
}else{
|
|
return str
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
</script>
|
|
|
|
<style scoped>
|
|
.body {
|
|
display: flex;
|
|
justify-content: center;
|
|
}
|
|
|
|
.main {
|
|
width: 60%;
|
|
border: 1px solid rgb(224, 222, 222);
|
|
height: 280px;
|
|
color: rgb(94, 94, 94);
|
|
display: flex;
|
|
justify-content: space-between;
|
|
border-radius: 10px;
|
|
line-height: 25px;
|
|
padding: 10px;
|
|
align-items: center;
|
|
gap: 10px;
|
|
|
|
/* حالت پیشفرض برای دسکتاپ */
|
|
flex-direction: row;
|
|
}
|
|
|
|
/* برای موبایل (عرض کمتر از 768px) */
|
|
@media (max-width: 1400px) {
|
|
.main {
|
|
flex-direction: column;
|
|
width: 100%; /* برای استفاده بهتر از فضای موجود در موبایل */
|
|
height: auto; /* ارتفاع خودکار برای تنظیم بهتر محتوا */
|
|
}
|
|
|
|
.tasvir {
|
|
width: 100%; /* تصویر به صورت ریسپانسیو */
|
|
height: auto; /* ارتفاع خودکار برای تنظیم متناسب با عرض */
|
|
}
|
|
}
|
|
|
|
.cards {
|
|
width: 100vw !important;
|
|
margin: 50px 0px;
|
|
display: grid;
|
|
gap: 10px;
|
|
grid-template-columns: repeat(6, 1fr); /* پیشفرض برای دسکتاپ */
|
|
}
|
|
|
|
/* برای تبلت (عرض بین 768px و 1024px) */
|
|
@media (max-width: 1224px) {
|
|
.cards {
|
|
grid-template-columns: repeat(3, 1fr);
|
|
}
|
|
}
|
|
|
|
/* برای موبایل (عرض کمتر از 768px) */
|
|
@media (max-width: 768px) {
|
|
.cards {
|
|
grid-template-columns: repeat(2, 1fr);
|
|
}
|
|
}
|
|
|
|
.item {
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
background-color: rgb(255, 255, 255);
|
|
height: 150px;
|
|
border-radius: 10px;
|
|
border: 1px solid rgb(214, 214, 214);
|
|
position: relative;
|
|
box-shadow: 0 4px 8px 0 rgba(238, 238, 238, 0.041),
|
|
0 6px 20px 0 rgba(231, 231, 231, 0.041);
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: space-around;
|
|
align-items: center;
|
|
padding: 5px 0px;
|
|
}
|
|
|
|
.space {
|
|
height: 50px;
|
|
}
|
|
.item img {
|
|
height: 65px;
|
|
width: 65px;
|
|
transition: transform 0.3s ease;
|
|
}
|
|
.item .parent {
|
|
border-top: 1px dashed rgb(187, 187, 187);
|
|
width: 100%;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
position: relative;
|
|
}
|
|
.left {
|
|
width: 25px !important;
|
|
height: 20px !important;
|
|
background-color: rgb(255, 255, 255);
|
|
position: absolute;
|
|
top: -10px;
|
|
left: -17px;
|
|
border-radius: 50%;
|
|
border-right: 1px solid rgb(187, 187, 187);
|
|
}
|
|
.right {
|
|
width: 25px !important;
|
|
height: 20px !important;
|
|
background-color: rgb(255, 255, 255);
|
|
position: absolute;
|
|
top: -10px;
|
|
right: -17px;
|
|
border-radius: 50%;
|
|
border-left: 1px solid rgb(187, 187, 187);
|
|
}
|
|
.item p {
|
|
color: rgb(117, 117, 117);
|
|
font-size: 14px;
|
|
}
|
|
.item:hover {
|
|
background-color: rgb(247, 247, 247); /* تغییر رنگ پسزمینه به قرمز */
|
|
box-shadow: 0 8px 16px rgba(233, 233, 233, 0.3); /* اضافه کردن سایه */
|
|
}
|
|
|
|
/* بزرگتر شدن تصویر در زمان hover */
|
|
.item:hover img {
|
|
transform: scale(1.1); /* بزرگتر شدن تصویر */
|
|
transition: transform 0.3s ease; /* انیمیشن برای بزرگتر شدن تصویر */
|
|
}
|
|
</style>
|