Merge pull request #7 from ifraimka1/refactoring

Refactoring
This commit is contained in:
Ifraim Solomonov authored and GitHub committed 2024-02-28 16:06:39 +03:00
commit 7f2c8aebe9
57 files changed
+282 -173

No files matched your search

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.4 KiB

-8
View File
@@ -1,8 +0,0 @@
import { render, screen } from '@testing-library/react';
import App from './App';
test('renders learn react link', () => {
render(<App />);
const linkElement = screen.getByText(/learn react/i);
expect(linkElement).toBeInTheDocument();
});
+1 -1
View File
@@ -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'
File renamed without changes.

Before

Width:  |  Height:  |  Size: 977 B

After

Width:  |  Height:  |  Size: 977 B

View File
File renamed without changes.

Before

Width:  |  Height:  |  Size: 323 KiB

After

Width:  |  Height:  |  Size: 323 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 1.0 KiB

After

Width:  |  Height:  |  Size: 1.0 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 6.6 KiB

After

Width:  |  Height:  |  Size: 6.6 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 436 KiB

After

Width:  |  Height:  |  Size: 436 KiB

View File
File renamed without changes.

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

View File
File renamed without changes.
File renamed without changes.

Before

Width:  |  Height:  |  Size: 248 KiB

After

Width:  |  Height:  |  Size: 248 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 137 KiB

After

Width:  |  Height:  |  Size: 137 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 257 KiB

After

Width:  |  Height:  |  Size: 257 KiB

File renamed without changes.
View File
File renamed without changes.
File renamed without changes.

Before

Width:  |  Height:  |  Size: 240 KiB

After

Width:  |  Height:  |  Size: 240 KiB

View File
File renamed without changes.

Before

Width:  |  Height:  |  Size: 3.1 MiB

After

Width:  |  Height:  |  Size: 3.1 MiB

+1
View File
@@ -0,0 +1 @@
export { default as porsche } from './porsche.svg';
File renamed without changes.

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB

View File
File renamed without changes.

Before

Width:  |  Height:  |  Size: 1.4 MiB

After

Width:  |  Height:  |  Size: 1.4 MiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 814 KiB

After

Width:  |  Height:  |  Size: 814 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 713 KiB

After

Width:  |  Height:  |  Size: 713 KiB

-1
View File
@@ -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';
View File
File renamed without changes.

Before

Width:  |  Height:  |  Size: 24 KiB

After

Width:  |  Height:  |  Size: 24 KiB

