From e57e5001546b2832873777b708bf423337f48a9f Mon Sep 17 00:00:00 2001 From: innovatixhub Date: Tue, 26 Nov 2024 02:47:56 -0800 Subject: [PATCH] Add files via upload --- .../websitesocial-media/DownloadAppInfo.jsx | 64 ++++++++++++++ .../DownloadAppInfo.module.scss | 87 +++++++++++++++++++ 2 files changed, 151 insertions(+) create mode 100644 src/componants/footer/websitesocial-media/DownloadAppInfo.jsx create mode 100644 src/componants/footer/websitesocial-media/DownloadAppInfo.module.scss diff --git a/src/componants/footer/websitesocial-media/DownloadAppInfo.jsx b/src/componants/footer/websitesocial-media/DownloadAppInfo.jsx new file mode 100644 index 0000000..6d44590 --- /dev/null +++ b/src/componants/footer/websitesocial-media/DownloadAppInfo.jsx @@ -0,0 +1,64 @@ +import { useTranslation } from "react-i18next"; +import { appStore, googlePlay, qrCode } from "src/Assets/Images/Images"; +import { mySocialMedia } from "src/Data/staticData"; +import SvgIcon from "../../Shared/MiniComponents/SvgIcon"; +import ToolTip from "../../Shared/MiniComponents/ToolTip"; +import s from "./DownloadAppInfo.module.scss"; + +const DownloadAppInfo = () => { + const { t } = useTranslation(); + + return ( + <> + {t("footer.section5.downloadApp")} +

{t("footer.section5.saveThreeDollars")}

+ +
+
+ QR Code +
+ +
+ + + +
+
+ +
+ {mySocialMedia.map((item) => { + const nameTrans = t(`common.${item.name.toLowerCase()}`); + + return ( + + + + + ); + })} +
+ + ); +}; +export default DownloadAppInfo; diff --git a/src/componants/footer/websitesocial-media/DownloadAppInfo.module.scss b/src/componants/footer/websitesocial-media/DownloadAppInfo.module.scss new file mode 100644 index 0000000..12538dd --- /dev/null +++ b/src/componants/footer/websitesocial-media/DownloadAppInfo.module.scss @@ -0,0 +1,87 @@ +@import "src/Styles/mixins"; + +.appInfo { + display: flex; + margin: 8px 0 20px; +} + +.qrCode { + --size: 76px; + min-width: var(--size); + min-height: var(--size); + max-width: var(--size); + max-height: var(--size); + margin-inline-end: 16px; + user-select: none; +} + +.qrCode img:focus-visible { + outline: solid 2px var(--orange-degree2); +} + +.downloadButtons>button { + display: block; + background-color: transparent; + border: none; + outline: none; + width: 104px; + height: 30px; + border-radius: 4px; + border: solid 1px var(--white); + cursor: pointer; + + &:not(:last-child) { + margin-bottom: 16px; + } + + &:focus-visible { + border-color: var(--orange-degree2); + } +} + +.downloadButtons>button>img { + border-radius: inherit; + scale: .8; +} + +.socialMedia { + display: flex; + align-items: center; + gap: 8px; +} + +.socialMedia>a { + width: 40px; + height: 40px; + border-radius: 6px; + filter: grayscale(1); + -webkit-filter: grayscale(1); + -moz-filter: grayscale(1); + -ms-filter: grayscale(1); + -o-filter: grayscale(1); + @include center-x-y; + position: relative; + + &:focus-visible { + transition: opacity .3s, filter .3s .2s; + outline: solid 2px var(--orange-degree2); + filter: grayscale(0); + -webkit-filter: grayscale(0); + -moz-filter: grayscale(0); + -ms-filter: grayscale(0); + -o-filter: grayscale(0); + opacity: 1; + } +} + +.socialMedia>a:not([title="instagram" i]):focus-visible svg { + fill: var(--orange-degree2); +} + +.socialMedia>a[title="instagram" i]:focus-visible svg { + stroke: var(--orange-degree2); + + & path { + stroke: var(--orange-degree2); + } +} \ No newline at end of file