fix: show_badge

This commit is contained in:
IlyaDoronin 2024-03-07 16:20:02 +03:00
parent eb6c0fbd26
commit dd65ea2091

@ -25,7 +25,7 @@ import PenaLogo from "@icons/PenaLogo.png";
export const StartPageViewPublication = () => { export const StartPageViewPublication = () => {
const theme = useTheme(); const theme = useTheme();
const { settings } = useQuizData(); const { settings, show_badge } = useQuizData();
const { isMobileDevice } = useUADevice(); const { isMobileDevice } = useUADevice();
const isMobile = useRootContainerSize() < 700; const isMobile = useRootContainerSize() < 700;
const isTablet = useRootContainerSize() < 800; const isTablet = useRootContainerSize() < 800;
@ -324,42 +324,44 @@ export const StartPageViewPublication = () => {
</Typography> </Typography>
</Box> </Box>
<Box {show_badge && (
component={Link} <Box
target={"_blank"} component={Link}
href={"https://quiz.pena.digital"} target={"_blank"}
sx={{ href={"https://quiz.pena.digital"}
display: "flex",
alignItems: "center",
gap: "15px",
textDecoration: "none",
}}
>
<NameplateLogo
style={{
fontSize: "34px",
color:
settings.cfg.startpageType === "expanded"
? "#FFFFFF"
: quizThemes[settings.cfg.theme].isLight
? "#151515"
: "#FFFFFF",
}}
/>
<Typography
sx={{ sx={{
color: display: "flex",
settings.cfg.startpageType === "expanded" alignItems: "center",
? "#F5F7FF" gap: "15px",
: quizThemes[settings.cfg.theme].isLight textDecoration: "none",
? "#4D4D4D"
: "#F5F7FF",
whiteSpace: "nowrap",
}} }}
> >
Сделано на PenaQuiz <NameplateLogo
</Typography> style={{
</Box> fontSize: "34px",
color:
settings.cfg.startpageType === "expanded"
? "#FFFFFF"
: quizThemes[settings.cfg.theme].isLight
? "#151515"
: "#FFFFFF",
}}
/>
<Typography
sx={{
color:
settings.cfg.startpageType === "expanded"
? "#F5F7FF"
: quizThemes[settings.cfg.theme].isLight
? "#4D4D4D"
: "#F5F7FF",
whiteSpace: "nowrap",
}}
>
Сделано на PenaQuiz
</Typography>
</Box>
)}
</Box> </Box>
</> </>
} }