diff --git a/public/logo192.png b/public/logo192.png
deleted file mode 100755
index fc44b0a..0000000
Binary files a/public/logo192.png and /dev/null differ
diff --git a/public/logo512.png b/public/logo512.png
deleted file mode 100755
index a4e47a6..0000000
Binary files a/public/logo512.png and /dev/null differ
diff --git a/src/App.test.js b/src/App.test.js
deleted file mode 100755
index 1f03afe..0000000
--- a/src/App.test.js
+++ /dev/null
@@ -1,8 +0,0 @@
-import { render, screen } from '@testing-library/react';
-import App from './App';
-
-test('renders learn react link', () => {
- render();
- const linkElement = screen.getByText(/learn react/i);
- expect(linkElement).toBeInTheDocument();
-});
diff --git a/src/api.js b/src/api.js
index 8230471..4f94cba 100755
--- a/src/api.js
+++ b/src/api.js
@@ -2,7 +2,7 @@ import * as WPAPI from 'wpapi';
import reactPress from './reactPress';
-import { g1, g2, g3 } from './images/gallery';
+import { g1, g2, g3 } from './assets/images/gallery';
const wp = new WPAPI(
process.env.NODE_ENV === 'development'
diff --git a/src/images/arrow.svg b/src/assets/images/arrow.svg
similarity index 100%
rename from src/images/arrow.svg
rename to src/assets/images/arrow.svg
diff --git a/src/images/car.jpeg b/src/assets/images/car.jpeg
old mode 100755
new mode 100644
similarity index 100%
rename from src/images/car.jpeg
rename to src/assets/images/car.jpeg
diff --git a/src/images/fileUpload.svg b/src/assets/images/fileUpload.svg
similarity index 100%
rename from src/images/fileUpload.svg
rename to src/assets/images/fileUpload.svg
diff --git a/src/images/footer/iconIctis.png b/src/assets/images/footer/iconIctis.png
old mode 100755
new mode 100644
similarity index 100%
rename from src/images/footer/iconIctis.png
rename to src/assets/images/footer/iconIctis.png
diff --git a/src/images/footer/iconSfedu.png b/src/assets/images/footer/iconSfedu.png
old mode 100755
new mode 100644
similarity index 100%
rename from src/images/footer/iconSfedu.png
rename to src/assets/images/footer/iconSfedu.png
diff --git a/src/images/footer/iconVK.svg b/src/assets/images/footer/iconVK.svg
old mode 100755
new mode 100644
similarity index 100%
rename from src/images/footer/iconVK.svg
rename to src/assets/images/footer/iconVK.svg
diff --git a/src/images/footer/index.js b/src/assets/images/footer/index.js
old mode 100755
new mode 100644
similarity index 100%
rename from src/images/footer/index.js
rename to src/assets/images/footer/index.js
diff --git a/src/images/gallery/1.jpeg b/src/assets/images/gallery/1.jpeg
similarity index 100%
rename from src/images/gallery/1.jpeg
rename to src/assets/images/gallery/1.jpeg
diff --git a/src/images/gallery/2.jpeg b/src/assets/images/gallery/2.jpeg
similarity index 100%
rename from src/images/gallery/2.jpeg
rename to src/assets/images/gallery/2.jpeg
diff --git a/src/images/gallery/3.jpeg b/src/assets/images/gallery/3.jpeg
similarity index 100%
rename from src/images/gallery/3.jpeg
rename to src/assets/images/gallery/3.jpeg
diff --git a/src/images/gallery/index.js b/src/assets/images/gallery/index.js
similarity index 100%
rename from src/images/gallery/index.js
rename to src/assets/images/gallery/index.js
diff --git a/src/images/index.js b/src/assets/images/index.js
old mode 100755
new mode 100644
similarity index 100%
rename from src/images/index.js
rename to src/assets/images/index.js
diff --git a/src/images/labMock.jpeg b/src/assets/images/labMock.jpeg
similarity index 100%
rename from src/images/labMock.jpeg
rename to src/assets/images/labMock.jpeg
diff --git a/src/images/newsMock.png b/src/assets/images/newsMock.png
old mode 100755
new mode 100644
similarity index 100%
rename from src/images/newsMock.png
rename to src/assets/images/newsMock.png
diff --git a/src/assets/images/partners/index.js b/src/assets/images/partners/index.js
new file mode 100644
index 0000000..18478ac
--- /dev/null
+++ b/src/assets/images/partners/index.js
@@ -0,0 +1 @@
+export { default as porsche } from './porsche.svg';
\ No newline at end of file
diff --git a/src/images/partners/porsche.svg b/src/assets/images/partners/porsche.svg
similarity index 100%
rename from src/images/partners/porsche.svg
rename to src/assets/images/partners/porsche.svg
diff --git a/src/images/projects/3t.jpeg b/src/assets/images/projects/3t.jpeg
old mode 100755
new mode 100644
similarity index 100%
rename from src/images/projects/3t.jpeg
rename to src/assets/images/projects/3t.jpeg
diff --git a/src/images/projects/comBattle.jpeg b/src/assets/images/projects/comBattle.jpeg
old mode 100755
new mode 100644
similarity index 100%
rename from src/images/projects/comBattle.jpeg
rename to src/assets/images/projects/comBattle.jpeg
diff --git a/src/images/projects/droneMock.jpeg b/src/assets/images/projects/droneMock.jpeg
old mode 100755
new mode 100644
similarity index 100%
rename from src/images/projects/droneMock.jpeg
rename to src/assets/images/projects/droneMock.jpeg
diff --git a/src/images/projects/index.js b/src/assets/images/projects/index.js
old mode 100755
new mode 100644
similarity index 73%
rename from src/images/projects/index.js
rename to src/assets/images/projects/index.js
index 5bb4721..c39a548
--- a/src/images/projects/index.js
+++ b/src/assets/images/projects/index.js
@@ -1,4 +1,3 @@
export { default as drone } from './droneMock.jpeg';
-export { default as project } from './projectMock.png';
export { default as ttt } from './3t.jpeg';
export { default as comBattle } from './comBattle.jpeg';
\ No newline at end of file
diff --git a/src/images/scb.svg b/src/assets/images/scb.svg
old mode 100755
new mode 100644
similarity index 100%
rename from src/images/scb.svg
rename to src/assets/images/scb.svg
diff --git a/src/index.styles.scss b/src/assets/styles/global.scss
old mode 100755
new mode 100644
similarity index 57%
rename from src/index.styles.scss
rename to src/assets/styles/global.scss
index e159826..ba7ec0b
--- a/src/index.styles.scss
+++ b/src/assets/styles/global.scss
@@ -1,3 +1,4 @@
+@import "../../assets/styles/theme.scss";
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');
input {
@@ -25,4 +26,24 @@ code {
a {
text-decoration: none;
+}
+
+.btn {
+ display: block;
+ width: fit-content;
+ padding: 16px 24px;
+ border-radius: 8px;
+
+ font-size: 20px;
+ font-weight: 600;
+ line-height: 24px;
+
+ color: $btn-primary-text;
+ background: $btn-primary-bg;
+ background-size: 200%;
+ transition: .5s;
+}
+
+.btn:hover {
+ background-position: 100%;
}
\ No newline at end of file
diff --git a/src/assets/styles/theme.scss b/src/assets/styles/theme.scss
new file mode 100644
index 0000000..7d1cd8d
--- /dev/null
+++ b/src/assets/styles/theme.scss
@@ -0,0 +1,17 @@
+$bg-primary: white;
+$bg-secondary: #343434;
+$bg-footer: #222222;
+$bg-form: #EDEDED;
+$bg-card-lab: black;
+$bg-image: rgba(0, 0, 0, .75);
+
+$text-primary: black;
+$text-secondary: white;
+$text-card-project: #767676;
+$text-card-project-bg: rgba(255, 255, 255, 0.75);
+
+$shadow-primary: rgba(0, 0, 0, 0.25);
+
+$btn-primary-text: white;
+$btn-primary-bg: linear-gradient(93.25deg, #4942E4 0%, #11009E 50%, #4942E4 100%),
+ linear-gradient(0deg, #585858, #585858);
\ No newline at end of file
diff --git a/src/components/Carousel/Carousel.jsx b/src/components/Carousel/Carousel.jsx
deleted file mode 100755
index 68d74d0..0000000
--- a/src/components/Carousel/Carousel.jsx
+++ /dev/null
@@ -1,7 +0,0 @@
-import './Carousel.styles.scss';
-
-function Carousel() {
-
-}
-
-export default Carousel;
\ No newline at end of file
diff --git a/src/components/Carousel/Carousel.styles.scss b/src/components/Carousel/Carousel.styles.scss
deleted file mode 100755
index e69de29..0000000
diff --git a/src/components/Carousel/index.js b/src/components/Carousel/index.js
deleted file mode 100755
index e0db3fa..0000000
--- a/src/components/Carousel/index.js
+++ /dev/null
@@ -1 +0,0 @@
-export { default } from './Carousel';
\ No newline at end of file
diff --git a/src/components/ContactForm/ContactForm.jsx b/src/components/ContactForm/ContactForm.jsx
new file mode 100644
index 0000000..f503fb8
--- /dev/null
+++ b/src/components/ContactForm/ContactForm.jsx
@@ -0,0 +1,59 @@
+import { Form } from "react-router-dom";
+
+import Field from "../Field";
+
+import "./ContactForm.styles.scss";
+
+import { fileUpload } from "../../assets/images";
+
+const mock = [
+ {
+ id: 1,
+ type: "text",
+ name: "name",
+ placeholder: "Имя",
+ },
+ {
+ id: 2,
+ type: "email",
+ name: "email",
+ placeholder: "E-mail",
+ },
+ {
+ id: 3,
+ type: "textarea",
+ name: "text",
+ placeholder: "Опишите в этом поле свой проект и, по возможности, прикрепите файл с ТЗ",
+ },
+ {
+ id: 4,
+ type: "file",
+ name: "file",
+ icon: fileUpload,
+ },
+ {
+ id: 5,
+ type: "submit",
+ }
+];
+
+function ContactForm({ fields = mock }) {
+ return (
+
+ );
+}
+
+export default ContactForm;
\ No newline at end of file
diff --git a/src/components/ContactForm/ContactForm.styles.scss b/src/components/ContactForm/ContactForm.styles.scss
new file mode 100644
index 0000000..9ab5580
--- /dev/null
+++ b/src/components/ContactForm/ContactForm.styles.scss
@@ -0,0 +1,22 @@
+@import "../../assets/styles/theme.scss";
+
+.contact-form {
+ padding: 24px 26px;
+ border-radius: 16px;
+
+ background-color: $bg-form;
+
+ h2 {
+ margin-top: 0;
+
+ font-size: 26px;
+ font-weight: 500;
+ line-height: 30px;
+ }
+
+ .inputs {
+ display: flex;
+ flex-direction: column;
+ gap: 16px;
+ }
+}
\ No newline at end of file
diff --git a/src/components/ContactForm/index.js b/src/components/ContactForm/index.js
new file mode 100644
index 0000000..ffe6eb7
--- /dev/null
+++ b/src/components/ContactForm/index.js
@@ -0,0 +1 @@
+export { default } from './ContactForm';
\ No newline at end of file
diff --git a/src/components/Field/Field.jsx b/src/components/Field/Field.jsx
new file mode 100644
index 0000000..ebfbb04
--- /dev/null
+++ b/src/components/Field/Field.jsx
@@ -0,0 +1,36 @@
+import "./Field.styles.scss";
+
+function Field({ type, name, placeholder, icon }) {
+ const className = type === "submit" ? "submit btn"
+ : type === "textarea" ? "field big"
+ : "field";
+
+ return (
+ <>
+ {type === "textarea" ? (
+
+ ) : type === "file" ? (
+
+ ) : (
+
+ )}
+ >
+ );
+}
+
+export default Field;
\ No newline at end of file
diff --git a/src/components/Field/Field.styles.scss b/src/components/Field/Field.styles.scss
new file mode 100644
index 0000000..63c4d6f
--- /dev/null
+++ b/src/components/Field/Field.styles.scss
@@ -0,0 +1,56 @@
+.field {
+ padding: 12px 16px;
+ border: none;
+ border-radius: 8px;
+
+ font-size: 16px;
+ font-weight: 400;
+}
+
+.field.big {
+ height: 200px;
+ line-height: 30px;
+ resize: none;
+}
+
+.file-input {
+ position: relative;
+ width: fit-content;
+
+ input {
+ position: absolute;
+ z-index: -1;
+ opacity: 0;
+ display: block;
+ width: 0;
+ height: 0;
+ }
+
+ .upload-file-btn {
+ display: flex;
+ cursor: pointer;
+
+ .icon {
+ margin-right: 6px;
+ height: 22px;
+ }
+
+ span {
+ display: inline-block;
+ font-size: 18px;
+ }
+ }
+}
+
+.file-input input:focus + .upload-file-btn {
+ outline: -webkit-focus-ring-color auto 1px;
+}
+
+.submit {
+ width: 100%;
+ cursor: pointer;
+
+ padding: 12px;
+ font-size: 18px;
+ line-height: normal;
+}
\ No newline at end of file
diff --git a/src/components/Field/index.js b/src/components/Field/index.js
new file mode 100644
index 0000000..e90acef
--- /dev/null
+++ b/src/components/Field/index.js
@@ -0,0 +1 @@
+export { default } from './Field';
\ No newline at end of file
diff --git a/src/components/Footer/Footer.jsx b/src/components/Footer/Footer.jsx
index ff6eb2f..d982c6d 100755
--- a/src/components/Footer/Footer.jsx
+++ b/src/components/Footer/Footer.jsx
@@ -1,6 +1,6 @@
import FooterLink from './FooterLink';
-import { scb as logo } from '../../images';
-import { iconIctis, iconSfedu, iconVK } from '../../images/footer';
+import { scb as logo } from '../../assets/images';
+import { iconIctis, iconSfedu, iconVK } from '../../assets/images/footer';
import './Footer.styles.scss';
import FooterContacts from './FooterContacts';
diff --git a/src/components/Footer/Footer.styles.scss b/src/components/Footer/Footer.styles.scss
index 24d9372..a24ea08 100755
--- a/src/components/Footer/Footer.styles.scss
+++ b/src/components/Footer/Footer.styles.scss
@@ -1,3 +1,5 @@
+@import "../../assets/styles/theme.scss";
+
.footer {
display: flex;
justify-content: space-between;
@@ -5,7 +7,7 @@
height: 160px;
padding: 0 10%;
- background: #222222;
+ background: $bg-footer;
.logo-container {
height: 80px;
@@ -18,7 +20,7 @@
}
.contacts {
- color: white;
+ color: $text-secondary;
font-size: 18px;
font-weight: 400;
line-height: 22px;
@@ -36,7 +38,7 @@
width: 60px;
aspect-ratio: 1;
border-radius: 100%;
- background-color: white;
+ background-color: $bg-primary;
.icon {
width: 80%;
diff --git a/src/components/Navbar/Navbar.jsx b/src/components/Navbar/Navbar.jsx
index 728b4c4..ebbadb5 100755
--- a/src/components/Navbar/Navbar.jsx
+++ b/src/components/Navbar/Navbar.jsx
@@ -1,4 +1,4 @@
-import { scb as logo } from '../../images';
+import { scb as logo } from '../../assets/images';
import { NavLink } from "react-router-dom";
import NavbarLink from './NavbarLink';
import './Navbar.styles.scss';
diff --git a/src/components/Navbar/Navbar.styles.scss b/src/components/Navbar/Navbar.styles.scss
index 18fe798..22c9a02 100755
--- a/src/components/Navbar/Navbar.styles.scss
+++ b/src/components/Navbar/Navbar.styles.scss
@@ -1,5 +1,4 @@
-$primary-bg-color: #343434;
-$primary-text-color: white;
+@import "../../assets/styles/theme.scss";
.navbar {
position: absolute;
@@ -8,7 +7,7 @@ $primary-text-color: white;
height: 60px;
max-height: 80px;
padding: 1em 10%;
- background: $primary-bg-color;
+ background: $bg-secondary;
display: flex;
@@ -35,13 +34,13 @@ $primary-text-color: white;
letter-spacing: 0em;
padding: .25em;
margin-left: 40px;
- color: $primary-text-color;
+ color: $text-secondary;
text-decoration: none;
text-wrap: nowrap;
}
.nav-link::after {
- background: white;
+ background: $text-secondary;
}
}
}
\ No newline at end of file
diff --git a/src/components/Slider/components/Arrows.jsx b/src/components/Slider/components/Arrows.jsx
index f786cf1..fe1a388 100644
--- a/src/components/Slider/components/Arrows.jsx
+++ b/src/components/Slider/components/Arrows.jsx
@@ -1,7 +1,7 @@
import React, { useContext } from "react";
import { SliderContext } from "../Slider";
-import { arrow } from '../../../images';
+import { arrow } from '../../../assets/images';
import './Arrows.styles.scss';
function Arrows() {
diff --git a/src/components/Slider/components/Arrows.styles.scss b/src/components/Slider/components/Arrows.styles.scss
index 75eb597..1f9f7ae 100644
--- a/src/components/Slider/components/Arrows.styles.scss
+++ b/src/components/Slider/components/Arrows.styles.scss
@@ -1,3 +1,5 @@
+@import "../../../assets/styles/theme.scss";
+
.arrows {
position: absolute;
z-index: 1;
@@ -10,7 +12,6 @@
width: calc(100% - 30% + 60px);
left: calc(15% - 30px);
margin: 0 auto;
- color: white;
.arrow {
display: flex;
@@ -21,7 +22,8 @@
width: 60px;
padding-right: 5px;
border-radius: 100%;
- background: #D9D9D9;
+ background: $bg-primary;
+ box-shadow: 0px 4px 4px 0px $shadow-primary;
font-size: 30px;
box-sizing: border-box;
diff --git a/src/images/partners/index.js b/src/images/partners/index.js
deleted file mode 100644
index 36479ff..0000000
--- a/src/images/partners/index.js
+++ /dev/null
@@ -1,2 +0,0 @@
-export { default as petronas } from './petronas.jpeg';
-export { default as porsche } from './porsche.svg';
\ No newline at end of file
diff --git a/src/images/partners/petronas.jpeg b/src/images/partners/petronas.jpeg
deleted file mode 100644
index 2b288fc..0000000
Binary files a/src/images/partners/petronas.jpeg and /dev/null differ
diff --git a/src/images/projects/projectMock.png b/src/images/projects/projectMock.png
deleted file mode 100755
index 769cad3..0000000
Binary files a/src/images/projects/projectMock.png and /dev/null differ
diff --git a/src/index.js b/src/index.js
index 3718ce1..7f7ec8f 100755
--- a/src/index.js
+++ b/src/index.js
@@ -4,7 +4,7 @@ import { createHashRouter, RouterProvider } from 'react-router-dom';
import routes from './routes';
import reportWebVitals from './reportWebVitals';
-import './index.styles.scss';
+import './assets/styles/global.scss';
const router = createHashRouter(routes);
diff --git a/src/logo.svg b/src/logo.svg
deleted file mode 100755
index 9dfc1c0..0000000
--- a/src/logo.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/src/pages/Main/components/ContactUs/ContactUs.jsx b/src/pages/Main/components/ContactUs/ContactUs.jsx
index 5704601..f7d71ca 100755
--- a/src/pages/Main/components/ContactUs/ContactUs.jsx
+++ b/src/pages/Main/components/ContactUs/ContactUs.jsx
@@ -1,28 +1,12 @@
-import { Form } from "react-router-dom";
+import ContactForm from "../../../../components/ContactForm"
-import { fileUpload } from "../../../../images";
import './ContactUs.styles.scss';
function ContactUs() {
return (
Нужна помощь?
Команда способных IT-специалистов готова вам помочь!
-
+
);
}
diff --git a/src/pages/Main/components/ContactUs/ContactUs.styles.scss b/src/pages/Main/components/ContactUs/ContactUs.styles.scss
index 9118867..7fff3a6 100644
--- a/src/pages/Main/components/ContactUs/ContactUs.styles.scss
+++ b/src/pages/Main/components/ContactUs/ContactUs.styles.scss
@@ -7,82 +7,4 @@
.half {
flex: 1 1 50%;
}
-
- .contact-form {
- padding: 24px 26px;
- border-radius: 16px;
-
- background-color: #EDEDED;
-
- h2 {
- margin-top: 0;
-
- font-size: 26px;
- font-weight: 500;
- line-height: 30px;
- }
-
- .inputs {
- display: flex;
- flex-direction: column;
- gap: 16px;
-
- .field {
- padding: 12px 16px;
- border: none;
- border-radius: 8px;
-
- font-size: 16px;
- font-weight: 400;
- }
-
- .field.big {
- height: 200px;
- line-height: 30px;
- resize: none;
- }
-
- .file-input {
- position: relative;
- width: fit-content;
-
- input {
- position: absolute;
- z-index: -1;
- opacity: 0;
- display: block;
- width: 0;
- height: 0;
- }
-
- .upload-file-btn {
- display: flex;
- cursor: pointer;
-
- .icon {
- margin-right: 6px;
- height: 22px;
- }
-
- span {
- display: inline-block;
- font-size: 18px;
- }
- }
- }
-
- .file-input input:focus + .upload-file-btn {
- outline: -webkit-focus-ring-color auto 1px;
- }
-
- .submit {
- width: 100%;
- cursor: pointer;
-
- padding: 12px;
- font-size: 18px;
- line-height: normal;
- }
- }
- }
}
\ No newline at end of file
diff --git a/src/pages/Main/components/Labs/Labs.jsx b/src/pages/Main/components/Labs/Labs.jsx
index 8b689d6..e66e85d 100755
--- a/src/pages/Main/components/Labs/Labs.jsx
+++ b/src/pages/Main/components/Labs/Labs.jsx
@@ -1,41 +1,47 @@
import BlockHeading from '../BlockHeading';
import LabCard from './LabCard';
-import { labMock } from '../../../../images';
+import { labMock } from '../../../../assets/images';
import './Labs.styles.scss';
const mock = [
{
+ id: 1,
name: "Лаборатория кибернетики",
desc: "Управление робототехническими системами, создание аппаратных и программных продуктов, а также проектирование программных систем.",
link: "/labs",
img: labMock,
},
{
+ id: 2,
name: "Лаборатория компьютерного зрения",
desc: "Работа с методами и технологиями сегментации изображений, ИИ и нейронными сетями.",
link: "/labs",
img: labMock,
},
{
+ id: 3,
name: "Лаборатория SmartTech",
desc: "Проектирование систем в концепции “Интернета вещей” и технологии “Умного дома”.",
link: "/labs",
img: labMock,
},
{
+ id: 4,
name: "Лаборатория VR и AR",
desc: "Разработка приложений для виртуальной и дополненной реальности, 3D-моделирование.",
link: "/labs",
img: labMock,
},
{
+ id: 5,
name: "Лаборатория мобильной разработки",
desc: "Разработка приложений для портативных устройств, создание дизайна и проектов мобильных приложений.",
link: "/labs",
img: labMock,
},
{
+ id: 6,
name: "Лаборатория 3D-печати и прототипирования",
desc: "Проектирование 3D-модели, работа с 3D-принтером и создание качественных трёхмерных макетов.",
link: "/labs",
@@ -48,7 +54,7 @@ function Labs({ labs = mock }) {
- { labs.map( lab => ) }
+ { labs.map( lab => ) }
);
diff --git a/src/pages/Main/components/Labs/Labs.styles.scss b/src/pages/Main/components/Labs/Labs.styles.scss
index 53a7a56..9301c63 100755
--- a/src/pages/Main/components/Labs/Labs.styles.scss
+++ b/src/pages/Main/components/Labs/Labs.styles.scss
@@ -1,3 +1,5 @@
+@import "../../../../assets/styles/theme.scss";
+
.labs {
.row {
display: flex;
@@ -13,12 +15,9 @@
position: relative;
border-radius: 8px;
- border-width: 1px;
- border-style: solid;
- border-color: #D9D9D9;
- color: white;
- background: black;
+ color: $text-secondary;
+ background: $bg-card-lab;
.image {
position: absolute;
diff --git a/src/pages/Main/components/News/News.jsx b/src/pages/Main/components/News/News.jsx
index cde8a67..a52a3ac 100755
--- a/src/pages/Main/components/News/News.jsx
+++ b/src/pages/Main/components/News/News.jsx
@@ -1,22 +1,26 @@
import BlockHeading from '../BlockHeading';
import NewsCard from './NewsCard';
import './News.styles.scss';
-import { newsMock } from '../../../../images';
+import { newsMock } from '../../../../assets/images';
const mock = [
{
+ id: 1,
text: "Какая-то новость",
image: newsMock
},
{
+ id: 2,
text: "Еще одна новость",
image: newsMock
},
{
+ id: 3,
text: "Новость поменбше",
image: newsMock
},
{
+ id: 4,
text: "Новость маленькая совсем жестб а текст какой длинный ого",
image: newsMock
},
@@ -28,7 +32,7 @@ function News({ news = mock }) {
- { news.map(item => ) }
+ { news.map(item => ) }
);
diff --git a/src/pages/Main/components/Partners/Partners.jsx b/src/pages/Main/components/Partners/Partners.jsx
index ce74864..1b2f3c3 100755
--- a/src/pages/Main/components/Partners/Partners.jsx
+++ b/src/pages/Main/components/Partners/Partners.jsx
@@ -3,32 +3,40 @@ import ScrollCarousel from 'scroll-carousel-react';
import BlockHeading from '../BlockHeading';
import PartnersLogo from './PartnersLogo';
import './Partners.styles.scss';
-import { scb } from '../../../../images';
-import { porsche } from '../../../../images/partners';
+import { scb } from '../../../../assets/images';
+import { porsche } from '../../../../assets/images/partners';
const mock = [
{
+ id: 1,
image: porsche,
},
{
+ id: 2,
image: scb,
},
{
+ id: 3,
image: porsche,
},
{
+ id: 4,
image: scb,
},
{
+ id: 5,
image: porsche,
},
{
+ id: 6,
image: scb,
},
{
+ id: 7,
image: porsche,
},
{
+ id: 8,
image: scb,
},
];
@@ -43,7 +51,7 @@ function Partners({ partners = mock }) {
speed={1}
margin={32}
>
- { partners.map(item => ) }
+ { partners.map(item => ) }
);
diff --git a/src/pages/Main/components/Partners/Partners.styles.scss b/src/pages/Main/components/Partners/Partners.styles.scss
index a724d2e..26e499d 100644
--- a/src/pages/Main/components/Partners/Partners.styles.scss
+++ b/src/pages/Main/components/Partners/Partners.styles.scss
@@ -17,7 +17,6 @@
height: 100%;
aspect-ratio: 1;
border-radius: 100%;
- background: #D9D9D9;
.logo {
width: 100%;
diff --git a/src/pages/Main/components/Projects/Projects.jsx b/src/pages/Main/components/Projects/Projects.jsx
index 3a56ae2..916cd92 100755
--- a/src/pages/Main/components/Projects/Projects.jsx
+++ b/src/pages/Main/components/Projects/Projects.jsx
@@ -6,26 +6,31 @@ import {
drone,
ttt,
comBattle
-} from '../../../../images/projects';
+} from '../../../../assets/images/projects';
const mock = [
{
+ id: 1,
image: drone,
link: "/projects",
},
{
+ id: 2,
image: ttt,
link: "/projects",
},
{
+ id: 3,
image: comBattle,
link: "/projects",
},
{
+ id: 4,
image: comBattle,
link: "/projects",
},
{
+ id: 5,
image: comBattle,
link: "/projects",
},
@@ -36,7 +41,7 @@ function Projects({ projects = mock }) {
- {mock.map(item =>
)}
+ {projects.map(item =>
)}
);
diff --git a/src/pages/Main/components/Projects/Projects.styles.scss b/src/pages/Main/components/Projects/Projects.styles.scss
index a2b68a3..14d2be4 100755
--- a/src/pages/Main/components/Projects/Projects.styles.scss
+++ b/src/pages/Main/components/Projects/Projects.styles.scss
@@ -1,3 +1,5 @@
+@import "../../../../assets/styles/theme.scss";
+
.projects {
.row {
@@ -38,9 +40,9 @@
font-size: 20px;
font-weight: 500;
line-height: 24px;
- color: #767676;
+ color: $text-card-project;
- background-color: rgba(255, 255, 255, 0.75);
+ background-color: $text-card-project-bg;
}
}
}
diff --git a/src/pages/Root/Root.styles.scss b/src/pages/Root/Root.styles.scss
index 811da8b..d91778b 100755
--- a/src/pages/Root/Root.styles.scss
+++ b/src/pages/Root/Root.styles.scss
@@ -1,7 +1,4 @@
-$primary-bg: #343434;
-$secondary-bg: white;
-$primary-text: white;
-$btn-dark: #585858;
+@import "../../assets/styles/theme.scss";
#page {
margin-top: calc(60px + 2em);
@@ -13,9 +10,9 @@ $btn-dark: #585858;
display: flex;
flex-direction: column;
- color: $primary-text;
- background-image: url(/images/car.jpeg);
- background-color: rgba(0, 0, 0, .75);
+ color: $text-secondary;
+ background-image: url(/assets/images/car.jpeg);
+ background-color: $bg-image;
background-blend-mode: multiply;
background-position: center;
background-size: cover;
@@ -37,7 +34,7 @@ $btn-dark: #585858;
}
.content {
- background: $secondary-bg;
+ background: $bg-primary;
.block {
margin: 0 10% 32px;
@@ -61,27 +58,13 @@ $btn-dark: #585858;
font-weight: 400;
line-height: 29px;
text-align: right;
- color: black;
+ color: $text-primary;
}
}
}
}
}
-.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;
-}
-
.block .heading a,
.navbar .nav-link {
position: relative;
@@ -101,7 +84,7 @@ $btn-dark: #585858;
}
.block .heading a::after {
- background: black;
+ background: $text-primary;
}
.block .heading a:hover:after,