+21
View File
@@ -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%;
}
+17
View File
@@ -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);
-7
View File
@@ -1,7 +0,0 @@
import './Carousel.styles.scss';
function Carousel() {
}
export default Carousel;
Whitespace-only changes.
-1
View File
@@ -1 +0,0 @@
export { default } from './Carousel';
@@ -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 (
<Form method="post" className="half contact-form">
<h2>Свяжитесь с нами!</h2>
<div className="inputs">
{fields.map(item =>
<Field
key={item.id}
type={item.type}
name={item.name}
placeholder={item.placeholder}
icon={item.icon}
/>
)}
</div>
</Form>
);
}
export default ContactForm;
@@ -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;
}
}
+1
View File
@@ -0,0 +1 @@
export { default } from './ContactForm';
+36
View File
@@ -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" ? (
<textarea
className={className}
name={name}
placeholder={placeholder}
/>
) : type === "file" ? (
<label className="file-input">
<input type="file" name="file" />
<div className="upload-file-btn">
<img src={icon} alt="" className="icon" />
<span>Прикрепить файл</span>
</div>
</label>
) : (
<input
className={className}
type={type}
name={name}
placeholder={placeholder}
/>
)}
</>
);
}
export default Field;
+56
View File
@@ -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;
}
+1
View File
@@ -0,0 +1 @@
export { default } from './Field';
+2 -2
View File
@@ -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';
+5 -3
View File
@@ -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%;
+1 -1
View File
@@ -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';
+4 -5
View File
@@ -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;
}
}
}
+1 -1
View File
@@ -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() {
@@ -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;
-2
View File
@@ -1,2 +0,0 @@
export { default as petronas } from './petronas.jpeg';
export { default as porsche } from './porsche.svg';
Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 MiB

+1 -1
View File
@@ -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);
-1
View File
@@ -1 +0,0 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 841.9 595.3"><g fill="#61DAFB"><path d="M666.3 296.5c0-32.5-40.7-63.3-103.1-82.4 14.4-63.6 8-114.2-20.2-130.4-6.5-3.8-14.1-5.6-22.4-5.6v22.3c4.6 0 8.3.9 11.4 2.6 13.6 7.8 19.5 37.5 14.9 75.7-1.1 9.4-2.9 19.3-5.1 29.4-19.6-4.8-41-8.5-63.5-10.9-13.5-18.5-27.5-35.3-41.6-50 32.6-30.3 63.2-46.9 84-46.9V78c-27.5 0-63.5 19.6-99.9 53.6-36.4-33.8-72.4-53.2-99.9-53.2v22.3c20.7 0 51.4 16.5 84 46.6-14 14.7-28 31.4-41.3 49.9-22.6 2.4-44 6.1-63.6 11-2.3-10-4-19.7-5.2-29-4.7-38.2 1.1-67.9 14.6-75.8 3-1.8 6.9-2.6 11.5-2.6V78.5c-8.4 0-16 1.8-22.6 5.6-28.1 16.2-34.4 66.7-19.9 130.1-62.2 19.2-102.7 49.9-102.7 82.3 0 32.5 40.7 63.3 103.1 82.4-14.4 63.6-8 114.2 20.2 130.4 6.5 3.8 14.1 5.6 22.5 5.6 27.5 0 63.5-19.6 99.9-53.6 36.4 33.8 72.4 53.2 99.9 53.2 8.4 0 16-1.8 22.6-5.6 28.1-16.2 34.4-66.7 19.9-130.1 62-19.1 102.5-49.9 102.5-82.3zm-130.2-66.7c-3.7 12.9-8.3 26.2-13.5 39.5-4.1-8-8.4-16-13.1-24-4.6-8-9.5-15.8-14.4-23.4 14.2 2.1 27.9 4.7 41 7.9zm-45.8 106.5c-7.8 13.5-15.8 26.3-24.1 38.2-14.9 1.3-30 2-45.2 2-15.1 0-30.2-.7-45-1.9-8.3-11.9-16.4-24.6-24.2-38-7.6-13.1-14.5-26.4-20.8-39.8 6.2-13.4 13.2-26.8 20.7-39.9 7.8-13.5 15.8-26.3 24.1-38.2 14.9-1.3 30-2 45.2-2 15.1 0 30.2.7 45 1.9 8.3 11.9 16.4 24.6 24.2 38 7.6 13.1 14.5 26.4 20.8 39.8-6.3 13.4-13.2 26.8-20.7 39.9zm32.3-13c5.4 13.4 10 26.8 13.8 39.8-13.1 3.2-26.9 5.9-41.2 8 4.9-7.7 9.8-15.6 14.4-23.7 4.6-8 8.9-16.1 13-24.1zM421.2 430c-9.3-9.6-18.6-20.3-27.8-32 9 .4 18.2.7 27.5.7 9.4 0 18.7-.2 27.8-.7-9 11.7-18.3 22.4-27.5 32zm-74.4-58.9c-14.2-2.1-27.9-4.7-41-7.9 3.7-12.9 8.3-26.2 13.5-39.5 4.1 8 8.4 16 13.1 24 4.7 8 9.5 15.8 14.4 23.4zM420.7 163c9.3 9.6 18.6 20.3 27.8 32-9-.4-18.2-.7-27.5-.7-9.4 0-18.7.2-27.8.7 9-11.7 18.3-22.4 27.5-32zm-74 58.9c-4.9 7.7-9.8 15.6-14.4 23.7-4.6 8-8.9 16-13 24-5.4-13.4-10-26.8-13.8-39.8 13.1-3.1 26.9-5.8 41.2-7.9zm-90.5 125.2c-35.4-15.1-58.3-34.9-58.3-50.6 0-15.7 22.9-35.6 58.3-50.6 8.6-3.7 18-7 27.7-10.1 5.7 19.6 13.2 40 22.5 60.9-9.2 20.8-16.6 41.1-22.2 60.6-9.9-3.1-19.3-6.5-28-10.2zM310 490c-13.6-7.8-19.5-37.5-14.9-75.7 1.1-9.4 2.9-19.3 5.1-29.4 19.6 4.8 41 8.5 63.5 10.9 13.5 18.5 27.5 35.3 41.6 50-32.6 30.3-63.2 46.9-84 46.9-4.5-.1-8.3-1-11.3-2.7zm237.2-76.2c4.7 38.2-1.1 67.9-14.6 75.8-3 1.8-6.9 2.6-11.5 2.6-20.7 0-51.4-16.5-84-46.6 14-14.7 28-31.4 41.3-49.9 22.6-2.4 44-6.1 63.6-11 2.3 10.1 4.1 19.8 5.2 29.1zm38.5-66.7c-8.6 3.7-18 7-27.7 10.1-5.7-19.6-13.2-40-22.5-60.9 9.2-20.8 16.6-41.1 22.2-60.6 9.9 3.1 19.3 6.5 28.1 10.2 35.4 15.1 58.3 34.9 58.3 50.6-.1 15.7-23 35.6-58.4 50.6zM320.8 78.4z"/><circle cx="420.9" cy="296.5" r="45.7"/><path d="M520.5 78.1z"/></g></svg>

