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

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 { RootContainerWidthContext } from "./contexts/RootContainerWidthContext";
// const defaultQuizId = "45ef7f9c-784d-4e58-badb-f6b337f08ba0"; // branching
const defaultQuizId = "9ed8d0e9-d355-4fc1-8b89-4f962e3efc52"; //looooong header
const defaultQuizId = "48471ba0-a639-4be2-91e3-50149c4b73af"; // branching
//const defaultQuizId = "9ed8d0e9-d355-4fc1-8b89-4f962e3efc52"; //looooong header
// const defaultQuizId = "a9d31460-132a-4479-a3f0-90241498b6f9"; // linear
export default function App() {

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

@ -1,4 +1,4 @@
import { Box, useTheme } from "@mui/material";
import {Box, Link, useTheme} from "@mui/material";
import { Footer } from "./Footer";
import { Date } from "./questions/Date";
@ -58,9 +58,14 @@ console.log(settings)
}}>
<QuestionByType question={currentQuestion} />
{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>
<Footer

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

@ -237,10 +237,14 @@ export const StartPageViewPublication = () => {
</Box>
<Box
component={Link}
target={"_blank"}
href={"https://quiz.pena.digital"}
sx={{
display: "flex",
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") }} />