mirror of
https://git.rdcenter.ru/RDCenter/skb-kit.git
synced 2026-12-05 05:09:46 +00:00
перенес структуру Севы со своими правками
This commit is contained in:
1 parent
3a1cac0dfe
commit
808d97eb4b
331 files changed
+12260
-19950
No files matched your search
@@ -0,0 +1,5 @@
|
||||
import { MainPageAsync } from './ui/MainPage/MainPage.async';
|
||||
|
||||
export {
|
||||
MainPageAsync as MainPage,
|
||||
};
|
||||
@@ -0,0 +1,3 @@
|
||||
import { lazy } from "react";
|
||||
|
||||
export const MainPageAsync = lazy(() => import("./MainPage"));
|
||||
@@ -0,0 +1,236 @@
|
||||
.mainContainer {
|
||||
margin: 30px 10% 0 10%;
|
||||
@include mediaMax($mobile-xs-width) {
|
||||
margin: 30px 5% 0 5%;
|
||||
}
|
||||
}
|
||||
|
||||
$news-card-gap: 1em;
|
||||
|
||||
body {
|
||||
overflow-x: hidden; // Скрываем горизонтальный скролл
|
||||
}
|
||||
|
||||
#mainpageheader {
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
min-height: 100vh;
|
||||
padding: 0 10%;
|
||||
margin: 0;
|
||||
margin-bottom: 20px;
|
||||
color: $text-secondary;
|
||||
background-image: url("/src/shared/assets/images/art.bmp");
|
||||
background-color: $bg-image;
|
||||
background-blend-mode: multiply;
|
||||
background-position: center;
|
||||
background-size: cover;
|
||||
|
||||
.container {
|
||||
position: absolute;
|
||||
top: 40%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
||||
@media (max-width: 768px) {
|
||||
top: 30%;
|
||||
padding: $navbar-padding-tb 5%;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 52px;
|
||||
font-weight: 600;
|
||||
line-height: 63px;
|
||||
margin: 0;
|
||||
margin-bottom: 24px;
|
||||
|
||||
@media (max-width: 768px) {
|
||||
font-size: 32px;
|
||||
line-height: 40px;
|
||||
}
|
||||
}
|
||||
|
||||
h2 {
|
||||
font-size: 24px;
|
||||
font-weight: 400;
|
||||
line-height: 36px;
|
||||
|
||||
@media (max-width: 768px) {
|
||||
font-size: 24px;
|
||||
line-height: 28px;
|
||||
}
|
||||
}
|
||||
|
||||
.btn {
|
||||
margin: 0;
|
||||
margin-top: 24px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.block {
|
||||
background: transparent !important;
|
||||
|
||||
h1 {
|
||||
font-family: Montserrat;
|
||||
font-size: 36px;
|
||||
font-weight: 600;
|
||||
|
||||
margin-top: 1.5rem;
|
||||
margin-bottom: 1.5rem;
|
||||
|
||||
@media (max-width: 768px) {
|
||||
font-size: 24px;
|
||||
}
|
||||
}
|
||||
|
||||
.heading {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
|
||||
a {
|
||||
font-size: 20px;
|
||||
font-weight: 500;
|
||||
text-align: right;
|
||||
color: $text-primary;
|
||||
|
||||
@media (max-width: 768px) {
|
||||
font-size: 16px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#news-list .row {
|
||||
grid-template-columns: repeat(4, calc((100% - $news-card-gap * 3) / 4));
|
||||
justify-content: space-between;
|
||||
gap: $news-card-gap;
|
||||
}
|
||||
}
|
||||
|
||||
.block:not(:last-child) {
|
||||
margin-bottom: 32px;
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
#mainpageheader {
|
||||
padding: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.block:not(:last-child) {
|
||||
margin-bottom: 32px;
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
#mainpageheader {
|
||||
padding: 0;
|
||||
}
|
||||
}
|
||||
|
||||
#news-list {
|
||||
position: relative;
|
||||
|
||||
&::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
top: 0%;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 364px;
|
||||
background-image: url("/src/shared/assets/images/backround/bg_news_block.svg");
|
||||
background-repeat: no-repeat;
|
||||
background-position: left center;
|
||||
background-size: contain;
|
||||
z-index: -1;
|
||||
transform: translateX(-12.6%);
|
||||
|
||||
@media (max-width: 768px) {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
.row .card {
|
||||
width: calc(25% - $news-card-gap); // 4 карточки в ряд
|
||||
aspect-ratio: 1 / 0.8973; // Карточка всегда квадратная
|
||||
|
||||
@media (max-width: 768px) {
|
||||
width: 100%; // 1 карточка в ряд на мобильных
|
||||
margin-bottom: 1em;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.project-list {
|
||||
position: relative;
|
||||
|
||||
&::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
top: 35%;
|
||||
left: 0;
|
||||
width: 100%; // Увеличиваем ширину на 10%, чтобы занять отступ
|
||||
height: 465px;
|
||||
background-image: url("/src/shared/assets/images/backround/bg_projects_block.svg");
|
||||
background-repeat: no-repeat;
|
||||
background-position: right center;
|
||||
background-size: contain; // Или cover, если нужно заполнить область
|
||||
|
||||
z-index: -1;
|
||||
transform: translateX(11.3%); // Смещаем влево, компенсируя padding
|
||||
|
||||
@media (max-width: 768px) {
|
||||
display: none; // Скрываем картинку на мобильных
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.row.lab-list {
|
||||
position: relative;
|
||||
|
||||
&::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
top: 10%;
|
||||
left: 0;
|
||||
width: 100%; // Увеличиваем ширину на 10%, чтобы занять отступ
|
||||
height: 436px;
|
||||
background-image: url("/src/shared/assets/images/backround/bg_labs_block.svg");
|
||||
background-repeat: no-repeat;
|
||||
background-position: left center;
|
||||
background-size: contain; // Или cover, если нужно заполнить область
|
||||
|
||||
z-index: -1;
|
||||
transform: translateX(-11.6%); // Смещаем влево, компенсируя padding
|
||||
|
||||
@media (max-width: 768px) {
|
||||
display: none; // Скрываем картинку на мобильных
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#gallery {
|
||||
margin-left: 0;
|
||||
margin-right: 0;
|
||||
|
||||
position: relative;
|
||||
|
||||
&::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
top: 35%;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 307px;
|
||||
background-image: url("/src/shared/assets/images/backround/bg_gallery_block.svg");
|
||||
background-repeat: no-repeat;
|
||||
background-position: right center;
|
||||
background-size: contain;
|
||||
|
||||
z-index: -1;
|
||||
transform: translateX(12.5%);
|
||||
|
||||
@media (max-width: 768px) {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,56 @@
|
||||
import styles from "./MainPage.module.scss";
|
||||
import { HashLink } from "react-router-hash-link";
|
||||
import { useContext, useEffect } from "react";
|
||||
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,
|
||||
ProjectsList,
|
||||
} from "@/pages/CardListPages/CardListPages";
|
||||
|
||||
const MainPage = () => {
|
||||
const { setRef } = useContext(RootContext);
|
||||
|
||||
useEffect(() => {
|
||||
const navbar = document.getElementById("navbar");
|
||||
if (navbar) {
|
||||
navbar.classList.add("transparent");
|
||||
}
|
||||
|
||||
return () => {
|
||||
if (navbar) {
|
||||
navbar.classList.remove("transparent");
|
||||
}
|
||||
};
|
||||
}, []);
|
||||
return (
|
||||
<div>
|
||||
<div id={styles.mainpageheader} ref={(element) => setRef(element)}>
|
||||
<section className={styles.container}>
|
||||
<h1>Думай иначе, будь креативным!</h1>
|
||||
<h2>
|
||||
Студенческое конструкторское бюро
|
||||
<br />
|
||||
"Компьютерное инновационное творчество"
|
||||
</h2>
|
||||
<HashLink smooth to="#contact-us" className={"btn " + styles.btn}>
|
||||
Связаться с нами
|
||||
</HashLink>
|
||||
</section>
|
||||
</div>
|
||||
<NewsList />
|
||||
<ProjectsList />
|
||||
<LabsList />
|
||||
<div className={styles.mainContainer}>
|
||||
<Partners />
|
||||
<Gallery />
|
||||
<ContactUs />
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export default MainPage;
|
||||
@@ -0,0 +1,46 @@
|
||||
import labMock from "@/shared/assets/images/labMock.jpeg";
|
||||
|
||||
export const labItems = {
|
||||
cyber: {
|
||||
name: "Лаборатория кибернетики",
|
||||
previewText:
|
||||
"Управление робототехническими системами, создание аппаратных и программных продуктов, а также проектирование программных систем.",
|
||||
link: "/labs",
|
||||
preview: labMock,
|
||||
},
|
||||
cv: {
|
||||
name: "Лаборатория компьютерного зрения",
|
||||
previewText:
|
||||
"Работа с методами и технологиями сегментации изображений, ИИ и нейронными сетями.",
|
||||
link: "/labs",
|
||||
preview: labMock,
|
||||
},
|
||||
st: {
|
||||
name: "Лаборатория SmartTech",
|
||||
previewText:
|
||||
"Проектирование систем в концепции “Интернета вещей” и технологии “Умного дома”.",
|
||||
link: "/labs",
|
||||
preview: labMock,
|
||||
},
|
||||
vr: {
|
||||
name: "Лаборатория VR и AR",
|
||||
previewText:
|
||||
"Разработка приложений для виртуальной и дополненной реальности, 3D-моделирование.",
|
||||
link: "/labs",
|
||||
preview: labMock,
|
||||
},
|
||||
mobile: {
|
||||
name: "Лаборатория мобильной разработки",
|
||||
previewText:
|
||||
"Разработка приложений для портативных устройств, создание дизайна и проектов мобильных приложений.",
|
||||
link: "/labs",
|
||||
preview: labMock,
|
||||
},
|
||||
print: {
|
||||
name: "Лаборатория 3D-печати и прототипирования",
|
||||
previewText:
|
||||
"Проектирование 3D-модели, работа с 3D-принтером и создание качественных трёхмерных макетов.",
|
||||
link: "/labs",
|
||||
preview: labMock,
|
||||
},
|
||||
};
|
||||
@@ -0,0 +1,20 @@
|
||||
#gallery {
|
||||
margin-left: 0;
|
||||
margin-right: 0;
|
||||
|
||||
h1 {
|
||||
width: 80%;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
|
||||
font-size: 28px;
|
||||
font-weight: 400;
|
||||
line-height: 35px;
|
||||
letter-spacing: 0em;
|
||||
text-align: center;
|
||||
|
||||
@media (max-width: 768px) {
|
||||
font-size: 22px;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
import Slider from "@/widgets/Slider/Slider";
|
||||
import "./Gallery.styles.scss";
|
||||
|
||||
function Gallery() {
|
||||
return (
|
||||
<div id="gallery">
|
||||
<br />
|
||||
<br />
|
||||
<h1>
|
||||
СКБ «КИТ» - реальные технологические
|
||||
<br />
|
||||
проекты под руководством наставников
|
||||
<br />
|
||||
из университета и бизнеса.
|
||||
</h1>
|
||||
<Slider />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
export default Gallery;
|
||||
@@ -0,0 +1 @@
|
||||
export { default } from './Gallery';
|
||||
Reference in new issue
Block a user