From f9764adef732d002e5c6999974bfd54b922bff19 Mon Sep 17 00:00:00 2001 From: ifraimka1 Date: Tue, 13 Feb 2024 18:02:04 +0300 Subject: [PATCH] =?UTF-8?q?=D0=93=D0=BB=D0=B0=D0=B2=D0=BD=D0=B0=D1=8F=20?= =?UTF-8?q?=D1=81=D1=82=D1=80=D0=B0=D0=BD=D0=B8=D1=86=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Main/News.jsx | 34 +++++++++++++ src/components/Main/News.scss | 20 ++++++++ src/components/Main/Projects.jsx | 30 +++++++++++ src/components/Main/Projects.scss | 0 src/components/Navbar/Navbar.scss | 10 +++- src/index.scss | 4 ++ src/routes/Main.jsx | 11 ++++- src/routes/Root.scss | 82 ++++++++++++++++++++++++++----- 8 files changed, 174 insertions(+), 17 deletions(-) create mode 100644 src/components/Main/News.jsx create mode 100644 src/components/Main/News.scss create mode 100644 src/components/Main/Projects.jsx create mode 100644 src/components/Main/Projects.scss diff --git a/src/components/Main/News.jsx b/src/components/Main/News.jsx new file mode 100644 index 0000000..fbbb95b --- /dev/null +++ b/src/components/Main/News.jsx @@ -0,0 +1,34 @@ +import { Link } from 'react-router-dom'; + +import './News.scss'; + +function News() { + return ( +
+
+

Новости

+ Все проекты +
+
+
+
+ Какая-то новость +
+
+
+ Еще одна новость +
+
+
+ Новость поменьше +
+
+
+ Новость маленькая совсем жесть а текст какой длинный ого +
+
+
+ ); +} + +export default News; \ No newline at end of file diff --git a/src/components/Main/News.scss b/src/components/Main/News.scss new file mode 100644 index 0000000..858305c --- /dev/null +++ b/src/components/Main/News.scss @@ -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; + } + } + } +} \ No newline at end of file diff --git a/src/components/Main/Projects.jsx b/src/components/Main/Projects.jsx new file mode 100644 index 0000000..4e13eb1 --- /dev/null +++ b/src/components/Main/Projects.jsx @@ -0,0 +1,30 @@ +import { Link } from 'react-router-dom'; + +import './Projects.scss'; + +function Projects() { + return ( +
+
+

Наши проекты

+ Все проекты +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ); +} + +export default Projects; \ No newline at end of file diff --git a/src/components/Main/Projects.scss b/src/components/Main/Projects.scss new file mode 100644 index 0000000..e69de29 diff --git a/src/components/Navbar/Navbar.scss b/src/components/Navbar/Navbar.scss index 255a83b..9c8b703 100644 --- a/src/components/Navbar/Navbar.scss +++ b/src/components/Navbar/Navbar.scss @@ -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; } diff --git a/src/index.scss b/src/index.scss index 101fc69..dd28531 100644 --- a/src/index.scss +++ b/src/index.scss @@ -14,4 +14,8 @@ body { code { font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New', monospace; +} + +a { + text-decoration: none; } \ No newline at end of file diff --git a/src/routes/Main.jsx b/src/routes/Main.jsx index 67d46a2..dc72ad5 100644 --- a/src/routes/Main.jsx +++ b/src/routes/Main.jsx @@ -1,11 +1,18 @@ +import News from '../components/Main/News'; +import Projects from '../components/Main/Projects' + function Main() { return ( <>
-

Main page

+

Думай иначе, будь креативным!

+

Студенческое конструкторское бюро
+ "Компьютерное инновационное творчество"

+ Связаться с нами
- + +
); diff --git a/src/routes/Root.scss b/src/routes/Root.scss index 36d2b57..8466c92 100644 --- a/src/routes/Root.scss +++ b/src/routes/Root.scss @@ -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; - - text-align: center; + height: calc(100vh - (60px + 2em)); + padding: 0 10%; + display: flex; - justify-content: center; - align-items: center; - - color: $primary-text-color; - background: $primary-bg-color; + flex-direction: column; + + 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; +} \ No newline at end of file