mirror of
https://git.rdcenter.ru/RDCenter/skb-kit.git
synced 2026-12-05 04:19:45 +00:00
24 files changed
+588
-55
No files matched your search
@@ -1,5 +1,6 @@
|
||||
import { usePosts } from "@/modules/posts/hooks/usePosts";
|
||||
import { WpPost } from "@/widgets/WpPost";
|
||||
import {SkeletonPost} from "@/shared/Components/SkeletonPost/SkeletonPost";
|
||||
|
||||
interface CategoryPageProps {
|
||||
category: string;
|
||||
@@ -15,10 +16,12 @@ export function CategoryPage({ category }: CategoryPageProps) {
|
||||
if (isLoading)
|
||||
return (
|
||||
<div className="mainContainer">
|
||||
<span className="loader"></span>
|
||||
{[...Array(1)].map((_, index) => (
|
||||
<SkeletonPost key={index} />
|
||||
))}
|
||||
</div>
|
||||
);
|
||||
if (isError) return <div>Ошибка при загрузке данных</div>;
|
||||
if (isError) return <center>Ошибка при загрузке данных</center>;
|
||||
|
||||
return (
|
||||
<>
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
#footer {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
@@ -80,9 +79,11 @@
|
||||
gap: 32px;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.copyright {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.visible {
|
||||
display: block;
|
||||
}
|
||||
@@ -100,6 +101,7 @@
|
||||
.visible {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
.copyright {
|
||||
display: block !important; // Показываем текст внизу только в мобильной версии
|
||||
text-align: center;
|
||||
@@ -122,6 +124,7 @@
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
gap: 20px;
|
||||
|
||||
.logo {
|
||||
height: auto;
|
||||
width: 100%;
|
||||
@@ -163,37 +166,62 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
.footer-links-container {
|
||||
display: flex;
|
||||
flex-direction: column; /* Arrange links vertically */
|
||||
justify-content: space-between; /* Spread out the items */
|
||||
height: 100%; /* Make sure the container takes up full height */
|
||||
flex-direction: column;
|
||||
/* Arrange links vertically */
|
||||
justify-content: space-between;
|
||||
/* Spread out the items */
|
||||
height: 100%;
|
||||
/* Make sure the container takes up full height */
|
||||
}
|
||||
|
||||
|
||||
.footer-links {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
gap: 30px; // Между столбиками будет отступ
|
||||
|
||||
|
||||
.footer-column {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 20px; // Расстояние между ссылками в одном столбике
|
||||
|
||||
gap: 20px;
|
||||
|
||||
a {
|
||||
color: white; // Белый цвет текста
|
||||
text-decoration: none; // Убираем подчеркивание
|
||||
font-size: 16px; // Размер текста
|
||||
color: white;
|
||||
text-decoration: none;
|
||||
font-size: 16px;
|
||||
position: relative;
|
||||
|
||||
&::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
bottom: -5px;
|
||||
width: 0;
|
||||
height: 1px;
|
||||
background-color: white;
|
||||
transition: width 0.3s ease, left 0.3s ease;
|
||||
transform: translateX(-50%);
|
||||
}
|
||||
|
||||
&:hover::after {
|
||||
width: calc(100% + 8px);
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.privacy-policy {
|
||||
align-self: flex-end; /* Align the "Политика конфиденциальности" link to the bottom */
|
||||
margin-top: auto; /* Ensure the link is pushed to the bottom */
|
||||
|
||||
}
|
||||
|
||||
|
||||
.privacy-policy {
|
||||
align-self: flex-end;
|
||||
/* Align the "Политика конфиденциальности" link to the bottom */
|
||||
margin-top: auto;
|
||||
/* Ensure the link is pushed to the bottom */
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
#root:has(#mainpageheader) #footer {
|
||||
|
||||
@@ -10,7 +10,7 @@ $logo-size: 200px;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
h1 {
|
||||
font-family: Montserrat;
|
||||
font-family: 'Montserrat', sans-serif;
|
||||
font-size: 36px;
|
||||
font-weight: 600;
|
||||
margin-bottom: 1.5rem;
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
font-weight: 600;
|
||||
line-height: 44px;
|
||||
margin-top: 0;
|
||||
margin-bottom: 8px;
|
||||
margin-bottom: 16px;
|
||||
|
||||
@include mediaMax($tablet-max-width) {
|
||||
font-size: 24px;
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import { useState } from "react";
|
||||
import { useMedia } from "@/modules/media/hooks/useMedia";
|
||||
import { SkeletonGallery } from "@/shared/Components/SkeletonGallery/SkeletonGallery";
|
||||
|
||||
import "./PhotoGallery.style.scss"
|
||||
|
||||
@@ -14,16 +15,19 @@ const PhotoGallery = ({ images }: PhotoGalleryProps) => {
|
||||
|
||||
const filteredMedia = images
|
||||
? images.map((src, id) => ({ id, src }))
|
||||
: mediaData || []; // без фильтра
|
||||
: mediaData || [];
|
||||
|
||||
if (isLoading)
|
||||
if (isLoading) {
|
||||
return (
|
||||
<div className="mainContainer">
|
||||
<span className="loader"></span>
|
||||
<div>
|
||||
<SkeletonGallery />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
if (isError) return <div>Ошибка при загрузке медиа</div>;
|
||||
if (isError || !filteredMedia || filteredMedia.length === 0) {
|
||||
return <center>Ошибка при загрузке медиа</center>;
|
||||
}
|
||||
|
||||
return (
|
||||
<div className="mainContainer">
|
||||
@@ -39,12 +43,10 @@ const PhotoGallery = ({ images }: PhotoGalleryProps) => {
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
|
||||
<div className="btn">
|
||||
Загрузить ещё
|
||||
</div>
|
||||
<div className="btn">Загрузить ещё</div>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
export default PhotoGallery;
|
||||
@@ -10,6 +10,8 @@ import "swiper/css/pagination";
|
||||
import "./Slider.styles.scss";
|
||||
import { MediaItem } from "@/modules/media/api/get";
|
||||
|
||||
import { SkeletonSlider } from "@/shared/Components/SkeletonSlider/SkeletonSlider";
|
||||
|
||||
interface SliderProps {
|
||||
autoPlay?: boolean;
|
||||
autoPlayTime?: number;
|
||||
@@ -72,11 +74,13 @@ function Slider({
|
||||
|
||||
if (isLoading)
|
||||
return (
|
||||
<div className="mainContainer">
|
||||
<span className="loader"></span>
|
||||
<div >
|
||||
{[...Array(1)].map((_, index) => (
|
||||
<SkeletonSlider key={index} />
|
||||
))}
|
||||
</div>
|
||||
);
|
||||
if (isError) return <div>Ошибка при загрузке медиа</div>;
|
||||
if (isError) return <center>Ошибка при загрузке медиа</center>;
|
||||
|
||||
// Create context value
|
||||
const contextValue: SliderContextType = {
|
||||
|
||||
@@ -64,11 +64,10 @@ $btn-primary-bg: linear-gradient(
|
||||
text-align: left;
|
||||
font-size: 18px;
|
||||
color: #000;
|
||||
font-family: "Montserrat";
|
||||
font-family: 'Montserrat', sans-serif;
|
||||
font-style: normal;
|
||||
font-display: swap;
|
||||
src: url("../fonts/Montserrat/Montserrat-VariableFont_wght.ttf") format("truetype");
|
||||
}
|
||||
}
|
||||
|
||||
.bold {
|
||||
font-size: 22px;
|
||||
@@ -100,5 +99,5 @@ $btn-primary-bg: linear-gradient(
|
||||
font-size: 20px;
|
||||
font-weight: 600;
|
||||
text-align: center;
|
||||
font-family: "Montserrat";
|
||||
font-family: 'Montserrat', sans-serif;
|
||||
}
|
||||
Reference in new issue
Block a user