From f2a63633f30a95b40272fd541b4de0effd915169 Mon Sep 17 00:00:00 2001 From: kvakazyambra Date: Thu, 20 Oct 2022 01:16:17 +0300 Subject: [PATCH] Fixed footer style --- .../{Footer.scss => Footer.module.scss} | 23 ++++++++++++------- src/components/Discours/Footer.tsx | 19 +++++++-------- .../{Subscribe.scss => Subscribe.module.scss} | 7 +++++- src/components/Discours/Subscribe.tsx | 10 ++++---- src/locales/ru.json | 1 + src/styles/app.scss | 2 +- 6 files changed, 38 insertions(+), 24 deletions(-) rename src/components/Discours/{Footer.scss => Footer.module.scss} (78%) rename src/components/Discours/{Subscribe.scss => Subscribe.module.scss} (81%) diff --git a/src/components/Discours/Footer.scss b/src/components/Discours/Footer.module.scss similarity index 78% rename from src/components/Discours/Footer.scss rename to src/components/Discours/Footer.module.scss index b491d159..5697a6e3 100644 --- a/src/components/Discours/Footer.scss +++ b/src/components/Discours/Footer.module.scss @@ -1,4 +1,4 @@ -.discours-footer { +.discoursFooter { background: #000; color: rgb(255 255 255 / 64%); @include font-size(1.7rem); @@ -34,21 +34,21 @@ margin-top: 0.8rem; } - .wide-container { + .wideContainer { @include media-breakpoint-down(sm) { padding: 0 $container-padding-x; } } } -.discours-footer__content { +.discoursFooterContent { display: flex; flex-direction: column; justify-content: center; padding-left: $grid-gutter-width; } -.footer-copyright { +.footerCopyright { border-top: 5px solid #404040; color: #696969; @include font-size(1.5rem); @@ -56,7 +56,7 @@ padding-top: 1.6rem; } -.footer-copyright__social { +.footerCopyrightSocial { display: flex; .icon { @@ -75,12 +75,19 @@ } } -.social__item { - text-align: right; +.socialItem { + margin-top: 1em; + text-align: center; width: 25%; + + @include media-breakpoint-up(md) { + margin-top: 0; + margin-left: 0.3em; + text-align: right; + } } -.social__item--vk { +.socialItemvk { img { max-width: 25px; } diff --git a/src/components/Discours/Footer.tsx b/src/components/Discours/Footer.tsx index dcd8b330..ed0a50f7 100644 --- a/src/components/Discours/Footer.tsx +++ b/src/components/Discours/Footer.tsx @@ -1,9 +1,10 @@ import { createMemo, For } from 'solid-js' -import './Footer.scss' +import styles from './Footer.module.scss' import { Icon } from '../Nav/Icon' import Subscribe from './Subscribe' import { t } from '../../utils/intl' import { locale } from '../../stores/ui' +import {clsx} from "clsx"; export const Footer = () => { const locale_title = createMemo(() => (locale() === 'ru' ? 'English' : 'Русский')) @@ -107,12 +108,12 @@ export const Footer = () => { } ] return ( -