mirror of
https://git.rdcenter.ru/RDCenter/skb-kit.git
synced 2026-12-05 05:59:45 +00:00
сделано наша команда и галерея на странице О нас
This commit is contained in:
1 parent
808d97eb4b
commit
a86f51a8eb
16 files changed
+317
-8
No files matched your search
Generated
+5
-4
@@ -68,7 +68,7 @@
|
||||
"i": "^0.3.7",
|
||||
"npm": "^11.2.0",
|
||||
"typescript": "^5.5.3",
|
||||
"vite": "^5.3.1"
|
||||
"vite": "^5.4.16"
|
||||
}
|
||||
},
|
||||
"node_modules/@ampproject/remapping": {
|
||||
@@ -8199,10 +8199,11 @@
|
||||
"integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw=="
|
||||
},
|
||||
"node_modules/vite": {
|
||||
"version": "5.4.14",
|
||||
"resolved": "https://registry.npmjs.org/vite/-/vite-5.4.14.tgz",
|
||||
"integrity": "sha512-EK5cY7Q1D8JNhSaPKVK4pwBFvaTmZxEnoKXLG/U9gmdDcihQGNzFlgIvaxezFR4glP1LsuiedwMBqCXH3wZccA==",
|
||||
"version": "5.4.16",
|
||||
"resolved": "https://registry.npmjs.org/vite/-/vite-5.4.16.tgz",
|
||||
"integrity": "sha512-Y5gnfp4NemVfgOTDQAunSD4346fal44L9mszGGY/e+qxsRT5y1sMlS/8tiQ8AFAp+MFgYNSINdfEchJiPm41vQ==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"esbuild": "^0.21.3",
|
||||
"postcss": "^8.4.43",
|
||||
|
||||
+1
-1
@@ -70,6 +70,6 @@
|
||||
"i": "^0.3.7",
|
||||
"npm": "^11.2.0",
|
||||
"typescript": "^5.5.3",
|
||||
"vite": "^5.3.1"
|
||||
"vite": "^5.4.16"
|
||||
}
|
||||
}
|
||||
@@ -49,6 +49,7 @@ a {
|
||||
|
||||
.btn:hover {
|
||||
background-position: 100%;
|
||||
color: $btn-primary-text;
|
||||
}
|
||||
|
||||
.btn[disabled] {
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import { CategoryPage } from "@/widgets/CategoryPage/CategoryPage";
|
||||
|
||||
|
||||
export default function AboutUs() {
|
||||
return <CategoryPage category="aboutus" />;
|
||||
}
|
||||
@@ -5,6 +5,7 @@ import { RootContext } from "@/app/Layout/Root";
|
||||
import Partners from "@/widgets/Partners";
|
||||
import Gallery from "@/pages/MainPage/ui/components/Gallery";
|
||||
import ContactUs from "@/widgets/ContactUs";
|
||||
|
||||
import {
|
||||
LabsList,
|
||||
NewsList,
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import WPAPI from "wpapi";
|
||||
|
||||
export const wp = new WPAPI({
|
||||
endpoint: "https://test.skbkit.ru/wp-json/",
|
||||
endpoint: "http://skb-site.local/wp-json/",
|
||||
username: "admin",
|
||||
password: "admin",
|
||||
});
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
<svg width="256" height="320" viewBox="0 0 256 320" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<rect width="256" height="320" rx="8" fill="url(#paint0_linear_875_3132)"/>
|
||||
<path d="M48.5722 153L51.8722 157.68L55.1722 153H58.2122L53.5122 159.72L58.5922 167H55.5122L51.8722 161.9L48.2522 167H45.2522L50.3122 159.82L45.5722 153H48.5722ZM64.6744 167.14C63.5944 167.14 62.621 166.907 61.7544 166.44C60.8877 165.973 60.2077 165.327 59.7144 164.5C59.2344 163.66 58.9944 162.713 58.9944 161.66C58.9944 160.607 59.2344 159.667 59.7144 158.84C60.2077 158.013 60.8877 157.367 61.7544 156.9C62.621 156.433 63.5944 156.2 64.6744 156.2C65.7677 156.2 66.7477 156.433 67.6144 156.9C68.481 157.367 69.1544 158.013 69.6344 158.84C70.1277 159.667 70.3744 160.607 70.3744 161.66C70.3744 162.713 70.1277 163.66 69.6344 164.5C69.1544 165.327 68.481 165.973 67.6144 166.44C66.7477 166.907 65.7677 167.14 64.6744 167.14ZM64.6744 165C65.5944 165 66.3544 164.693 66.9544 164.08C67.5544 163.467 67.8544 162.66 67.8544 161.66C67.8544 160.66 67.5544 159.853 66.9544 159.24C66.3544 158.627 65.5944 158.32 64.6744 158.32C63.7544 158.32 62.9944 158.627 62.3944 159.24C61.8077 159.853 61.5144 160.66 61.5144 161.66C61.5144 162.66 61.8077 163.467 62.3944 164.08C62.9944 164.693 63.7544 165 64.6744 165ZM81.9041 156.32V167H79.4041V162.86C78.3774 163.353 77.3041 163.6 76.1841 163.6C74.8107 163.6 73.7574 163.287 73.0241 162.66C72.2907 162.02 71.9241 161.047 71.9241 159.74V156.32H74.4241V159.58C74.4241 160.26 74.6241 160.767 75.0241 161.1C75.4241 161.433 75.9907 161.6 76.7241 161.6C77.6574 161.6 78.5507 161.4 79.4041 161V156.32H81.9041ZM95.3459 156.32L90.3459 167.86C89.8793 169.02 89.3126 169.833 88.6459 170.3C87.9793 170.78 87.1726 171.02 86.2259 171.02C85.6926 171.02 85.1659 170.933 84.6459 170.76C84.1259 170.587 83.6993 170.347 83.3659 170.04L84.3659 168.2C84.6059 168.427 84.8859 168.607 85.2059 168.74C85.5393 168.873 85.8726 168.94 86.2059 168.94C86.6459 168.94 87.0059 168.827 87.2859 168.6C87.5793 168.373 87.8459 167.993 88.0859 167.46L88.2659 167.04L83.6059 156.32H86.2059L89.5659 164.22L92.9459 156.32H95.3459ZM110.35 161.44C111.67 161.84 112.33 162.693 112.33 164C112.33 164.96 111.97 165.7 111.25 166.22C110.53 166.74 109.463 167 108.05 167H102.61V156.32H107.83C109.136 156.32 110.156 156.56 110.89 157.04C111.623 157.52 111.99 158.2 111.99 159.08C111.99 159.627 111.843 160.1 111.55 160.5C111.27 160.9 110.87 161.213 110.35 161.44ZM104.99 160.78H107.61C108.903 160.78 109.55 160.333 109.55 159.44C109.55 158.573 108.903 158.14 107.61 158.14H104.99V160.78ZM107.85 165.18C109.223 165.18 109.91 164.733 109.91 163.84C109.91 163.373 109.75 163.027 109.43 162.8C109.11 162.56 108.61 162.44 107.93 162.44H104.99V165.18H107.85ZM124.96 162.72H123.02V167H120.52V156.32H123.02V160.64H125.02L128.18 156.32H130.86L126.98 161.46L131.12 167H128.18L124.96 162.72ZM137.292 167.14C136.212 167.14 135.238 166.907 134.372 166.44C133.505 165.973 132.825 165.327 132.332 164.5C131.852 163.66 131.612 162.713 131.612 161.66C131.612 160.607 131.852 159.667 132.332 158.84C132.825 158.013 133.505 157.367 134.372 156.9C135.238 156.433 136.212 156.2 137.292 156.2C138.385 156.2 139.365 156.433 140.232 156.9C141.098 157.367 141.772 158.013 142.252 158.84C142.745 159.667 142.992 160.607 142.992 161.66C142.992 162.713 142.745 163.66 142.252 164.5C141.772 165.327 141.098 165.973 140.232 166.44C139.365 166.907 138.385 167.14 137.292 167.14ZM137.292 165C138.212 165 138.972 164.693 139.572 164.08C140.172 163.467 140.472 162.66 140.472 161.66C140.472 160.66 140.172 159.853 139.572 159.24C138.972 158.627 138.212 158.32 137.292 158.32C136.372 158.32 135.612 158.627 135.012 159.24C134.425 159.853 134.132 160.66 134.132 161.66C134.132 162.66 134.425 163.467 135.012 164.08C135.612 164.693 136.372 165 137.292 165ZM155.961 167V159.92L152.361 165.88H151.281L147.741 159.9V167H145.461V156.32H148.081L151.881 163L155.861 156.32H158.201L158.221 167H155.961ZM165.555 156.2C167.128 156.2 168.328 156.58 169.155 157.34C169.995 158.087 170.415 159.22 170.415 160.74V167H168.055V165.7C167.748 166.167 167.308 166.527 166.735 166.78C166.175 167.02 165.495 167.14 164.695 167.14C163.895 167.14 163.195 167.007 162.595 166.74C161.995 166.46 161.528 166.08 161.195 165.6C160.875 165.107 160.715 164.553 160.715 163.94C160.715 162.98 161.068 162.213 161.775 161.64C162.495 161.053 163.621 160.76 165.155 160.76H167.915V160.6C167.915 159.853 167.688 159.28 167.235 158.88C166.795 158.48 166.135 158.28 165.255 158.28C164.655 158.28 164.061 158.373 163.475 158.56C162.901 158.747 162.415 159.007 162.015 159.34L161.035 157.52C161.595 157.093 162.268 156.767 163.055 156.54C163.841 156.313 164.675 156.2 165.555 156.2ZM165.215 165.32C165.841 165.32 166.395 165.18 166.875 164.9C167.368 164.607 167.715 164.193 167.915 163.66V162.42H165.335C163.895 162.42 163.175 162.893 163.175 163.84C163.175 164.293 163.355 164.653 163.715 164.92C164.075 165.187 164.575 165.32 165.215 165.32ZM173.508 156.32H176.008V160.66H181.388V156.32H183.888V167H181.388V162.78H176.008V167H173.508V156.32ZM198.639 164.88V169.38H196.299V167H188.059V169.38H185.739V164.88H186.239C186.919 164.853 187.379 164.42 187.619 163.58C187.872 162.727 188.039 161.527Line truncated
|
||||
<defs>
|
||||
<linearGradient id="paint0_linear_875_3132" x1="0" y1="0" x2="269.98" y2="12.2648" gradientUnits="userSpaceOnUse">
|
||||
<stop stop-color="#0867F4"/>
|
||||
<stop offset="1" stop-color="#072AC8"/>
|
||||
</linearGradient>
|
||||
</defs>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 6.0 KiB |
@@ -19,4 +19,6 @@ export { default as bg_news_block } from './backround/bg_news_block.svg';
|
||||
export { default as bg_projects_block } from './backround/bg_projects_block.svg';
|
||||
|
||||
export { default as scb } from './scb.svg';
|
||||
export { default as scb_blue } from './sсb_blue.svg';
|
||||
export { default as scb_blue } from './sсb_blue.svg';
|
||||
|
||||
export { default as photo} from './photo.jpg';
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 122 KiB |
@@ -1,5 +1,8 @@
|
||||
import { usePosts } from "@/modules/posts/hooks/usePosts";
|
||||
import { PagePost } from "@/widgets/PostPage";
|
||||
import Team from "../Team";
|
||||
import PhotoGallery from "../PhotoGallery";
|
||||
|
||||
|
||||
interface CategoryPageProps {
|
||||
category: string;
|
||||
@@ -23,9 +26,15 @@ export function CategoryPage({ category }: CategoryPageProps) {
|
||||
<>
|
||||
{categoryPosts.map((post) => (
|
||||
<PagePost key={post.id} post={post}>
|
||||
<div className="btn">Показать еще</div>
|
||||
{/* <div className="btn">Показать еще</div> */}
|
||||
</PagePost>
|
||||
))}
|
||||
{category === "aboutus" && <>
|
||||
<Team />
|
||||
<PhotoGallery />
|
||||
</>
|
||||
}
|
||||
|
||||
</>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,92 @@
|
||||
.mainContainer {
|
||||
margin: 0 10%;
|
||||
text-align: left;
|
||||
display: block;
|
||||
|
||||
@include mediaMax($mobile-xs-width) {
|
||||
margin: 0 5%;
|
||||
}
|
||||
}
|
||||
|
||||
.title {
|
||||
font-size: 36px;
|
||||
font-weight: 600;
|
||||
line-height: 44px;
|
||||
margin-top: 0;
|
||||
margin-bottom: 8px;
|
||||
|
||||
@include mediaMax($tablet-max-width) {
|
||||
font-size: 24px;
|
||||
}
|
||||
}
|
||||
|
||||
.btn {
|
||||
margin: 32px auto 0;
|
||||
display: block;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.images {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(6, 1fr);
|
||||
gap: 32px;
|
||||
|
||||
@include mediaMax($tablet-max-width) {
|
||||
grid-template-columns: repeat(2, 1fr);
|
||||
}
|
||||
|
||||
@include mediaMax($mobile-xs-width) {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
}
|
||||
|
||||
.image-container {
|
||||
height: 352px;
|
||||
overflow: hidden;
|
||||
border-radius: 8px;
|
||||
|
||||
img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
pointer-events: none;
|
||||
}
|
||||
}
|
||||
|
||||
$tablet-min-width: 768px;
|
||||
|
||||
@for $i from 0 through 100 {
|
||||
@include mediaMin($tablet-min-width) {
|
||||
@if $i % 2==0 {
|
||||
|
||||
// Первый случай: широкая слева
|
||||
.image-container:nth-child(5n + #{1 + $i * 5}) {
|
||||
grid-column: span 4;
|
||||
}
|
||||
|
||||
.image-container:nth-child(5n + #{2 + $i * 5}) {
|
||||
grid-column: span 2;
|
||||
}
|
||||
}
|
||||
|
||||
@else {
|
||||
|
||||
// Второй случай: широкая справа
|
||||
.image-container:nth-child(5n + #{2 + $i * 5}) {
|
||||
grid-column: span 4;
|
||||
}
|
||||
|
||||
.image-container:nth-child(5n + #{1 + $i * 5}) {
|
||||
grid-column: span 2;
|
||||
}
|
||||
}
|
||||
|
||||
// чётная строка
|
||||
.image-container:nth-child(5n + #{3 + $i * 5}),
|
||||
.image-container:nth-child(5n + #{4 + $i * 5}),
|
||||
.image-container:nth-child(5n + #{5 + $i * 5}) {
|
||||
grid-column: span 2;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,50 @@
|
||||
import { useEffect, useState } from "react";
|
||||
import { useMedia } from "@/modules/media/hooks/useMedia";
|
||||
|
||||
import "./PhotoGallery.style.scss"
|
||||
|
||||
interface PhotoGalleryProps {
|
||||
images?: string[];
|
||||
category?: string;
|
||||
}
|
||||
|
||||
const PhotoGallery = ({ images, category = "галерея" }: PhotoGalleryProps) => {
|
||||
const { data: mediaData, isLoading, isError } = useMedia();
|
||||
const [visibleCount, setVisibleCount] = useState(10);
|
||||
|
||||
const filteredMedia = images
|
||||
? images.map((src, id) => ({ id, src }))
|
||||
: mediaData || []; // без фильтра
|
||||
|
||||
if (isLoading)
|
||||
return (
|
||||
<div className="mainContainer">
|
||||
<span className="loader"></span>
|
||||
</div>
|
||||
);
|
||||
|
||||
if (isError) return <div>Ошибка при загрузке медиа</div>;
|
||||
|
||||
return (
|
||||
<div className="mainContainer">
|
||||
<h1 className="title">Фотогалерея</h1>
|
||||
<div className="images">
|
||||
{filteredMedia.slice(0, visibleCount).map((media) => (
|
||||
<div key={media.id} className="image-container">
|
||||
<img
|
||||
src={media.src}
|
||||
alt={`slide-${media.id}`}
|
||||
className="slide-image"
|
||||
/>
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
|
||||
<div className="btn">
|
||||
Показать еще
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export default PhotoGallery;
|
||||
@@ -0,0 +1 @@
|
||||
export { default } from './PhotoGallery';
|
||||
@@ -0,0 +1,104 @@
|
||||
$btn-primary-text: white;
|
||||
$btn-primary-bg: linear-gradient(
|
||||
93.25deg,
|
||||
#4942e4 0%,
|
||||
#11009e 50%,
|
||||
#4942e4 100%
|
||||
);
|
||||
|
||||
.mainContainer {
|
||||
margin: 0 10%;
|
||||
text-align: left;
|
||||
display: block;
|
||||
|
||||
@include mediaMax($mobile-xs-width) {
|
||||
margin: 0 5%;
|
||||
}
|
||||
}
|
||||
|
||||
.title {
|
||||
font-size: 36px;
|
||||
font-weight: 600;
|
||||
line-height: 44px;
|
||||
margin-top: 0;
|
||||
margin-bottom: 8px;
|
||||
|
||||
@include mediaMax($tablet-max-width) {
|
||||
font-size: 24px;
|
||||
}
|
||||
}
|
||||
|
||||
.grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(4, 1fr);
|
||||
gap: 32px;
|
||||
|
||||
@include mediaMax($tablet-max-width) {
|
||||
grid-template-columns: repeat(2, 1fr);
|
||||
}
|
||||
|
||||
@include mediaMax($mobile-xs-width) {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
}
|
||||
|
||||
.card {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: space-between;
|
||||
align-items: flex-start;
|
||||
text-align: left;
|
||||
border: 0;
|
||||
text-decoration: none;
|
||||
|
||||
img {
|
||||
width: 100%;
|
||||
height: auto;
|
||||
border-radius: 8px;
|
||||
object-fit: cover;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.caption {
|
||||
padding-top: 10px;
|
||||
text-align: left;
|
||||
font-size: 18px;
|
||||
color: #000;
|
||||
font-family: "Montserrat";
|
||||
font-style: normal;
|
||||
font-display: swap;
|
||||
src: url("../fonts/Montserrat/Montserrat-VariableFont_wght.ttf") format("truetype");
|
||||
}
|
||||
|
||||
.bold {
|
||||
font-size: 22px;
|
||||
font-weight: 500;
|
||||
}
|
||||
}
|
||||
|
||||
.joinContent {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background: $btn-primary-bg;
|
||||
border-radius: 8px;
|
||||
transition: 0.5s;background: $btn-primary-bg;
|
||||
background-size: 200% 100%;
|
||||
background-position: 0% 0%;
|
||||
cursor: pointer;
|
||||
|
||||
&:hover {
|
||||
background-size: 200%;
|
||||
background-position: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
.joinText {
|
||||
color: white;
|
||||
font-size: 20px;
|
||||
font-weight: 600;
|
||||
text-align: center;
|
||||
font-family: "Montserrat";
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
import "./Team.style.scss";
|
||||
import photo from "@/shared/assets/images/photo.png";
|
||||
import { HashLink } from "react-router-hash-link";
|
||||
|
||||
const Team = () => {
|
||||
const mockTeam = Array.from({ length: 7 }); // 7 обычных участников
|
||||
|
||||
return (
|
||||
<div className="mainContainer">
|
||||
<h2 className="title">Наша команда</h2>
|
||||
<div className="grid">
|
||||
{mockTeam.map((_, index) => (
|
||||
<div key={index} className="card">
|
||||
<img src={photo} alt={`Член команды ${index + 1}`} />
|
||||
<p className="caption">
|
||||
<span className="bold">Владимир Кутковой</span>
|
||||
<br />
|
||||
руководитель СКБ «КИТ»
|
||||
</p>
|
||||
</div>
|
||||
))}
|
||||
<HashLink smooth to="/contact" className="card">
|
||||
<div className="joinContent">
|
||||
<span className="joinText">Хочу в команду</span>
|
||||
</div>
|
||||
<p className="caption">
|
||||
<span className="bold"></span>
|
||||
<br /><br />
|
||||
</p>
|
||||
</HashLink>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export default Team;
|
||||
@@ -0,0 +1 @@
|
||||
export { default } from './Team';
|
||||
Reference in new issue
Block a user