Merge pull request #17 from ifraimka1/feature/page/aboutus

Feature/page/aboutus
This commit is contained in:
Ifraim Solomonov authored and GitHub committed 2024-05-08 16:37:21 +03:00
commit 4d092b3a0e
11 files changed
+105 -11

No files matched your search

+24 -1
View File
@@ -15,7 +15,9 @@ body {
-moz-osx-font-smoothing: grayscale;
}
body, input, textarea {
body,
input,
textarea {
font-family: Montserrat;
}
@@ -32,6 +34,7 @@ a {
display: block;
width: fit-content;
padding: 16px 24px;
margin: 0 auto;
border-radius: 8px;
font-size: 20px;
@@ -47,3 +50,23 @@ a {
.btn:hover {
background-position: 100%;
}
.list {
margin-top: 0.5em;
}
.image {
border-radius: 8px;
}
p {
font-size: 20px;
font-weight: 400;
line-height: 30px;
}
header h1 {
font-size: 36px;
font-weight: 600;
line-height: 44px;
}
+5 -4
View File
@@ -7,7 +7,7 @@
height: 100px;
padding: 0 10%;
margin: 0;
margin: 2em 0 0;
background: $bg-footer;
.logo-container {
@@ -27,11 +27,12 @@
max-height: 70%;
height: 70%;
color: $text-secondary;
font-size: 16px;
font-weight: 400;
p {
color: $text-secondary;
font-size: 16px;
font-weight: 400;
line-height: 16px;
margin: 0;
}
}
+13
View File
@@ -0,0 +1,13 @@
import MediaContainer from "../MediaContainer";
import "./MediaBlock.styles.scss";
function MediaBlock({ images }) {
return (
<div className="media-block">
{ images.map((item, index) => <MediaContainer src={item} key={index} />) }
</div>
);
}
export default MediaBlock;
@@ -0,0 +1,21 @@
$media-gap: 1em;
$row-limit: 2;
.media-block {
display: flex;
flex-wrap: wrap;
gap: $media-gap;
margin: 2em auto;
.media-container {
flex: 1 1 calc((100% / $row-limit) - ($media-gap * $row-limit));
.image {
display: block;
box-sizing: border-box;
object-fit: contain;
max-width: 100%;
max-height: 100%;
}
}
}
+1
View File
@@ -0,0 +1 @@
export { default } from "./MediaBlock";
@@ -0,0 +1,9 @@
function MediaContainer({ src, key }) {
return (
<div className="media-container">
<img className="image" alt="" src={src} key={key} />
</div>
);
}
export default MediaContainer;
+1
View File
@@ -0,0 +1 @@
export { default } from './MediaContainer';
+19 -2
View File
@@ -1,13 +1,30 @@
import { HashLink } from "react-router-hash-link";
import { PageContent, PageHeader } from "../components";
import MediaBlock from "../../components/MediaBlock";
import { car } from "../../assets/images";
function AboutUs() {
return (
<>
<PageHeader>
<h1>About us</h1>
<h1>О нас</h1>
</PageHeader>
<PageContent>
<p>Студенческое конструкторское бюро «КИТ» создано на базе Института компьютерных технологий и информационной безопасности с целью развития технического творчества студентов. В СКБ студенты работают в рамках занятий проектной деятельности и создают собственные технологические проекты. Инициативу студентов поддерживают аспиранты и преподаватели ИКТИБ, а также представители бизнеса — партнёры СКБ.</p>
<p>СКБ «КИТ» предоставляет возможности:
<ul className="list">
<li>выполнять технологические задачи реального рынка</li>
<li>познакомиться с будущими работодателями</li>
<li>найти команду единомышленников</li>
<li>прокачать свои навыки в разработке и управлении проектами</li>
<li>получить доступ к современному оборудованию</li>
<li>участвовать в форумах, конкурсах и путешествовать по всему миру!</li>
</ul>
</p>
<MediaBlock images={[car, car, car]}/>
<div className="btn">Показать еще</div>
</PageContent>
</>
);
+5 -1
View File
@@ -8,6 +8,7 @@
height: 100vh;
padding: 0 10%;
margin: 0;
color: $text-secondary;
background-image: url(/assets/images/car.jpeg);
@@ -22,7 +23,6 @@
display: flex;
flex-direction: column;
h1 {
font-size: 60px;
font-weight: 600;
@@ -35,6 +35,10 @@
font-weight: 400;
line-height: 36px;
}
.btn {
margin: 0;
}
}
}
}
@@ -17,7 +17,6 @@
width: 100%;
height: 100%;
object-fit: cover;
border-radius: 8px;
}
}
}
+7 -2
View File
@@ -1,13 +1,18 @@
@import "../../assets/styles/theme.scss";
#page {
margin-top: calc($navbar-height + 3 * $navbar-padding-tb);
margin-top: calc($navbar-height + 5 * $navbar-padding-tb);
.header, .content {
margin-left: 10%;
margin-right: 10%;
}
.content {
background: $bg-primary;
.block {
margin: 0 10% 32px;
margin-bottom: 32px;
h1 {
font-family: Montserrat;