init
Some checks are pending
Deploy / build (push) Has started running

This commit is contained in:
alsaze
2025-12-08 17:04:20 +03:00
parent d1969e34dc
commit c58fce240f
96 changed files with 346 additions and 562 deletions

View File

@@ -25,7 +25,7 @@
:key="contact.label"
class="flex items-center gap-4"
>
<div class="bg-gray-800 p-3 rounded-lg">
<div class="bg-gray-800 p-4 flex items-center rounded-lg">
<UIcon :name="contact.icon" />
</div>

View File

@@ -1,26 +1,47 @@
<template>
<div id="variations" class="main-carusel">
<div id="variations" class="main-carousel">
<h2>Актуальные варианты</h2>
<UCarousel
v-slot="{ item }"
arrows
:items="previewItems"
:ui="{ item: 'basis-1/2 sm:basis-1/3 md:basis-1/4 lg:basis-1/5 xl:basis-1/6' }"
class="w-full"
<!-- :autoplay="{ delay: 2000 }" -->
<Swiper
:modules="[Navigation, Autoplay]"
:loop="true"
:navigation="true"
:slides-per-view="1.2"
:space-between="16"
:breakpoints="{
640: { slidesPerView: 2 },
768: { slidesPerView: 3 },
1024: { slidesPerView: 4 },
1280: { slidesPerView: 5 },
}"
>
<div class="variants">
<SwiperSlide v-for="item in previewItems" :key="item.id" class="main-carousel__variant">
<NuxtLink :to="`/post/${item.id}`">
<img :src="item?.previewImage?.src" :alt="item?.previewImage?.src">
<img :src="item.previewImage.src" :alt="item.shortTitle">
<div class="main-carousel__type text-sm ">
{{ $t(item.type) }}
</div>
<p class="text-sm">
{{ item.shortTitle }}
</p>
</NuxtLink>
</div>
</UCarousel>
</SwiperSlide>
</Swiper>
</div>
</template>
<script setup lang="ts">
import { Autoplay, Navigation } from 'swiper/modules'
import { Swiper, SwiperSlide } from 'swiper/vue'
import 'swiper/css'
import 'swiper/css/navigation'
interface PreviewItem {
id: number
shortTitle: string
type: string
previewImage: {
src: string
}
@@ -30,21 +51,31 @@ defineProps<{ previewItems: PreviewItem[] }>()
</script>
<style scoped lang="scss">
.main-carusel {
height: 300px;
.main-carousel {
height: 380px;
display: flex;
flex-direction: column;
gap: 16px;
}
.variants {
cursor: pointer;
height: 100%;
&__variant {
position: relative;
cursor: pointer;
img {
border-radius: 12px;
height: 300px;
object-fit: cover;
img {
border-radius: 12px;
height: 300px;
width: 100%;
object-fit: cover;
}
}
&__type {
position: absolute;
top: 4px;
left: 4px;
padding: 4px 6px;
background: #1e293b;
border-radius: 8px;
}
}
</style>

View File

@@ -1,6 +1,8 @@
<template>
<h2>Где вы будете жить</h2>
<p>{{ marker.subtitle }}</p>
<div>
<h2>Где вы будете жить</h2>
<p>{{ marker.subtitle }}</p>
</div>
<YandexMap
:settings="{ location }"