mirror of
https://git.rdcenter.ru/RDCenter/skb-kit.git
synced 2026-12-05 05:39:45 +00:00
Главная страница
This commit is contained in:
1 parent
2e51118fa5
commit
f9764adef7
8 files changed
+174
-17
No files matched your search
@@ -0,0 +1,34 @@
|
|||||||
|
import { Link } from 'react-router-dom';
|
||||||
|
|
||||||
|
import './News.scss';
|
||||||
|
|
||||||
|
function News() {
|
||||||
|
return (
|
||||||
|
<div className="news">
|
||||||
|
<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>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
export default News;
|
||||||
@@ -0,0 +1,20 @@
|
|||||||
|
.news {
|
||||||
|
.row {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
gap: 32px;
|
||||||
|
|
||||||
|
.el {
|
||||||
|
width: 350px;
|
||||||
|
margin-bottom: 1em;
|
||||||
|
|
||||||
|
.pic {
|
||||||
|
width: 100%;
|
||||||
|
aspect-ratio: 1;
|
||||||
|
border-radius: 8px;
|
||||||
|
margin-bottom: .5em;
|
||||||
|
background-color: #D9D9D9;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,30 @@
|
|||||||
|
import { Link } from 'react-router-dom';
|
||||||
|
|
||||||
|
import './Projects.scss';
|
||||||
|
|
||||||
|
function Projects() {
|
||||||
|
return (
|
||||||
|
<div className="news">
|
||||||
|
<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>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
export default Projects;
|
||||||
Whitespace-only changes.
@@ -5,7 +5,8 @@ $primary-text-color: white;
|
|||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0;
|
top: 0;
|
||||||
width: 80%;
|
width: 80%;
|
||||||
max-height: 60px;
|
height: 80px;
|
||||||
|
max-height: 80px;
|
||||||
padding: 1em 10%;
|
padding: 1em 10%;
|
||||||
background: $primary-bg-color;
|
background: $primary-bg-color;
|
||||||
|
|
||||||
@@ -19,6 +20,7 @@ $primary-text-color: white;
|
|||||||
|
|
||||||
.logo {
|
.logo {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -26,8 +28,12 @@ $primary-text-color: white;
|
|||||||
display: flex;
|
display: flex;
|
||||||
|
|
||||||
a {
|
a {
|
||||||
|
font-size: 16px;
|
||||||
|
font-weight: 500;
|
||||||
|
line-height: 20px;
|
||||||
|
letter-spacing: 0em;
|
||||||
padding: .25em;
|
padding: .25em;
|
||||||
margin-left: 2em;
|
margin-left: 40px;
|
||||||
color: $primary-text-color;
|
color: $primary-text-color;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,4 +14,8 @@ body {
|
|||||||
code {
|
code {
|
||||||
font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
|
font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
|
||||||
monospace;
|
monospace;
|
||||||
|
}
|
||||||
|
|
||||||
|
a {
|
||||||
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
+9
-2
@@ -1,11 +1,18 @@
|
|||||||
|
import News from '../components/Main/News';
|
||||||
|
import Projects from '../components/Main/Projects'
|
||||||
|
|
||||||
function Main() {
|
function Main() {
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<header className="header">
|
<header className="header">
|
||||||
<h1>Main page</h1>
|
<h1>Думай иначе, будь креативным!</h1>
|
||||||
|
<h2>Студенческое конструкторское бюро<br/>
|
||||||
|
"Компьютерное инновационное творчество"</h2>
|
||||||
|
<a className="btn" href="">Связаться с нами</a>
|
||||||
</header>
|
</header>
|
||||||
<div className="content">
|
<div className="content">
|
||||||
|
<News />
|
||||||
|
<Projects />
|
||||||
</div>
|
</div>
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
|
|||||||
+69
-13
@@ -1,23 +1,79 @@
|
|||||||
$primary-bg-color: #343434;
|
$primary-bg: #343434;
|
||||||
$secondary-bg-color: white;
|
$secondary-bg: white;
|
||||||
$primary-text-color: white;
|
$primary-text: white;
|
||||||
|
$btn-dark: #585858;
|
||||||
|
|
||||||
#page {
|
#page {
|
||||||
margin-top: calc(60px + 2em);
|
margin-top: calc(60px + 2em);
|
||||||
|
|
||||||
.header {
|
.header {
|
||||||
height: 25vh;
|
height: calc(100vh - (60px + 2em));
|
||||||
|
padding: 0 10%;
|
||||||
text-align: center;
|
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
flex-direction: column;
|
||||||
align-items: center;
|
|
||||||
|
color: $primary-text;
|
||||||
color: $primary-text-color;
|
background-image: url(../assets/car.jpeg);
|
||||||
background: $primary-bg-color;
|
background-color: rgba(0, 0, 0, .75);
|
||||||
|
background-blend-mode: multiply;
|
||||||
|
background-position: center;
|
||||||
|
background-size: cover;
|
||||||
|
|
||||||
|
h1 {
|
||||||
|
font-size: 60px;
|
||||||
|
font-weight: 600;
|
||||||
|
line-height: 63px;
|
||||||
|
|
||||||
|
margin-top: 40vh;
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
h2 {
|
||||||
|
font-size: 24px;
|
||||||
|
font-weight: 400;
|
||||||
|
line-height: 36px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.content {
|
.content {
|
||||||
background: $secondary-bg-color;
|
width: 80%;
|
||||||
|
margin: 0 auto;
|
||||||
|
background: $secondary-bg;
|
||||||
|
|
||||||
|
.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;
|
||||||
|
letter-spacing: 0em;
|
||||||
|
text-align: right;
|
||||||
|
color: black;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.btn {
|
||||||
|
display: block;
|
||||||
|
width: fit-content;
|
||||||
|
padding: 16px 24px;
|
||||||
|
border-radius: 8px;
|
||||||
|
|
||||||
|
font-size: 20px;
|
||||||
|
font-weight: 600;
|
||||||
|
line-height: 24px;
|
||||||
|
color: white;
|
||||||
|
background-color: $btn-dark;
|
||||||
|
}
|
||||||
Reference in new issue
Block a user