From 7d0fb5638ef1cd415d638a4697065e083cd0675e Mon Sep 17 00:00:00 2001 From: RedrockJS Date: Thu, 5 Jun 2025 12:02:03 +0300 Subject: [PATCH] fix: add width container --- .../home/ui/contacts/contacts.module.scss | 283 +++++++------- src/views/home/ui/contacts/contacts.tsx | 126 +++---- src/views/home/ui/footer/footer.module.scss | 78 ++-- src/views/home/ui/footer/footer.tsx | 52 +-- src/views/home/ui/license/license.module.scss | 5 +- src/views/home/ui/license/license.tsx | 4 +- src/views/home/ui/main/main.module.scss | 4 +- src/views/home/ui/offer/offer.module.scss | 345 +++++++++--------- src/views/home/ui/offer/offer.tsx | 147 ++++---- src/views/home/ui/result/result.module.scss | 6 +- 10 files changed, 540 insertions(+), 510 deletions(-) diff --git a/src/views/home/ui/contacts/contacts.module.scss b/src/views/home/ui/contacts/contacts.module.scss index 8f25284..1e1a901 100644 --- a/src/views/home/ui/contacts/contacts.module.scss +++ b/src/views/home/ui/contacts/contacts.module.scss @@ -1,165 +1,170 @@ .Contacts { background: $color-lightgray; border-radius: rem(28px); - padding: rem(160px); + padding: rem(160px) 0; +} - .Header { - font-family: $font-open-sans; - font-weight: $font-semi-bold; - font-size: rem(60px); - line-height: 100%; - color: $color-text; - margin-bottom: rem(80px); - } +.InnerContainer { + margin: 0 auto; + width: rem(1340px); +} - .Clients { - margin: 0 auto; - display: flex; - flex-direction: row; - flex-wrap: wrap; - justify-content: space-around; - align-items: center; - gap: rem(40px); - max-width: rem(1200px); - margin-bottom: rem(160px); +.Header { + font-family: $font-open-sans; + font-weight: $font-semi-bold; + font-size: rem(60px); + line-height: 100%; + color: $color-text; + margin-bottom: rem(80px); +} - .Client { +.Clients { + margin: 0 auto; + display: flex; + flex-direction: row; + flex-wrap: wrap; + justify-content: space-around; + align-items: center; + gap: rem(40px); + max-width: rem(1200px); + margin-bottom: rem(160px); - img { - width: rem(300px); - height: auto; - } + .Client { + + img { + width: rem(300px); + height: auto; } } +} - .Form { - position: relative; - background: #292E3D; +.Form { + position: relative; + background: #292E3D; + display: flex; + flex-direction: row; + padding: rem(60px) rem(50px); + border-radius: rem(28px); + overflow: hidden; + + margin-bottom: rem(80px); + + &:after { + content: ''; + display: block; + width: 100%; + height: 100%; + position: absolute; + z-index: 1; + left: 0; + top: 0; + background-color: rgba(#163055, .6); + transition: 250ms background-color; + } + + .Background { + position: absolute; + object-fit: cover; + z-index: 1; + } + + .Offer { + flex: 2; display: flex; - flex-direction: row; - padding: rem(60px) rem(50px); - border-radius: rem(28px); - overflow: hidden; + flex-direction: column; - margin-bottom: rem(80px); - - &:after { - content: ''; - display: block; - width: 100%; - height: 100%; - position: absolute; - z-index: 1; - left: 0; - top: 0; - background-color: rgba(#163055, .6); - transition: 250ms background-color; - } - - .Background { - position: absolute; - object-fit: cover; - z-index: 1; - } - - .Offer { - flex: 2; - display: flex; - flex-direction: column; - - .Title { - position: relative; - z-index: 2; - font-family: $font-open-sans; - font-weight: $font-semi-bold; - font-size: rem(48px); - line-height: 100%; - color: $color-white; - margin-bottom: rem(80px); - } - - .SubTitle { - position: relative; - z-index: 2; - font-family: $font-open-sans; - font-weight: $font-light; - font-size: rem(32px); - line-height: 100%; - color: $color-white; - max-width: rem(720px); - } - } - - .Inputs { + .Title { position: relative; z-index: 2; - flex: 1; - display: flex; - flex-direction: column; - justify-content: center; - gap: rem(20px); - } - } - - .Map { - position: relative; - - iframe { - border-radius: rem(28px); + font-family: $font-open-sans; + font-weight: $font-semi-bold; + font-size: rem(48px); + line-height: 100%; + color: $color-white; + margin-bottom: rem(80px); } - .Contacts { - position: absolute; + .SubTitle { + position: relative; z-index: 2; - top: rem(-40px); - right: rem(180px); - border-radius: rem(28px); - background: $color-white; - width: rem(440px); - padding: rem(40px) rem(35px) rem(20px); + font-family: $font-open-sans; + font-weight: $font-light; + font-size: rem(32px); + line-height: 100%; + color: $color-white; + max-width: rem(720px); + } + } - display: flex; - flex-direction: column; - justify-content: flex-start; - align-items: flex-start; + .Inputs { + position: relative; + z-index: 2; + flex: 1; + display: flex; + flex-direction: column; + justify-content: center; + gap: rem(20px); + } +} - .Title { - position: relative; - font-family: $font-open-sans; - font-weight: $font-semi-bold; - font-size: rem(48px); - line-height: 100%; - color: $color-text; - text-align: right; - margin-bottom: rem(32px); - align-self: center; +.Map { + position: relative; - .LedOn { - position: absolute; - bottom: rem(6px); - left: rem(6px); - } + iframe { + border-radius: rem(28px); + } + + .Contacts { + position: absolute; + z-index: 2; + top: rem(-40px); + right: rem(180px); + border-radius: rem(28px); + background: $color-white; + width: rem(440px); + padding: rem(40px) rem(35px) rem(20px); + + display: flex; + flex-direction: column; + justify-content: flex-start; + align-items: flex-start; + + .Title { + position: relative; + font-family: $font-open-sans; + font-weight: $font-semi-bold; + font-size: rem(48px); + line-height: 100%; + color: $color-text; + text-align: right; + margin-bottom: rem(32px); + align-self: center; + + .LedOn { + position: absolute; + bottom: rem(6px); + left: rem(6px); } + } - .Address { - position: relative; - font-family: $font-open-sans; - font-weight: $font-regular; - font-size: rem(32px); - line-height: 130%; - color: $color-text; - margin-bottom: rem(20px); - margin-left: rem(32px); + .Address { + position: relative; + font-family: $font-open-sans; + font-weight: $font-regular; + font-size: rem(32px); + line-height: 130%; + color: $color-text; + margin-bottom: rem(20px); + margin-left: rem(32px); - .Icon { - position: absolute; - left: rem(-48px); - top: rem(8px); - width: rem(32px); - height: rem(32px); - stroke: #E96526; - } + .Icon { + position: absolute; + left: rem(-48px); + top: rem(8px); + width: rem(32px); + height: rem(32px); + stroke: #E96526; } } } -} \ No newline at end of file +} diff --git a/src/views/home/ui/contacts/contacts.tsx b/src/views/home/ui/contacts/contacts.tsx index e628d5f..b6dd9ed 100644 --- a/src/views/home/ui/contacts/contacts.tsx +++ b/src/views/home/ui/contacts/contacts.tsx @@ -16,72 +16,74 @@ import email from '@public/svg/email.svg'; export default function Contacts() { return (
-

- Клиенты, которые нам доверяют -

-
- {clientsLogos.map(({ logo }, idx) => ( -
- +
+

+ Клиенты, которые нам доверяют +

+
+ {clientsLogos.map(({ logo }, idx) => ( +
+ +
+ ))} +
+ +
+ {''} +
+

Остались вопросы?

+

+ Наш эксперт свяжется с вами для уточнения подробностей и + определения точной стоимости работ +

+
+
+ + +
- ))} -
- -
- {''} -
-

Остались вопросы?

-

- Наш эксперт свяжется с вами для уточнения подробностей и определения - точной стоимости работ -

-
- - - -
-
-
- +
+ -
-

- {''} - Мы всегда
на связи -

-

- - Краснодарский край
- г.Сочи
- ТЦ «Атриум»
- ул. Навагинская д.9«Д»
- этаж 3, офис 35 -

-

- - +7 (988) 400 93 93 -

-

- - office@firecheck.ru -

+
+

+ {''} + Мы всегда
на связи +

+

+ + Краснодарский край
+ г.Сочи
+ ТЦ «Атриум»
+ ул. Навагинская д.9«Д»
+ этаж 3, офис 35 +

+

+ + +7 (988) 400 93 93 +

+

+ + office@firecheck.ru +

+
diff --git a/src/views/home/ui/footer/footer.module.scss b/src/views/home/ui/footer/footer.module.scss index 9d6009d..6ffdb27 100644 --- a/src/views/home/ui/footer/footer.module.scss +++ b/src/views/home/ui/footer/footer.module.scss @@ -1,49 +1,57 @@ .Footer { + position: relative; background-color: #1B1B25; - padding: rem(80px) rem(160px); + padding: rem(120px) 0 rem(40px); + margin-top: rem(-24px); + z-index: -1; +} + +.InnerContainer { + margin: 0 auto; + width: rem(1340px); display: flex; flex-direction: column; justify-content: flex-start; align-items: flex-start; gap: rem(20px); +} - .Block { - display: flex; - flex-direction: column; - gap: rem(20px); - max-width: 40vw; - } +.Block { + display: flex; + flex-direction: column; + gap: rem(20px); + max-width: 40vw; +} - .SendBtn { - align-self: flex-end; - max-width: 33%; - } +.SendBtn { + align-self: flex-end; + max-width: 33%; +} - .Header { +.Header { + font-family: $font-open-sans; + font-weight: $font-semi-bold; + font-size: rem(60px); + line-height: 100%; + color: $color-white; + margin-bottom: rem(40px); +} + +.Bottom { + width: 100%; + height: rem(80px); + border-top: 1px solid $color-white; + display: flex; + flex-direction: row; + align-items: center; + gap: rem(20px); + + .Policy { font-family: $font-open-sans; - font-weight: $font-semi-bold; - font-size: rem(60px); + font-weight: $font-regular; + font-size: rem(16px); line-height: 100%; color: $color-white; - margin-bottom: rem(40px); + margin-left: auto; } - - .Bottom { - width: 100%; - height: rem(80px); - border-top: 1px solid $color-white; - display: flex; - flex-direction: row; - align-items: center; - gap: rem(20px); - - .Policy { - font-family: $font-open-sans; - font-weight: $font-regular; - font-size: rem(16px); - line-height: 100%; - color: $color-white; - margin-left: auto; - } - } -} \ No newline at end of file +} diff --git a/src/views/home/ui/footer/footer.tsx b/src/views/home/ui/footer/footer.tsx index ef81551..7da55a2 100644 --- a/src/views/home/ui/footer/footer.tsx +++ b/src/views/home/ui/footer/footer.tsx @@ -5,31 +5,33 @@ import Link from 'next/link'; export default function Footer() { return (
-
-

- Давайте обсудим ваши задачи -

- - -