Before

Width:  |  Height:  |  Size: 2.6 KiB

@@ -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 (
<div className="block contact-us">
<h1 className="half">Нужна помощь?<br/> Команда способных IT-специалистов готова вам помочь!</h1>
<Form method="post" className="half contact-form">
<h2>Свяжитесь с нами!</h2>
<div className="inputs">
<input type="text" name="name" placeholder="Имя" className="field" />
<input type="email" name="email" placeholder="E-mail" className="field" />
<textarea name="text" placeholder="Опишите в этом поле свой проект и, по возможности, прикрепите файл с ТЗ" className="field big" />
<label className="file-input">
<input type="file" name="file" />
<div className="upload-file-btn">
<img src={fileUpload} alt="" className="icon" />
<span>Прикрепить файл</span>
</div>
</label>
<input type="submit" className="submit btn" />
</div>
</Form>
<ContactForm />
</div>
);
}
@@ -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;
}
}
}
}
+8 -2
View File
@@ -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 }) {
<div className="block labs">
<BlockHeading heading="Наши лаборатории" />
<div className="row">
{ labs.map( lab => <LabCard lab={ lab } />) }
{ labs.map( lab => <LabCard key={ lab.id } lab={ lab } />) }
</div>
</div>
);
@@ -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;
+6 -2
View File
@@ -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 }) {
<div className="block news">
<BlockHeading heading='Новости' linkText='Все новости' link='https://vk.com/skbkit' />
<div className="row">
{ news.map(item => <NewsCard news={ item } />) }
{ news.map(item => <NewsCard key={ item.id } news={ item } />) }
</div>
</div>
);
@@ -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 => <PartnersLogo partner={ item } />) }
{ partners.map(item => <PartnersLogo key={ item.id } partner={ item } />) }
</ScrollCarousel>
</div>
);
@@ -17,7 +17,6 @@
height: 100%;
aspect-ratio: 1;
border-radius: 100%;
background: #D9D9D9;
.logo {
width: 100%;
@@ -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 }) {
<div className="block projects">
<BlockHeading heading="Наши проекты" linkText="Все проекты" link="/projects" />
<div className="row">
{mock.map(item => <ProjectCard project={item} />)}
{projects.map(item => <ProjectCard key={ item.id } project={item} />)}
</div>
</div>
);
@@ -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;
}
}
}
+7 -24
View File
@@ -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,