From f0b960eb22720a1f5c3d99a3407bac6acafd383f Mon Sep 17 00:00:00 2001 From: Sergey Yarkov Date: Sat, 26 Sep 2020 14:17:40 +0300 Subject: [PATCH] upd styles & layout --- src/components/Footer/Footer.js | 23 --------------- src/components/Footer/Footer.scss | 29 ------------------- src/components/Newsletter/Newsletter.js | 24 ++++++++-------- src/components/Newsletter/Newsletter.scss | 34 ++++++++++++++++------- src/styles/global.scss | 6 +++- 5 files changed, 40 insertions(+), 76 deletions(-) diff --git a/src/components/Footer/Footer.js b/src/components/Footer/Footer.js index 411e353..7b63702 100644 --- a/src/components/Footer/Footer.js +++ b/src/components/Footer/Footer.js @@ -4,8 +4,6 @@ import PropTypes from "prop-types" import useSiteMetadataQuery from "../../hooks/useSiteMetadataQuery" import LogoIcon from "../../images/logo-icon.svg" -import GatsbyIcon from "../../images/gatsby-icon.svg" -import NetlifyIcon from "../../images/netlify-icon.svg" import RssIcon from "../../images/rss-icon.svg" const Footer = ({ amp }) => { @@ -72,27 +70,6 @@ const Footer = ({ amp }) => { -
- Разработка при помощи: -
- - - GatsbyJS - - - - Netlify - -
-
diff --git a/src/components/Footer/Footer.scss b/src/components/Footer/Footer.scss index ffd8bbd..0985091 100644 --- a/src/components/Footer/Footer.scss +++ b/src/components/Footer/Footer.scss @@ -48,27 +48,6 @@ footer { } } } - & .footer-nav__helpers { - display: flex; - align-items: flex-end; - justify-content: flex-end; - flex-direction: column; - & span { - font-size: 14px; - margin-bottom: 10px; - } - & .helpers-icons { - display: flex; - align-items: center; - & a { - font-size: 0; - } - & a:nth-child(1) { - text-decoration: none; - margin-right: 10px; - } - } - } } &__copy { border-top: 1px solid rgba(0, 0, 0, 0.1); @@ -160,14 +139,6 @@ footer { margin-bottom: 20px; } } - & .footer-nav__helpers { - align-items: center; - flex-direction: column; - & span { - margin-bottom: 15px; - margin-right: 0; - } - } } } } diff --git a/src/components/Newsletter/Newsletter.js b/src/components/Newsletter/Newsletter.js index 599fe6d..fc14e4f 100644 --- a/src/components/Newsletter/Newsletter.js +++ b/src/components/Newsletter/Newsletter.js @@ -1,23 +1,21 @@ import React from "react" const Newsletter = () => { + const submitHandler = e => { + e.preventDefault() + + } + return (
-
Новостная рассылка
+
📫{" "}Новостная рассылка
-
-

- - 🔥 - {" "} - At vero eos et accusamus et iusto odio dignissimos ducimus qui - blanditiis praesentium voluptatum deleniti atque corrupti quos - dolores et quas molestias excepturi sint occaecati cupiditate non - provident, similique sunt in culpa qui officia deserunt mollitia - animi, id est laborum et dolorum fuga -

+

+ Подпишитесь на новостную рассылку чтобы не пропустить вышедшие статьи +

+
- +
diff --git a/src/components/Newsletter/Newsletter.scss b/src/components/Newsletter/Newsletter.scss index 5db6a17..24e661a 100644 --- a/src/components/Newsletter/Newsletter.scss +++ b/src/components/Newsletter/Newsletter.scss @@ -1,36 +1,46 @@ @import '../../styles/variables.scss'; .newsletter { - border: 2px solid #6394F7; border-radius: 7px; - padding: 30px 25px; + background: linear-gradient(135.9deg, #f5f9ff, #f5f9ff 0.01%, #f6f4fb 98.96%); + padding: 25px 25px; & .newsletter-heading { - font-size: 21px; + font-size: 24px; font-weight: 700; - margin-bottom: 15px; + margin-bottom: 10px; color: $black-clr; + text-align: center; } & .newsletter-content { + text-align: center; + & p { + font-size: 15px; + margin-bottom: 10px; + } & form { + display: flex; + justify-content: center; & p { margin-bottom: 40px; font-size: 15px; color: $black-clr; } & .email-field { - display: flex; + margin-top: 10px; + display: inline-flex; & input { - width: 250px; - height: 40px; + width: 300px; + height: 35px; padding: 10px; font-family: 'Inter', sans-serif; font-size: 13px; - border-radius: 5px 0px 0px 5px; + border-radius: 5px; } & button { background: linear-gradient(112.92deg, #6395F8 0%, #463EAC 100%); - border-radius: 0px 5px 5px 0px; - height: 40px; + border-radius: 5px; + margin-left: 5px; + height: 35px; width: 130px; font-size: 13px; padding: 0 15px; @@ -46,10 +56,14 @@ .dark { & .newsletter { + background: #2A2A2A; & .newsletter-heading { color: $white-clr; } & .newsletter-content { + & p { + color: $white-clr; + } & form { & p { color: $white-clr; diff --git a/src/styles/global.scss b/src/styles/global.scss index 18249ab..7440fc9 100644 --- a/src/styles/global.scss +++ b/src/styles/global.scss @@ -343,8 +343,12 @@ html { body { font-family: 'Inter', sans-serif; margin: 0; - display: flex; height: 85%; +} + +#gatsby-focus-wrapper { + display: flex; + min-height: 100vh; flex-direction: column; }