ссылки на главную квизов в шильдиках

This commit is contained in:
Tamara 2024-02-11 22:48:59 +03:00
parent f64b9e3f91
commit 6c4e861615
5 changed files with 24 additions and 7 deletions

@ -5,8 +5,8 @@ import QuizAnswerer from "./QuizAnswerer";
import { QuizIdContext } from "./contexts/QuizIdContext"; import { QuizIdContext } from "./contexts/QuizIdContext";
import { RootContainerWidthContext } from "./contexts/RootContainerWidthContext"; import { RootContainerWidthContext } from "./contexts/RootContainerWidthContext";
// const defaultQuizId = "45ef7f9c-784d-4e58-badb-f6b337f08ba0"; // branching const defaultQuizId = "48471ba0-a639-4be2-91e3-50149c4b73af"; // branching
const defaultQuizId = "9ed8d0e9-d355-4fc1-8b89-4f962e3efc52"; //looooong header //const defaultQuizId = "9ed8d0e9-d355-4fc1-8b89-4f962e3efc52"; //looooong header
// const defaultQuizId = "a9d31460-132a-4479-a3f0-90241498b6f9"; // linear // const defaultQuizId = "a9d31460-132a-4479-a3f0-90241498b6f9"; // linear
export default function App() { export default function App() {

@ -276,11 +276,15 @@ export const ContactForm = ({ currentQuestion, onShowResult }: Props) => {
</Typography> </Typography>
</Box> </Box>
<Box <Box
component={Link}
target={"_blank"}
href={"https://quiz.pena.digital"}
sx={{ sx={{
display: "flex", display: "flex",
alignItems: "center", alignItems: "center",
mt: "20px", mt: "20px",
gap: "15px", gap: "15px",
textDecoration: "none",
}} }}
> >
<NameplateLogo <NameplateLogo

@ -1,4 +1,4 @@
import { Box, useTheme } from "@mui/material"; import {Box, Link, useTheme} from "@mui/material";
import { Footer } from "./Footer"; import { Footer } from "./Footer";
import { Date } from "./questions/Date"; import { Date } from "./questions/Date";
@ -58,9 +58,14 @@ console.log(settings)
}}> }}>
<QuestionByType question={currentQuestion} /> <QuestionByType question={currentQuestion} />
{quizThemes[settings.cfg.theme].isLight ? ( {quizThemes[settings.cfg.theme].isLight ? (
<NameplateLogoFQ style={{ fontSize: "34px", width: "200px", height: "auto" }} /> <Link target={"_blank"} href={"https://quiz.pena.digital"}>
<NameplateLogoFQ style={{ fontSize: "34px", width: "200px", height: "auto" }} />
</Link>
) : ( ) : (
<NameplateLogoFQDark style={{ fontSize: "34px", width: "200px", height: "auto" }} /> <Link target={"_blank"} href={"https://quiz.pena.digital"}>
<NameplateLogoFQDark style={{ fontSize: "34px", width: "200px", height: "auto" }} />
</Link>
)} )}
</Box> </Box>
<Footer <Footer

@ -1,6 +1,6 @@
import { import {
Box, Box,
Button, Button, Link,
Typography, Typography,
useTheme useTheme
} from "@mui/material"; } from "@mui/material";
@ -123,11 +123,15 @@ export const ResultForm = ({ resultQuestion }: ResultFormProps) => {
}} }}
> >
<Box <Box
component={Link}
target={"_blank"}
href={"https://quiz.pena.digital"}
sx={{ sx={{
display: "flex", display: "flex",
alignItems: "center", alignItems: "center",
mt: "15px", mt: "15px",
gap: "10px", gap: "10px",
textDecoration: "none",
}} }}
> >
<NameplateLogo <NameplateLogo

@ -237,10 +237,14 @@ export const StartPageViewPublication = () => {
</Box> </Box>
<Box <Box
component={Link}
target={"_blank"}
href={"https://quiz.pena.digital"}
sx={{ sx={{
display: "flex", display: "flex",
alignItems: "center", alignItems: "center",
gap: "15px" gap: "15px",
textDecoration: "none"
}} }}
> >
<NameplateLogo style={{ fontSize: "34px", color: settings.cfg.startpageType === "expanded" && !isMobile ? "#FFFFFF" : (quizThemes[settings.cfg.theme].isLight ? "#151515" : "#FFFFFF") }} /> <NameplateLogo style={{ fontSize: "34px", color: settings.cfg.startpageType === "expanded" && !isMobile ? "#FFFFFF" : (quizThemes[settings.cfg.theme].isLight ? "#151515" : "#FFFFFF") }} />