From 8c9ebd5a81f87f9dd2563dd347edbd00009b93a8 Mon Sep 17 00:00:00 2001 From: Aaron Liu Date: Fri, 20 Jun 2025 14:00:03 +0800 Subject: [PATCH] feat(app promotion): new landing image --- src/component/Pages/Devices/AppPromotion.tsx | 99 ++------------------ 1 file changed, 9 insertions(+), 90 deletions(-) diff --git a/src/component/Pages/Devices/AppPromotion.tsx b/src/component/Pages/Devices/AppPromotion.tsx index a322e89..f08cd65 100644 --- a/src/component/Pages/Devices/AppPromotion.tsx +++ b/src/component/Pages/Devices/AppPromotion.tsx @@ -1,48 +1,11 @@ -import { useAppSelector } from "../../../redux/hooks.ts"; import { alpha, Box, Grid, Typography, useTheme } from "@mui/material"; -import { Trans, useTranslation } from "react-i18next"; -import { useMemo, useState } from "react"; -import SessionManager from "../../../session"; import { QRCodeSVG } from "qrcode.react"; +import { useMemo, useState } from "react"; +import { Trans, useTranslation } from "react-i18next"; +import { useAppSelector } from "../../../redux/hooks.ts"; +import SessionManager from "../../../session"; import { SecondaryButton } from "../../Common/StyledComponents.tsx"; -const PhoneSkeleton = () => { - const theme = useTheme(); - - return ( - - - - - - ); -}; - const AppPromotion = () => { const title = useAppSelector((state) => state.siteConfig.basic.config.title); const { t } = useTranslation(); @@ -86,10 +49,7 @@ const AppPromotion = () => { variant={"inherit"} sx={{ background: (theme) => - `linear-gradient(180deg, transparent 82%, ${alpha( - theme.palette.secondary.main, - 0.3, - )} 0%)`, + `linear-gradient(180deg, transparent 82%, ${alpha(theme.palette.secondary.main, 0.3)} 0%)`, }} />, ]} @@ -116,13 +76,7 @@ const AppPromotion = () => { {t("setting.downloadOurApp")} - + @@ -179,60 +133,25 @@ const AppPromotion = () => { - - - - + - theme.palette.mode === "dark" - ? "brightness(0.7)" - : "none", }} />