mirror of
https://git.rdcenter.ru/RDCenter/skb-kit.git
synced 2026-12-05 06:19:45 +00:00
Главная страница
This commit is contained in:
1 parent
2e51118fa5
commit
f9764adef7
8 files changed
+171
-14
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;
|
||||
top: 0;
|
||||
width: 80%;
|
||||
max-height: 60px;
|
||||
height: 80px;
|
||||
max-height: 80px;
|
||||
padding: 1em 10%;
|
||||
background: $primary-bg-color;
|
||||
|
||||
@@ -19,6 +20,7 @@ $primary-text-color: white;
|
||||
|
||||
.logo {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -26,8 +28,12 @@ $primary-text-color: white;
|
||||
display: flex;
|
||||
|
||||
a {
|
||||
font-size: 16px;
|
||||
font-weight: 500;
|
||||
line-height: 20px;
|
||||
letter-spacing: 0em;
|
||||
padding: .25em;
|
||||
margin-left: 2em;
|
||||
margin-left: 40px;
|
||||
color: $primary-text-color;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
@@ -15,3 +15,7 @@ code {
|
||||
font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
|
||||
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() {
|
||||
return (
|
||||
<>
|
||||
<header className="header">
|
||||
<h1>Main page</h1>
|
||||
<h1>Думай иначе, будь креативным!</h1>
|
||||
<h2>Студенческое конструкторское бюро<br/>
|
||||
"Компьютерное инновационное творчество"</h2>
|
||||
<a className="btn" href="">Связаться с нами</a>
|
||||
</header>
|
||||
<div className="content">
|
||||
|
||||
<News />
|
||||
<Projects />
|
||||
</div>
|
||||
</>
|
||||
);
|
||||
|
||||
+66
-10
@@ -1,23 +1,79 @@
|
||||
$primary-bg-color: #343434;
|
||||
$secondary-bg-color: white;
|
||||
$primary-text-color: white;
|
||||
$primary-bg: #343434;
|
||||
$secondary-bg: white;
|
||||
$primary-text: white;
|
||||
$btn-dark: #585858;
|
||||
|
||||
#page {
|
||||
margin-top: calc(60px + 2em);
|
||||
|
||||
.header {
|
||||
height: 25vh;
|
||||
height: calc(100vh - (60px + 2em));
|
||||
padding: 0 10%;
|
||||
|
||||
text-align: center;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
flex-direction: column;
|
||||
|
||||
color: $primary-text-color;
|
||||
background: $primary-bg-color;
|
||||
color: $primary-text;
|
||||
background-image: url(../assets/car.jpeg);
|
||||
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 {
|
||||
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