From 3c9da35addbc944236307498ce2feb5026ce2a7a Mon Sep 17 00:00:00 2001 From: DmitriyB Date: Mon, 21 Nov 2022 16:17:38 +0500 Subject: [PATCH] added backlight to vector images --- .../cloudSolution/cloudSolution.css | 50 +++++++++++- src/components/content/content.tsx | 4 +- src/components/devices/devices.css | 20 +++++ src/components/footer/footer.css | 1 - src/components/multiplayer/multiplayer.tsx | 6 +- .../photoComponent/photoComponent.tsx | 7 +- src/components/player/player.tsx | 7 +- .../sliderComponent/sliderComponent.tsx | 20 ++--- src/styles/styles.css | 80 +++++++++++++++++-- 9 files changed, 166 insertions(+), 29 deletions(-) diff --git a/src/components/cloudSolution/cloudSolution.css b/src/components/cloudSolution/cloudSolution.css index e3f9b7a..1817e34 100644 --- a/src/components/cloudSolution/cloudSolution.css +++ b/src/components/cloudSolution/cloudSolution.css @@ -4,6 +4,7 @@ } .block__container { + overflow: hidden; background: #141414; border-radius: 32px; padding: 74px 80px; @@ -11,8 +12,9 @@ box-sizing: border-box; display: -ms-grid; display: grid; - -ms-grid-columns: 1fr 2fr; - grid-template-columns: 1fr 2fr; + -ms-grid-columns: auto 1fr; + grid-template-columns: auto 1fr; + gap: 66px; margin-bottom: 160px; } @@ -22,8 +24,32 @@ margin-bottom: 0; } +.image {} + .image__container { + z-index: 1; + width: 260px; position: relative; + height: 190px; +} + +.image__container:after { + position: absolute; + content: ""; + top: 5vw; + left: 0; + right: 0; + z-index: -1; + height: 100%; + width: 100%; + margin: 0 auto; + -webkit-filter: blur(5vw); + -moz-filter: blur(5vw); + -ms-filter: blur(5vw); + filter: blur(5vw); + background: radial-gradient(50% 50% at 50% 50%, #212121 0%, rgba(33, 33, 33, 60%) 92.19%); + background-size: 200% 200%; + } @@ -36,11 +62,18 @@ width: 300px; } + + .image__container { + width: 300px; + height: 228px; + } + .block__container { padding: 96px 84px; -webkit-box-pack: normal; -ms-flex-pack: normal; justify-content: normal; + gap: 80px; margin-bottom: 192px; @@ -70,10 +103,19 @@ justify-content: center; } - .image { - width: 50%; + .image__container { + justify-content: flex-start; + width: auto; + height: 372px; + } + .image { + width: auto; + height: 372px; + } + + .block__container { display: -webkit-box; display: -ms-flexbox; diff --git a/src/components/content/content.tsx b/src/components/content/content.tsx index 83f9982..d65e609 100644 --- a/src/components/content/content.tsx +++ b/src/components/content/content.tsx @@ -1,6 +1,6 @@ import "../../styles/styles.css"; -export const Content: React.FC = ({ text }) => { +export const Content: React.FC = ({ text, captionSmall }) => { return (
= ({ text }) => { {text.mainBlockCaptionColor}

: <>} -

+

{text.mainBlockCaption}

diff --git a/src/components/devices/devices.css b/src/components/devices/devices.css index 0deace9..a02c693 100644 --- a/src/components/devices/devices.css +++ b/src/components/devices/devices.css @@ -20,6 +20,8 @@ } .card { + overflow: hidden; + z-index: 1; -webkit-box-sizing: border-box; box-sizing: border-box; position: relative; @@ -37,6 +39,24 @@ gap: 20px; } +.card:after { + position: absolute; + content: ""; + top: 10vw; + left: 0; + right: 0; + z-index: -1; + height: 66%; + width: 100%; + margin: 0 auto; + -webkit-filter: blur(5vw); + -moz-filter: blur(5vw); + -ms-filter: blur(5vw); + filter: blur(5vw); + background: radial-gradient(50% 50% at 50% 50%, #212121 0%, rgba(33, 33, 33, 60%) 92.19%); + background-size: 200% 200%; +} + .card__name { margin: 0; font-style: normal; diff --git a/src/components/footer/footer.css b/src/components/footer/footer.css index b19aea4..d8262b8 100644 --- a/src/components/footer/footer.css +++ b/src/components/footer/footer.css @@ -487,7 +487,6 @@ .footer__main-block { - padding: 60px 10px; gap: 42px; diff --git a/src/components/multiplayer/multiplayer.tsx b/src/components/multiplayer/multiplayer.tsx index f295ff2..6ef8a49 100644 --- a/src/components/multiplayer/multiplayer.tsx +++ b/src/components/multiplayer/multiplayer.tsx @@ -6,15 +6,17 @@ import photo2 from "./Photo2.png"; import photo3 from "./Photo3.png"; import { Button } from "../buttonDemo/buttonDemo" import { Content } from "../content/content"; +import { useState } from "react"; export const Multiplayer: React.FC = ({text}) => { + const [captionSmall, setCaptionSmall] = useState(true); return (
- +
device device @@ -22,7 +24,7 @@ export const Multiplayer: React.FC = ({text}) => { device
-
+
{text.mainBlockSubblock}
diff --git a/src/components/photoComponent/photoComponent.tsx b/src/components/photoComponent/photoComponent.tsx index 911d1d1..967c4ff 100644 --- a/src/components/photoComponent/photoComponent.tsx +++ b/src/components/photoComponent/photoComponent.tsx @@ -4,19 +4,22 @@ import './photoComponent.css' import photo1 from './Photo1.png' import photo2 from './Photo2.png' import { Content } from '../content/content' +import { useState } from 'react' export const PhotoComponent: React.FC = ({ text }) => { + const [captionSmall, setCaptionSmall] = useState(true); + return (
- +
photoImg photoImg
-
+
{text.mainBlockSubblock}
diff --git a/src/components/player/player.tsx b/src/components/player/player.tsx index 3506902..6055342 100644 --- a/src/components/player/player.tsx +++ b/src/components/player/player.tsx @@ -4,18 +4,21 @@ import "./player.css" import { Button } from "../buttonDemo/buttonDemo" import { Content } from "../content/content"; import ReactPlayer from 'react-player' +import { useState } from "react"; export const Player: React.FC = ({ text }) => { + const [captionSmall, setCaptionSmall] = useState(true); + return (
- +
-
+
{text.mainBlockSubblock}
diff --git a/src/components/sliderComponent/sliderComponent.tsx b/src/components/sliderComponent/sliderComponent.tsx index 8286fa9..fa5cb59 100644 --- a/src/components/sliderComponent/sliderComponent.tsx +++ b/src/components/sliderComponent/sliderComponent.tsx @@ -7,16 +7,18 @@ export const SliderComponent: React.FC = React.memo(({ text }) => { return (
-
-
-

Graff.estate

-

stream

+
+
+
+

Graff.estate

+

stream

+
+

+ {text.mainBlockCaptionColor} +

+

{text.mainBlockCaption}

-

- {text.mainBlockCaptionColor} -

-

{text.mainBlockCaption}