Раздел проектов

This commit is contained in:
ifraimka1 committed 2024-02-14 12:16:03 +03:00
1 parent 72f6ce54b0
commit 8efcd44d59
6 files changed
+71 -212

No files matched your search

+2 -6
View File
@@ -4,16 +4,12 @@ import './News.scss';
function News() {
return (
<div className="news">
<div className="block news">
<div className="heading">
<h1>Новости</h1>
<a href=''>Все проекты</a>
<a href=''>Все новости</a>
</div>
<div className="row">
<div className="el">
<div className="pic"></div>
Какая-то новость
</div>
<div className="el">
<div className="pic"></div>
Еще одна новость
+14 -14
View File
@@ -1,27 +1,27 @@
import { Link } from 'react-router-dom';
//import { Link } from 'react-router-dom';
import './Projects.scss';
function Projects() {
return (
<div className="news">
<div className="block projects">
<div className="heading">
<h1>Наши проекты</h1>
<a href=''>Все проекты</a>
</div>
<div className="row">
<div className="el">
<div className="pic"></div>
</div>
<div className="el">
<div className="pic"></div>
</div>
<div className="el">
<div className="pic"></div>
</div>
<div className="el">
<div className="pic"></div>
</div>
<a className="big el btn" href="">
<div className="text">Перейти&rarr;</div>
</a>
<a className="el btn" href="">
<div className="text">Перейти&rarr;</div>
</a>
<a className="el btn" href="">
<div className="text">Перейти&rarr;</div>
</a>
<a className="el btn" href="">
<div className="text">Перейти&rarr;</div>
</a>
</div>
</div>
);
+33
View File
@@ -0,0 +1,33 @@
.projects {
margin-bottom: 1em;
.row {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
row-gap: 32px;
.el:first-of-type {
width: 100%;
aspect-ratio: 3;
}
.el {
position: relative;
width: calc(100%/3 - 64px);
aspect-ratio: 3/2;
background-color: #D9D9D9;
.text {
position: absolute;
right: 24px;
bottom: 16px;
font-size: 20px;
font-weight: 500;
line-height: 24px;
color: #767676;
}
}
}
}
-25
View File
@@ -1,25 +0,0 @@
function Contact() {
return (
<>
<header className='header'>
<h1>Студенческое конструкторское бюро<br />
"Компьютерное инновационное творчество"</h1>
</header>
<div className="content">
<div className="contact">
<p>Контактное лицо: Кутковой Владимир Сергеевич</p>
</div>
<form className="form">
<label htmlFor="topic-input">Тема</label>
<input type="text" name="topic" id="topic-input" />
<label htmlFor="email">Почта</label>
<input type="text" name="email-input" id="email-input" />
<label htmlFor="message">Сообщение</label>
<input type="text" name="message-input" id="message-input" />
</form>
</div>
</>
);
}
export default Contact;
+22 -18
View File
@@ -41,25 +41,28 @@ $btn-dark: #585858;
margin: 0 auto;
background: $secondary-bg;
.heading {
display: flex;
justify-content: space-between;
align-items: center;
.block {
margin-bottom: 32px;
h1 {
font-family: Montserrat;
font-size: 36px;
font-weight: 600;
line-height: 44px;
}
a {
font-size: 24px;
font-weight: 400;
line-height: 29px;
letter-spacing: 0em;
text-align: right;
color: black;
.heading {
display: flex;
justify-content: space-between;
align-items: center;
h1 {
font-family: Montserrat;
font-size: 36px;
font-weight: 600;
line-height: 44px;
}
a {
font-size: 24px;
font-weight: 400;
line-height: 29px;
text-align: right;
color: black;
}
}
}
}
@@ -74,6 +77,7 @@ $btn-dark: #585858;
font-size: 20px;
font-weight: 600;
line-height: 24px;
color: white;
background-color: $btn-dark;
}