From e9a1b9894c8c609289554ddb937ef0522a12bde3 Mon Sep 17 00:00:00 2001 From: enes Date: Tue, 30 Jul 2024 13:14:18 +0200 Subject: [PATCH] feat: add background images --- src/assets/images/bg_l.svg | 6 ++ src/assets/images/bg_r.svg | 6 ++ src/pages/landing/index.tsx | 96 +++++++++++++++++------------ src/pages/landing/style.module.scss | 29 +++++++++ 4 files changed, 96 insertions(+), 41 deletions(-) create mode 100644 src/assets/images/bg_l.svg create mode 100644 src/assets/images/bg_r.svg diff --git a/src/assets/images/bg_l.svg b/src/assets/images/bg_l.svg new file mode 100644 index 0000000..07bf6c8 --- /dev/null +++ b/src/assets/images/bg_l.svg @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/src/assets/images/bg_r.svg b/src/assets/images/bg_r.svg new file mode 100644 index 0000000..8e673c6 --- /dev/null +++ b/src/assets/images/bg_r.svg @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/src/pages/landing/index.tsx b/src/pages/landing/index.tsx index 2c031a3..2e1b6bf 100644 --- a/src/pages/landing/index.tsx +++ b/src/pages/landing/index.tsx @@ -6,6 +6,8 @@ import { saveVisitedLink } from '../../utils' import { CardComponent } from '../../components/Landing/CardComponent/CardComponent' import { Container } from '../../components/Container' import styles from './style.module.scss' +import bg_l from '../../assets/images/bg_l.svg' +import bg_r from '../../assets/images/bg_r.svg' export const LandingPage = () => { const navigate = useNavigate() @@ -160,49 +162,61 @@ export const LandingPage = () => { }, [location]) return ( - - Logo -
-

Secure & Private Document Signing

-

- An open-source and self-hostable solution for secure document signing - and verification. +

+ + Logo +
+

+ Secure & Private Document Signing +

+

+ An open-source and self-hostable solution for secure document + signing and verification. +

+
+ + {cards.map((c, i) => ( + + ))} + + +

+ SIGit is a secure & private document signing service where you can + create, sign, and verify any document from any device with a browser.

-
- - {cards.map((c, i) => ( - - ))} - -

- SIGit is a secure & private document signing service where you can - create, sign, and verify any document from any device with a browser. -

+ - - - - + + +
+
+
) } diff --git a/src/pages/landing/style.module.scss b/src/pages/landing/style.module.scss index 3b72290..26526c7 100644 --- a/src/pages/landing/style.module.scss +++ b/src/pages/landing/style.module.scss @@ -1,6 +1,10 @@ @import '../../styles/colors.scss'; @import '../../styles/sizes.scss'; +.background { + position: relative; +} + .container { display: flex; gap: 45px; @@ -39,3 +43,28 @@ text-align: center; color: rgba(0, 0, 0, 0.5); } + +.backgroundBlob { + position: absolute; + opacity: 0.05; + width: 13%; + height: 349px; + pointer-events: none; + background: no-repeat center / contain; + + &Right { + top: 50px; + right: 0; + background-position: right; + } + + &Left { + bottom: 50px; + left: 0; + background-position: left; + } + + @media (max-width: 1200px) { + display: none; + } +}