diff --git a/public/index.html b/public/index.html
index b9522be0..42fbc250 100755
--- a/public/index.html
+++ b/public/index.html
@@ -1,12 +1,16 @@
+
+
-
-
-
- Pena Quiz
-
-
+
+ Повышение конкурентоспособности "
+ />
-
-
-
+
+
+
+
+
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+ //
+ var _tmr = window._tmr || (window._tmr = []);
+ _tmr.push({
+ id: "3513005",
+ type: "pageView",
+ start: new Date().getTime(),
+ });
+ (function (d, w, id) {
+ if (d.getElementById(id)) return;
+ var ts = d.createElement("script");
+ ts.type = "text/javascript";
+ ts.async = true;
+ ts.id = id;
+ ts.src = "https://top-fwz1.mail.ru/js/code.js";
+ var f = function () {
+ var s = d.getElementsByTagName("script")[0];
+ s.parentNode.insertBefore(ts, s);
+ };
+ if (w.opera == "[object Opera]") {
+ d.addEventListener("DOMContentLoaded", f, false);
+ } else {
+ f();
+ }
+ })(document, window, "tmr-code");
+ //
+ }
+ if (domain === "squiz.pena.digital") {
+ ym(96979625, "init", {
+ clickmap: true,
+ trackLinks: true,
+ accurateTrackBounce: true,
+ webvisor: true,
+ });
+ }
+ if (domain === "penaquiz.online" || domain === "penaquiz.ru") {
+ ym(97241101, "init", {
+ clickmap: true,
+ trackLinks: true,
+ accurateTrackBounce: true,
+ webvisor: true,
+ });
+ }
+
+
+
+
+
+
+
+
diff --git a/src/App.tsx b/src/App.tsx
index 5dd12884..bf1eaa38 100644
--- a/src/App.tsx
+++ b/src/App.tsx
@@ -43,6 +43,7 @@ import { useUserAccountFetcher } from "@utils/hooks/useUserAccountFetcher";
const MyQuizzesFull = lazy(() => import("./pages/createQuize/MyQuizzesFull"));
+const QuizGallery = lazy(() => import("./pages/createQuize/QuizGallery"));
const ViewPage = lazy(() => import("./pages/ViewPublicationPage"));
const Analytics = lazy(() => import("./pages/Analytics/Analytics"));
const EditPage = lazy(() => import("./pages/startPage/EditPage"));
@@ -201,6 +202,10 @@ export default function App() {
/>
}
/>
+ } />}
+ />
} />}
diff --git a/src/api/quiz.ts b/src/api/quiz.ts
index e6d05a3d..7d1f4d3d 100644
--- a/src/api/quiz.ts
+++ b/src/api/quiz.ts
@@ -164,6 +164,28 @@ export const addQuizImages = async (
}
};
+export const copyQuizTemplate = async (
+ qid: string,
+): Promise<[number | null, string?]> => {
+ try {
+ const { id } = await makeRequest<{ Qid: string }, { id: number }>({
+ method: "POST",
+ url: `${API_URL}/quiz/template`,
+ body: { Qid: qid },
+ });
+
+ if (!id) {
+ return [null, `Не удалось скопировать шаблон квиза.`];
+ }
+
+ return [id];
+ } catch (nativeError) {
+ const [error] = parseAxiosError(nativeError);
+
+ return [null, `Не удалось скопировать шаблон квиза. ${error}`];
+ }
+};
+
export const quizApi = {
create: createQuiz,
getList: getQuizList,
@@ -172,6 +194,7 @@ export const quizApi = {
copy: copyQuiz,
delete: deleteQuiz,
addImages: addQuizImages,
+ copyTemplate: copyQuizTemplate,
};
const defaultCreateQuizBody: CreateQuizRequest = {
diff --git a/src/assets/quiz-template-1.png b/src/assets/quiz-template-1.png
deleted file mode 100755
index 0703b74a..00000000
Binary files a/src/assets/quiz-template-1.png and /dev/null differ
diff --git a/src/assets/quiz-template-2.png b/src/assets/quiz-template-2.png
deleted file mode 100755
index f92c8c6b..00000000
Binary files a/src/assets/quiz-template-2.png and /dev/null differ
diff --git a/src/assets/quiz-template-3.png b/src/assets/quiz-template-3.png
deleted file mode 100755
index 8bb8e8c3..00000000
Binary files a/src/assets/quiz-template-3.png and /dev/null differ
diff --git a/src/assets/quiz-template-4.png b/src/assets/quiz-template-4.png
deleted file mode 100755
index 11ecf89f..00000000
Binary files a/src/assets/quiz-template-4.png and /dev/null differ
diff --git a/src/assets/quiz-template-5.png b/src/assets/quiz-template-5.png
deleted file mode 100755
index 4cbde4e2..00000000
Binary files a/src/assets/quiz-template-5.png and /dev/null differ
diff --git a/src/assets/quiz-template-6.png b/src/assets/quiz-template-6.png
deleted file mode 100755
index 0308e86f..00000000
Binary files a/src/assets/quiz-template-6.png and /dev/null differ
diff --git a/src/assets/quiz-templates/auto/auto-1.jpg b/src/assets/quiz-templates/auto/auto-1.jpg
new file mode 100644
index 00000000..4f3d9fac
Binary files /dev/null and b/src/assets/quiz-templates/auto/auto-1.jpg differ
diff --git a/src/assets/quiz-templates/auto/auto-10.jpg b/src/assets/quiz-templates/auto/auto-10.jpg
new file mode 100644
index 00000000..474c8c1a
Binary files /dev/null and b/src/assets/quiz-templates/auto/auto-10.jpg differ
diff --git a/src/assets/quiz-templates/auto/auto-2.jpg b/src/assets/quiz-templates/auto/auto-2.jpg
new file mode 100644
index 00000000..3bd51d36
Binary files /dev/null and b/src/assets/quiz-templates/auto/auto-2.jpg differ
diff --git a/src/assets/quiz-templates/auto/auto-3.jpg b/src/assets/quiz-templates/auto/auto-3.jpg
new file mode 100644
index 00000000..320f7d0b
Binary files /dev/null and b/src/assets/quiz-templates/auto/auto-3.jpg differ
diff --git a/src/assets/quiz-templates/auto/auto-4.jpg b/src/assets/quiz-templates/auto/auto-4.jpg
new file mode 100644
index 00000000..1a3c4983
Binary files /dev/null and b/src/assets/quiz-templates/auto/auto-4.jpg differ
diff --git a/src/assets/quiz-templates/auto/auto-5.jpg b/src/assets/quiz-templates/auto/auto-5.jpg
new file mode 100644
index 00000000..e0a5b948
Binary files /dev/null and b/src/assets/quiz-templates/auto/auto-5.jpg differ
diff --git a/src/assets/quiz-templates/auto/auto-6.jpg b/src/assets/quiz-templates/auto/auto-6.jpg
new file mode 100644
index 00000000..94d71b30
Binary files /dev/null and b/src/assets/quiz-templates/auto/auto-6.jpg differ
diff --git a/src/assets/quiz-templates/auto/auto-7.jpg b/src/assets/quiz-templates/auto/auto-7.jpg
new file mode 100644
index 00000000..286e7a61
Binary files /dev/null and b/src/assets/quiz-templates/auto/auto-7.jpg differ
diff --git a/src/assets/quiz-templates/auto/auto-8.jpg b/src/assets/quiz-templates/auto/auto-8.jpg
new file mode 100644
index 00000000..b1887c9f
Binary files /dev/null and b/src/assets/quiz-templates/auto/auto-8.jpg differ
diff --git a/src/assets/quiz-templates/auto/auto-9.jpg b/src/assets/quiz-templates/auto/auto-9.jpg
new file mode 100644
index 00000000..4521fcc4
Binary files /dev/null and b/src/assets/quiz-templates/auto/auto-9.jpg differ
diff --git a/src/assets/quiz-templates/education/education-1.jpg b/src/assets/quiz-templates/education/education-1.jpg
new file mode 100644
index 00000000..a4eddf4d
Binary files /dev/null and b/src/assets/quiz-templates/education/education-1.jpg differ
diff --git a/src/assets/quiz-templates/education/education-10.jpg b/src/assets/quiz-templates/education/education-10.jpg
new file mode 100644
index 00000000..708c3f03
Binary files /dev/null and b/src/assets/quiz-templates/education/education-10.jpg differ
diff --git a/src/assets/quiz-templates/education/education-2.jpg b/src/assets/quiz-templates/education/education-2.jpg
new file mode 100644
index 00000000..9de16bf0
Binary files /dev/null and b/src/assets/quiz-templates/education/education-2.jpg differ
diff --git a/src/assets/quiz-templates/education/education-3.jpg b/src/assets/quiz-templates/education/education-3.jpg
new file mode 100644
index 00000000..30ffb39f
Binary files /dev/null and b/src/assets/quiz-templates/education/education-3.jpg differ
diff --git a/src/assets/quiz-templates/education/education-4.jpg b/src/assets/quiz-templates/education/education-4.jpg
new file mode 100644
index 00000000..fc47aa35
Binary files /dev/null and b/src/assets/quiz-templates/education/education-4.jpg differ
diff --git a/src/assets/quiz-templates/education/education-5.jpg b/src/assets/quiz-templates/education/education-5.jpg
new file mode 100644
index 00000000..5b9dbbb1
Binary files /dev/null and b/src/assets/quiz-templates/education/education-5.jpg differ
diff --git a/src/assets/quiz-templates/education/education-6.jpg b/src/assets/quiz-templates/education/education-6.jpg
new file mode 100644
index 00000000..2848f557
Binary files /dev/null and b/src/assets/quiz-templates/education/education-6.jpg differ
diff --git a/src/assets/quiz-templates/education/education-7.jpg b/src/assets/quiz-templates/education/education-7.jpg
new file mode 100644
index 00000000..7a291aab
Binary files /dev/null and b/src/assets/quiz-templates/education/education-7.jpg differ
diff --git a/src/assets/quiz-templates/education/education-8.jpg b/src/assets/quiz-templates/education/education-8.jpg
new file mode 100644
index 00000000..562122fc
Binary files /dev/null and b/src/assets/quiz-templates/education/education-8.jpg differ
diff --git a/src/assets/quiz-templates/education/education-9.jpg b/src/assets/quiz-templates/education/education-9.jpg
new file mode 100644
index 00000000..33852229
Binary files /dev/null and b/src/assets/quiz-templates/education/education-9.jpg differ
diff --git a/src/assets/quiz-templates/health/health-1.jpg b/src/assets/quiz-templates/health/health-1.jpg
new file mode 100644
index 00000000..8e3c5adb
Binary files /dev/null and b/src/assets/quiz-templates/health/health-1.jpg differ
diff --git a/src/assets/quiz-templates/health/health-10.jpg b/src/assets/quiz-templates/health/health-10.jpg
new file mode 100644
index 00000000..ff8f4b4e
Binary files /dev/null and b/src/assets/quiz-templates/health/health-10.jpg differ
diff --git a/src/assets/quiz-templates/health/health-11.jpg b/src/assets/quiz-templates/health/health-11.jpg
new file mode 100644
index 00000000..32ec9c3e
Binary files /dev/null and b/src/assets/quiz-templates/health/health-11.jpg differ
diff --git a/src/assets/quiz-templates/health/health-12.jpg b/src/assets/quiz-templates/health/health-12.jpg
new file mode 100644
index 00000000..3107437f
Binary files /dev/null and b/src/assets/quiz-templates/health/health-12.jpg differ
diff --git a/src/assets/quiz-templates/health/health-13.jpg b/src/assets/quiz-templates/health/health-13.jpg
new file mode 100644
index 00000000..ed2be7fb
Binary files /dev/null and b/src/assets/quiz-templates/health/health-13.jpg differ
diff --git a/src/assets/quiz-templates/health/health-14.jpg b/src/assets/quiz-templates/health/health-14.jpg
new file mode 100644
index 00000000..5298f25c
Binary files /dev/null and b/src/assets/quiz-templates/health/health-14.jpg differ
diff --git a/src/assets/quiz-templates/health/health-15.jpg b/src/assets/quiz-templates/health/health-15.jpg
new file mode 100644
index 00000000..d2ca84c6
Binary files /dev/null and b/src/assets/quiz-templates/health/health-15.jpg differ
diff --git a/src/assets/quiz-templates/health/health-16.jpg b/src/assets/quiz-templates/health/health-16.jpg
new file mode 100644
index 00000000..7f8163c6
Binary files /dev/null and b/src/assets/quiz-templates/health/health-16.jpg differ
diff --git a/src/assets/quiz-templates/health/health-17.jpg b/src/assets/quiz-templates/health/health-17.jpg
new file mode 100644
index 00000000..a9621787
Binary files /dev/null and b/src/assets/quiz-templates/health/health-17.jpg differ
diff --git a/src/assets/quiz-templates/health/health-18.jpg b/src/assets/quiz-templates/health/health-18.jpg
new file mode 100644
index 00000000..4225df96
Binary files /dev/null and b/src/assets/quiz-templates/health/health-18.jpg differ
diff --git a/src/assets/quiz-templates/health/health-19.jpg b/src/assets/quiz-templates/health/health-19.jpg
new file mode 100644
index 00000000..e2707907
Binary files /dev/null and b/src/assets/quiz-templates/health/health-19.jpg differ
diff --git a/src/assets/quiz-templates/health/health-2.jpg b/src/assets/quiz-templates/health/health-2.jpg
new file mode 100644
index 00000000..1ee282a7
Binary files /dev/null and b/src/assets/quiz-templates/health/health-2.jpg differ
diff --git a/src/assets/quiz-templates/health/health-20.jpg b/src/assets/quiz-templates/health/health-20.jpg
new file mode 100644
index 00000000..c99d10cd
Binary files /dev/null and b/src/assets/quiz-templates/health/health-20.jpg differ
diff --git a/src/assets/quiz-templates/health/health-3.jpg b/src/assets/quiz-templates/health/health-3.jpg
new file mode 100644
index 00000000..22c0ec91
Binary files /dev/null and b/src/assets/quiz-templates/health/health-3.jpg differ
diff --git a/src/assets/quiz-templates/health/health-4.jpg b/src/assets/quiz-templates/health/health-4.jpg
new file mode 100644
index 00000000..204d518f
Binary files /dev/null and b/src/assets/quiz-templates/health/health-4.jpg differ
diff --git a/src/assets/quiz-templates/health/health-5.jpg b/src/assets/quiz-templates/health/health-5.jpg
new file mode 100644
index 00000000..6fe60567
Binary files /dev/null and b/src/assets/quiz-templates/health/health-5.jpg differ
diff --git a/src/assets/quiz-templates/health/health-6.jpg b/src/assets/quiz-templates/health/health-6.jpg
new file mode 100644
index 00000000..6b742ba6
Binary files /dev/null and b/src/assets/quiz-templates/health/health-6.jpg differ
diff --git a/src/assets/quiz-templates/health/health-7.jpg b/src/assets/quiz-templates/health/health-7.jpg
new file mode 100644
index 00000000..25a40b9a
Binary files /dev/null and b/src/assets/quiz-templates/health/health-7.jpg differ
diff --git a/src/assets/quiz-templates/health/health-8.jpg b/src/assets/quiz-templates/health/health-8.jpg
new file mode 100644
index 00000000..f777831f
Binary files /dev/null and b/src/assets/quiz-templates/health/health-8.jpg differ
diff --git a/src/assets/quiz-templates/health/health-9.jpg b/src/assets/quiz-templates/health/health-9.jpg
new file mode 100644
index 00000000..fdb1d6b0
Binary files /dev/null and b/src/assets/quiz-templates/health/health-9.jpg differ
diff --git a/src/assets/quiz-templates/production/production-1.jpg b/src/assets/quiz-templates/production/production-1.jpg
new file mode 100644
index 00000000..552e5424
Binary files /dev/null and b/src/assets/quiz-templates/production/production-1.jpg differ
diff --git a/src/assets/quiz-templates/production/production-10.jpg b/src/assets/quiz-templates/production/production-10.jpg
new file mode 100644
index 00000000..da3b0e6d
Binary files /dev/null and b/src/assets/quiz-templates/production/production-10.jpg differ
diff --git a/src/assets/quiz-templates/production/production-2.jpg b/src/assets/quiz-templates/production/production-2.jpg
new file mode 100644
index 00000000..ff72fd2d
Binary files /dev/null and b/src/assets/quiz-templates/production/production-2.jpg differ
diff --git a/src/assets/quiz-templates/production/production-3.jpg b/src/assets/quiz-templates/production/production-3.jpg
new file mode 100644
index 00000000..48861a81
Binary files /dev/null and b/src/assets/quiz-templates/production/production-3.jpg differ
diff --git a/src/assets/quiz-templates/production/production-4.jpg b/src/assets/quiz-templates/production/production-4.jpg
new file mode 100644
index 00000000..7bc8fb01
Binary files /dev/null and b/src/assets/quiz-templates/production/production-4.jpg differ
diff --git a/src/assets/quiz-templates/production/production-5.jpg b/src/assets/quiz-templates/production/production-5.jpg
new file mode 100644
index 00000000..587d05a3
Binary files /dev/null and b/src/assets/quiz-templates/production/production-5.jpg differ
diff --git a/src/assets/quiz-templates/production/production-6.jpg b/src/assets/quiz-templates/production/production-6.jpg
new file mode 100644
index 00000000..e0316fdb
Binary files /dev/null and b/src/assets/quiz-templates/production/production-6.jpg differ
diff --git a/src/assets/quiz-templates/production/production-7.jpg b/src/assets/quiz-templates/production/production-7.jpg
new file mode 100644
index 00000000..4381c548
Binary files /dev/null and b/src/assets/quiz-templates/production/production-7.jpg differ
diff --git a/src/assets/quiz-templates/production/production-8.jpg b/src/assets/quiz-templates/production/production-8.jpg
new file mode 100644
index 00000000..fd9095f6
Binary files /dev/null and b/src/assets/quiz-templates/production/production-8.jpg differ
diff --git a/src/assets/quiz-templates/production/production-9.jpg b/src/assets/quiz-templates/production/production-9.jpg
new file mode 100644
index 00000000..9c7599f3
Binary files /dev/null and b/src/assets/quiz-templates/production/production-9.jpg differ
diff --git a/src/assets/quiz-templates/real-estate/real-estate-1.jpg b/src/assets/quiz-templates/real-estate/real-estate-1.jpg
new file mode 100644
index 00000000..bb2bee4a
Binary files /dev/null and b/src/assets/quiz-templates/real-estate/real-estate-1.jpg differ
diff --git a/src/assets/quiz-templates/real-estate/real-estate-10.jpg b/src/assets/quiz-templates/real-estate/real-estate-10.jpg
new file mode 100644
index 00000000..d3056e71
Binary files /dev/null and b/src/assets/quiz-templates/real-estate/real-estate-10.jpg differ
diff --git a/src/assets/quiz-templates/real-estate/real-estate-2.jpg b/src/assets/quiz-templates/real-estate/real-estate-2.jpg
new file mode 100644
index 00000000..2e888341
Binary files /dev/null and b/src/assets/quiz-templates/real-estate/real-estate-2.jpg differ
diff --git a/src/assets/quiz-templates/real-estate/real-estate-3.jpg b/src/assets/quiz-templates/real-estate/real-estate-3.jpg
new file mode 100644
index 00000000..4138b906
Binary files /dev/null and b/src/assets/quiz-templates/real-estate/real-estate-3.jpg differ
diff --git a/src/assets/quiz-templates/real-estate/real-estate-4.jpg b/src/assets/quiz-templates/real-estate/real-estate-4.jpg
new file mode 100644
index 00000000..a127edae
Binary files /dev/null and b/src/assets/quiz-templates/real-estate/real-estate-4.jpg differ
diff --git a/src/assets/quiz-templates/real-estate/real-estate-5.jpg b/src/assets/quiz-templates/real-estate/real-estate-5.jpg
new file mode 100644
index 00000000..cc166feb
Binary files /dev/null and b/src/assets/quiz-templates/real-estate/real-estate-5.jpg differ
diff --git a/src/assets/quiz-templates/real-estate/real-estate-6.jpg b/src/assets/quiz-templates/real-estate/real-estate-6.jpg
new file mode 100644
index 00000000..37956278
Binary files /dev/null and b/src/assets/quiz-templates/real-estate/real-estate-6.jpg differ
diff --git a/src/assets/quiz-templates/real-estate/real-estate-7.jpg b/src/assets/quiz-templates/real-estate/real-estate-7.jpg
new file mode 100644
index 00000000..2d2b5f9b
Binary files /dev/null and b/src/assets/quiz-templates/real-estate/real-estate-7.jpg differ
diff --git a/src/assets/quiz-templates/real-estate/real-estate-8.jpg b/src/assets/quiz-templates/real-estate/real-estate-8.jpg
new file mode 100644
index 00000000..dc04f3a8
Binary files /dev/null and b/src/assets/quiz-templates/real-estate/real-estate-8.jpg differ
diff --git a/src/assets/quiz-templates/real-estate/real-estate-9.jpg b/src/assets/quiz-templates/real-estate/real-estate-9.jpg
new file mode 100644
index 00000000..52166193
Binary files /dev/null and b/src/assets/quiz-templates/real-estate/real-estate-9.jpg differ
diff --git a/src/assets/quiz-templates/repair/repair-1.jpg b/src/assets/quiz-templates/repair/repair-1.jpg
new file mode 100644
index 00000000..955aaa4c
Binary files /dev/null and b/src/assets/quiz-templates/repair/repair-1.jpg differ
diff --git a/src/assets/quiz-templates/repair/repair-10.jpg b/src/assets/quiz-templates/repair/repair-10.jpg
new file mode 100644
index 00000000..d5fb0a01
Binary files /dev/null and b/src/assets/quiz-templates/repair/repair-10.jpg differ
diff --git a/src/assets/quiz-templates/repair/repair-2.jpg b/src/assets/quiz-templates/repair/repair-2.jpg
new file mode 100644
index 00000000..2dcc183c
Binary files /dev/null and b/src/assets/quiz-templates/repair/repair-2.jpg differ
diff --git a/src/assets/quiz-templates/repair/repair-3.jpg b/src/assets/quiz-templates/repair/repair-3.jpg
new file mode 100644
index 00000000..4d458251
Binary files /dev/null and b/src/assets/quiz-templates/repair/repair-3.jpg differ
diff --git a/src/assets/quiz-templates/repair/repair-4.jpg b/src/assets/quiz-templates/repair/repair-4.jpg
new file mode 100644
index 00000000..1559a542
Binary files /dev/null and b/src/assets/quiz-templates/repair/repair-4.jpg differ
diff --git a/src/assets/quiz-templates/repair/repair-5.jpg b/src/assets/quiz-templates/repair/repair-5.jpg
new file mode 100644
index 00000000..5a27a6c4
Binary files /dev/null and b/src/assets/quiz-templates/repair/repair-5.jpg differ
diff --git a/src/assets/quiz-templates/repair/repair-6.jpg b/src/assets/quiz-templates/repair/repair-6.jpg
new file mode 100644
index 00000000..5e44c5b9
Binary files /dev/null and b/src/assets/quiz-templates/repair/repair-6.jpg differ
diff --git a/src/assets/quiz-templates/repair/repair-7.jpg b/src/assets/quiz-templates/repair/repair-7.jpg
new file mode 100644
index 00000000..f58f34c0
Binary files /dev/null and b/src/assets/quiz-templates/repair/repair-7.jpg differ
diff --git a/src/assets/quiz-templates/repair/repair-8.jpg b/src/assets/quiz-templates/repair/repair-8.jpg
new file mode 100644
index 00000000..7a07141e
Binary files /dev/null and b/src/assets/quiz-templates/repair/repair-8.jpg differ
diff --git a/src/assets/quiz-templates/repair/repair-9.jpg b/src/assets/quiz-templates/repair/repair-9.jpg
new file mode 100644
index 00000000..a0a44e86
Binary files /dev/null and b/src/assets/quiz-templates/repair/repair-9.jpg differ
diff --git a/src/assets/quiz-templates/research/research-1.jpg b/src/assets/quiz-templates/research/research-1.jpg
new file mode 100644
index 00000000..c2880274
Binary files /dev/null and b/src/assets/quiz-templates/research/research-1.jpg differ
diff --git a/src/assets/quiz-templates/research/research-10.jpg b/src/assets/quiz-templates/research/research-10.jpg
new file mode 100644
index 00000000..302be762
Binary files /dev/null and b/src/assets/quiz-templates/research/research-10.jpg differ
diff --git a/src/assets/quiz-templates/research/research-2.jpg b/src/assets/quiz-templates/research/research-2.jpg
new file mode 100644
index 00000000..db853cd9
Binary files /dev/null and b/src/assets/quiz-templates/research/research-2.jpg differ
diff --git a/src/assets/quiz-templates/research/research-3.jpg b/src/assets/quiz-templates/research/research-3.jpg
new file mode 100644
index 00000000..a9a7cf02
Binary files /dev/null and b/src/assets/quiz-templates/research/research-3.jpg differ
diff --git a/src/assets/quiz-templates/research/research-4.jpg b/src/assets/quiz-templates/research/research-4.jpg
new file mode 100644
index 00000000..a2060d11
Binary files /dev/null and b/src/assets/quiz-templates/research/research-4.jpg differ
diff --git a/src/assets/quiz-templates/research/research-5.jpg b/src/assets/quiz-templates/research/research-5.jpg
new file mode 100644
index 00000000..84cb8e6c
Binary files /dev/null and b/src/assets/quiz-templates/research/research-5.jpg differ
diff --git a/src/assets/quiz-templates/research/research-6.jpg b/src/assets/quiz-templates/research/research-6.jpg
new file mode 100644
index 00000000..3a3c4894
Binary files /dev/null and b/src/assets/quiz-templates/research/research-6.jpg differ
diff --git a/src/assets/quiz-templates/research/research-7.jpg b/src/assets/quiz-templates/research/research-7.jpg
new file mode 100644
index 00000000..02ec0b83
Binary files /dev/null and b/src/assets/quiz-templates/research/research-7.jpg differ
diff --git a/src/assets/quiz-templates/research/research-8.jpg b/src/assets/quiz-templates/research/research-8.jpg
new file mode 100644
index 00000000..06cf702c
Binary files /dev/null and b/src/assets/quiz-templates/research/research-8.jpg differ
diff --git a/src/assets/quiz-templates/research/research-9.jpg b/src/assets/quiz-templates/research/research-9.jpg
new file mode 100644
index 00000000..884cb602
Binary files /dev/null and b/src/assets/quiz-templates/research/research-9.jpg differ
diff --git a/src/assets/quiz-templates/services/service-1.jpg b/src/assets/quiz-templates/services/service-1.jpg
new file mode 100644
index 00000000..51a36fb4
Binary files /dev/null and b/src/assets/quiz-templates/services/service-1.jpg differ
diff --git a/src/assets/quiz-templates/services/service-10.jpg b/src/assets/quiz-templates/services/service-10.jpg
new file mode 100644
index 00000000..a2303dff
Binary files /dev/null and b/src/assets/quiz-templates/services/service-10.jpg differ
diff --git a/src/assets/quiz-templates/services/service-11.jpg b/src/assets/quiz-templates/services/service-11.jpg
new file mode 100644
index 00000000..15111b28
Binary files /dev/null and b/src/assets/quiz-templates/services/service-11.jpg differ
diff --git a/src/assets/quiz-templates/services/service-2.jpg b/src/assets/quiz-templates/services/service-2.jpg
new file mode 100644
index 00000000..08140977
Binary files /dev/null and b/src/assets/quiz-templates/services/service-2.jpg differ
diff --git a/src/assets/quiz-templates/services/service-3.jpg b/src/assets/quiz-templates/services/service-3.jpg
new file mode 100644
index 00000000..96b87209
Binary files /dev/null and b/src/assets/quiz-templates/services/service-3.jpg differ
diff --git a/src/assets/quiz-templates/services/service-4.jpg b/src/assets/quiz-templates/services/service-4.jpg
new file mode 100644
index 00000000..a04654e3
Binary files /dev/null and b/src/assets/quiz-templates/services/service-4.jpg differ
diff --git a/src/assets/quiz-templates/services/service-5.jpg b/src/assets/quiz-templates/services/service-5.jpg
new file mode 100644
index 00000000..8879f78e
Binary files /dev/null and b/src/assets/quiz-templates/services/service-5.jpg differ
diff --git a/src/assets/quiz-templates/services/service-6.jpg b/src/assets/quiz-templates/services/service-6.jpg
new file mode 100644
index 00000000..aabcbbe4
Binary files /dev/null and b/src/assets/quiz-templates/services/service-6.jpg differ
diff --git a/src/assets/quiz-templates/services/service-7.jpg b/src/assets/quiz-templates/services/service-7.jpg
new file mode 100644
index 00000000..2abf2b63
Binary files /dev/null and b/src/assets/quiz-templates/services/service-7.jpg differ
diff --git a/src/assets/quiz-templates/services/service-8.jpg b/src/assets/quiz-templates/services/service-8.jpg
new file mode 100644
index 00000000..20d3bb74
Binary files /dev/null and b/src/assets/quiz-templates/services/service-8.jpg differ
diff --git a/src/assets/quiz-templates/services/service-9.jpg b/src/assets/quiz-templates/services/service-9.jpg
new file mode 100644
index 00000000..26556403
Binary files /dev/null and b/src/assets/quiz-templates/services/service-9.jpg differ
diff --git a/src/assets/quiz-templates/template.svg b/src/assets/quiz-templates/template.svg
new file mode 100644
index 00000000..5ab271a0
--- /dev/null
+++ b/src/assets/quiz-templates/template.svg
@@ -0,0 +1,15 @@
+
diff --git a/src/assets/quiz-templates/tourism/tourism-1.jpg b/src/assets/quiz-templates/tourism/tourism-1.jpg
new file mode 100644
index 00000000..f4c788be
Binary files /dev/null and b/src/assets/quiz-templates/tourism/tourism-1.jpg differ
diff --git a/src/assets/quiz-templates/tourism/tourism-10.jpg b/src/assets/quiz-templates/tourism/tourism-10.jpg
new file mode 100644
index 00000000..c11ab435
Binary files /dev/null and b/src/assets/quiz-templates/tourism/tourism-10.jpg differ
diff --git a/src/assets/quiz-templates/tourism/tourism-2.jpg b/src/assets/quiz-templates/tourism/tourism-2.jpg
new file mode 100644
index 00000000..c6628bc7
Binary files /dev/null and b/src/assets/quiz-templates/tourism/tourism-2.jpg differ
diff --git a/src/assets/quiz-templates/tourism/tourism-3.jpg b/src/assets/quiz-templates/tourism/tourism-3.jpg
new file mode 100644
index 00000000..895d366c
Binary files /dev/null and b/src/assets/quiz-templates/tourism/tourism-3.jpg differ
diff --git a/src/assets/quiz-templates/tourism/tourism-4.jpg b/src/assets/quiz-templates/tourism/tourism-4.jpg
new file mode 100644
index 00000000..863b593f
Binary files /dev/null and b/src/assets/quiz-templates/tourism/tourism-4.jpg differ
diff --git a/src/assets/quiz-templates/tourism/tourism-5.jpg b/src/assets/quiz-templates/tourism/tourism-5.jpg
new file mode 100644
index 00000000..86913e09
Binary files /dev/null and b/src/assets/quiz-templates/tourism/tourism-5.jpg differ
diff --git a/src/assets/quiz-templates/tourism/tourism-6.jpg b/src/assets/quiz-templates/tourism/tourism-6.jpg
new file mode 100644
index 00000000..40912313
Binary files /dev/null and b/src/assets/quiz-templates/tourism/tourism-6.jpg differ
diff --git a/src/assets/quiz-templates/tourism/tourism-7.jpg b/src/assets/quiz-templates/tourism/tourism-7.jpg
new file mode 100644
index 00000000..25efa443
Binary files /dev/null and b/src/assets/quiz-templates/tourism/tourism-7.jpg differ
diff --git a/src/assets/quiz-templates/tourism/tourism-8.jpg b/src/assets/quiz-templates/tourism/tourism-8.jpg
new file mode 100644
index 00000000..a76a4437
Binary files /dev/null and b/src/assets/quiz-templates/tourism/tourism-8.jpg differ
diff --git a/src/assets/quiz-templates/tourism/tourism-9.jpg b/src/assets/quiz-templates/tourism/tourism-9.jpg
new file mode 100644
index 00000000..7db92d83
Binary files /dev/null and b/src/assets/quiz-templates/tourism/tourism-9.jpg differ
diff --git a/src/pages/createQuize/FirstQuiz.tsx b/src/pages/createQuize/FirstQuiz.tsx
index afa9ee46..8937dffd 100755
--- a/src/pages/createQuize/FirstQuiz.tsx
+++ b/src/pages/createQuize/FirstQuiz.tsx
@@ -1,45 +1,66 @@
-import { Button, Typography } from "@mui/material";
+import { Box, Button, Typography, useTheme } from "@mui/material";
import SectionWrapper from "@ui_kit/SectionWrapper";
import ComplexNavText from "./ComplexNavText";
import { createQuiz } from "@root/quizes/actions";
-import { useNavigate } from "react-router-dom";
+import { Link, useNavigate } from "react-router-dom";
import { resetEditConfig } from "@root/quizes/actions";
import AvailablePrivilege from "./AvailablePrivilege";
-import React from "react";
+
+import { ReactComponent as TemplateIcon } from "@/assets/quiz-templates/template.svg";
export default function FirstQuiz() {
const navigate = useNavigate();
+ const theme = useTheme();
return (
-
+
Создайте свой первый quiz
-
+
+
+
+
+
);
}
diff --git a/src/pages/createQuize/MyQuizzesFull.tsx b/src/pages/createQuize/MyQuizzesFull.tsx
index bd91e43b..268dbfc9 100644
--- a/src/pages/createQuize/MyQuizzesFull.tsx
+++ b/src/pages/createQuize/MyQuizzesFull.tsx
@@ -7,6 +7,7 @@ import {
useMediaQuery,
useTheme,
} from "@mui/material";
+import { Link } from "react-router-dom";
import {
copyQuiz,
createQuiz,
@@ -24,6 +25,8 @@ import HeaderFull from "@ui_kit/Header/HeaderFull";
import QuizgenegationName from "@utils/quizgenegationName";
import AvailablePrivilege from "./AvailablePrivilege";
+import { ReactComponent as TemplateIcon } from "@/assets/quiz-templates/template.svg";
+
interface Props {
outerContainerSx?: SxProps;
children?: React.ReactNode;
@@ -63,20 +66,50 @@ export default function MyQuizzesFull({
}}
>
Мои quiz
-
+
+
+
+
+
("");
- const [tabIndex, setTabIndex] = useState(0);
-
- const handleTabChange = (event: React.SyntheticEvent, newValue: number) => {
- setTabIndex(newValue);
- };
-
- return (
-
-
-
- Мои quiz
-
-
-
-
-
- Пустой шаблон
-
-
- Широкий инструментарий создания quiz с нуля
-
-
-
-
-
-
-
-
-
-
- ),
- }}
- />
-
-
-
- Категории
-
-
-
-
-
-
-
-
-
-
-
-
-
- Квизы
-
- (3)
-
-
-
-
-
-
-
- Исследования и опросы
-
- (3)
-
-
-
-
-
-
-
-
- Нет подходящего шаблона?
-
-
-
- );
-}
diff --git a/src/pages/createQuize/QuizGallery/QuizTemplateCard.tsx b/src/pages/createQuize/QuizGallery/QuizTemplateCard.tsx
new file mode 100644
index 00000000..b1ce6f8e
--- /dev/null
+++ b/src/pages/createQuize/QuizGallery/QuizTemplateCard.tsx
@@ -0,0 +1,118 @@
+import { Box, Chip, Typography, useTheme, useMediaQuery } from "@mui/material";
+import { useNavigate } from "react-router-dom";
+import { enqueueSnackbar } from "notistack";
+
+import { quizApi } from "@/api/quiz";
+import { setEditQuizId } from "@root/quizes/actions";
+
+import type { Template } from "./Template";
+
+interface QuizTemplateCardProps {
+ category: string;
+ template: Template;
+}
+
+export const QuizTemplateCard = ({
+ category,
+ template: { quizId, title, picture, categoryDescription },
+}: QuizTemplateCardProps) => {
+ const navigate = useNavigate();
+ const theme = useTheme();
+ const isTablet = useMediaQuery(theme.breakpoints.down("md"));
+
+ const copyTemplate = async () => {
+ const [copiedQuizId, copyError] = await quizApi.copyTemplate(quizId);
+
+ if (copyError || !copiedQuizId) {
+ return enqueueSnackbar(copyError);
+ }
+
+ setEditQuizId(copiedQuizId);
+ navigate("/edit");
+ };
+
+ return (
+
+
+
+
+ {categoryDescription && (
+
+ )}
+
+
+
+ {title}
+
+
+ );
+};
diff --git a/src/pages/createQuize/QuizGallery/SearchTemplate.tsx b/src/pages/createQuize/QuizGallery/SearchTemplate.tsx
new file mode 100644
index 00000000..2b58e590
--- /dev/null
+++ b/src/pages/createQuize/QuizGallery/SearchTemplate.tsx
@@ -0,0 +1,21 @@
+import { FormControl } from "@mui/material";
+
+import CustomTextField from "@ui_kit/CustomTextField";
+
+type SearchTemplateProps = {
+ searchValue: string;
+ setSearchValue: (value: string) => void;
+};
+
+export const SearchTemplate = ({
+ searchValue,
+ setSearchValue,
+}: SearchTemplateProps) => (
+
+ setSearchValue(target.value)}
+ />
+
+);
diff --git a/src/pages/createQuize/QuizGallery/SelectCategory.tsx b/src/pages/createQuize/QuizGallery/SelectCategory.tsx
new file mode 100644
index 00000000..426c3e3a
--- /dev/null
+++ b/src/pages/createQuize/QuizGallery/SelectCategory.tsx
@@ -0,0 +1,71 @@
+import { FormControl, InputLabel, MenuItem, Select } from "@mui/material";
+
+import ArrowDown from "@icons/ArrowDownIcon";
+
+import type { CategoryType } from "./Template";
+
+const CATEGORIES = [
+ { categoryType: "All", category: "Все" },
+ { categoryType: "Tourism", category: "Туризм" },
+ { categoryType: "Services", category: "Услуги" },
+ { categoryType: "RealEstate", category: "Недвижимость" },
+ { categoryType: "Auto", category: "Авто" },
+ { categoryType: "Health", category: "Здоровье и уход" },
+ { categoryType: "Research", category: "Исследовательские" },
+ { categoryType: "Production", category: "Производство" },
+ { categoryType: "Repair", category: "Ремонт" },
+ { categoryType: "Education", category: "Образование" },
+] as const;
+
+type SelectCategoryProps = {
+ categoryType: CategoryType | "All";
+ setCategoryType: (categoryType: CategoryType) => void;
+};
+
+export const SelectCategory = ({
+ categoryType,
+ setCategoryType,
+}: SelectCategoryProps) => (
+
+
+ Категории
+
+
+
+);
diff --git a/src/pages/createQuize/QuizGallery/Template.tsx b/src/pages/createQuize/QuizGallery/Template.tsx
new file mode 100644
index 00000000..f12254d0
--- /dev/null
+++ b/src/pages/createQuize/QuizGallery/Template.tsx
@@ -0,0 +1,75 @@
+import { Box, Typography, useTheme, useMediaQuery } from "@mui/material";
+import { QuizTemplateCard } from "./QuizTemplateCard";
+
+export type CategoryType =
+ | "Tourism"
+ | "Services"
+ | "RealEstate"
+ | "Auto"
+ | "Health"
+ | "Research"
+ | "Production"
+ | "Repair"
+ | "Education";
+
+export type Template = {
+ quizId: string;
+ picture: string;
+ title: string;
+ categoryDescription?: string;
+};
+
+export type Category = {
+ category: string;
+ categoryType: CategoryType;
+ templates: Template[];
+};
+
+type TemplateProps = {
+ template: Category;
+};
+
+export const Template = ({
+ template: { category, templates },
+}: TemplateProps) => {
+ const theme = useTheme();
+ const isSmallMonitor = useMediaQuery(theme.breakpoints.down(1100));
+ const isTablet = useMediaQuery(theme.breakpoints.down("md"));
+
+ return (
+ <>
+
+ {category}
+
+ ({templates.length})
+
+
+ {templates.map((template) => (
+
+ ))}
+
+ >
+ );
+};
diff --git a/src/pages/createQuize/QuizGallery/index.tsx b/src/pages/createQuize/QuizGallery/index.tsx
new file mode 100644
index 00000000..6e81e307
--- /dev/null
+++ b/src/pages/createQuize/QuizGallery/index.tsx
@@ -0,0 +1,90 @@
+import { useState, useMemo } from "react";
+import { Box, Button, Typography, useTheme } from "@mui/material";
+import { useNavigate } from "react-router-dom";
+import { createQuiz, resetEditConfig } from "@root/quizes/actions";
+import ComplexNavText from "../ComplexNavText";
+import { SearchTemplate } from "./SearchTemplate";
+import { SelectCategory } from "./SelectCategory";
+import { TEMPLATES } from "./templates";
+import { Template } from "./Template";
+
+import HeaderFull from "@ui_kit/Header/HeaderFull";
+
+import SectionWrapper from "@ui_kit/SectionWrapper";
+
+import type { Category, CategoryType } from "./Template";
+
+export default function QuizGallery() {
+ const [searchValue, setSearchValue] = useState("");
+ const [categoryType, setCategoryType] = useState("All");
+ const navigate = useNavigate();
+
+ const filteredTemplates = useMemo(
+ () =>
+ categoryType === "All"
+ ? TEMPLATES
+ : TEMPLATES.filter((item) => item.categoryType === categoryType),
+ [categoryType],
+ );
+ const foundTemplates = useMemo(
+ () =>
+ filteredTemplates.reduce((total, category) => {
+ const templates = category.templates.filter(({ title }) =>
+ title.toLowerCase().includes(searchValue.toLowerCase()),
+ );
+
+ if (!templates.length) {
+ return total;
+ }
+
+ return [...total, { ...category, templates }];
+ }, [] as Category[]),
+ [searchValue, categoryType],
+ );
+
+ return (
+
+
+
+
+
+ Галерея квизов
+
+
+
+
+
+
+
+ {foundTemplates.map((template) => (
+
+ ))}
+
+
+ Нет подходящего шаблона?
+
+
+
+
+ );
+}
diff --git a/src/pages/createQuize/QuizGallery/templates/Auto.ts b/src/pages/createQuize/QuizGallery/templates/Auto.ts
new file mode 100644
index 00000000..aecfc213
--- /dev/null
+++ b/src/pages/createQuize/QuizGallery/templates/Auto.ts
@@ -0,0 +1,70 @@
+import type { Category } from "../Template";
+
+import AutoIcon1 from "@/assets/quiz-templates/auto/auto-1.jpg";
+import AutoIcon2 from "@/assets/quiz-templates/auto/auto-2.jpg";
+import AutoIcon3 from "@/assets/quiz-templates/auto/auto-3.jpg";
+import AutoIcon4 from "@/assets/quiz-templates/auto/auto-4.jpg";
+import AutoIcon5 from "@/assets/quiz-templates/auto/auto-5.jpg";
+import AutoIcon6 from "@/assets/quiz-templates/auto/auto-6.jpg";
+import AutoIcon7 from "@/assets/quiz-templates/auto/auto-7.jpg";
+import AutoIcon8 from "@/assets/quiz-templates/auto/auto-8.jpg";
+import AutoIcon9 from "@/assets/quiz-templates/auto/auto-9.jpg";
+import AutoIcon10 from "@/assets/quiz-templates/auto/auto-10.jpg";
+
+export const AUTO_TEMPLATES: Category = {
+ categoryType: "Auto",
+ category: "Авто",
+ templates: [
+ {
+ quizId: "eb885519-d9c2-41a5-a69c-6105d2bd9bef",
+ title: "Узнайте, что у вас с машиной",
+ picture: AutoIcon1,
+ },
+ {
+ quizId: "68f080e2-ae70-4a1a-be09-05c3decea592",
+ title: "Узнай стоимость и сроки выкупа своего автомобиля",
+ picture: AutoIcon2,
+ },
+ {
+ quizId: "446a5e79-8f10-4fb0-aa0f-165e3fbd8d36",
+ title: "Автошкола «Руль в Руки»",
+ picture: AutoIcon3,
+ },
+ {
+ quizId: "f30c7d80-852e-405d-8308-a124636b5ffa",
+ title: "Узнайте, в какой компании выгодней КАСКО и ОСАГО",
+ picture: AutoIcon4,
+ },
+ {
+ quizId: "e200c96f-9c7a-4859-9bd2-65e42a6450b3",
+ title:
+ "Пройди тест, чтобы рассчитать стоимость необходимых детейлинг услуг",
+ picture: AutoIcon5,
+ },
+ {
+ quizId: "824c4553-ecb5-43e8-9b62-efc4844b01a8",
+ title: "Онлайн-калькулятор шиномонтажных услуг",
+ picture: AutoIcon6,
+ },
+ {
+ quizId: "42423a16-1159-4c5c-bb45-4e9940ab6098",
+ title: "Калькулятор расчёта стоимости тонировки автомобиля",
+ picture: AutoIcon7,
+ },
+ {
+ quizId: "a0dfe680-30ff-4cac-91a5-28eb79889b68",
+ title: "Рассчитайте стоимость проката премиум-автомобиля за 3 минуты",
+ picture: AutoIcon8,
+ },
+ {
+ quizId: "18145500-1fdd-4814-9607-8775fb1a5ea7",
+ title: "Безопасное автокресло для вашего ребенка",
+ picture: AutoIcon9,
+ },
+ {
+ quizId: "63aa090c-8943-4a50-a10a-be394e75188b",
+ title: "Подберём для вас премиум-автомобиль для проката",
+ picture: AutoIcon10,
+ },
+ ],
+};
diff --git a/src/pages/createQuize/QuizGallery/templates/Education.ts b/src/pages/createQuize/QuizGallery/templates/Education.ts
new file mode 100644
index 00000000..f8d012cf
--- /dev/null
+++ b/src/pages/createQuize/QuizGallery/templates/Education.ts
@@ -0,0 +1,72 @@
+import type { Category } from "../Template";
+
+import EductionIcon1 from "@/assets/quiz-templates/education/education-1.jpg";
+import EductionIcon2 from "@/assets/quiz-templates/education/education-2.jpg";
+import EductionIcon3 from "@/assets/quiz-templates/education/education-3.jpg";
+import EductionIcon4 from "@/assets/quiz-templates/education/education-4.jpg";
+import EductionIcon5 from "@/assets/quiz-templates/education/education-5.jpg";
+import EductionIcon6 from "@/assets/quiz-templates/education/education-6.jpg";
+import EductionIcon7 from "@/assets/quiz-templates/education/education-7.jpg";
+import EductionIcon8 from "@/assets/quiz-templates/education/education-8.jpg";
+import EductionIcon9 from "@/assets/quiz-templates/education/education-9.jpg";
+import EductionIcon10 from "@/assets/quiz-templates/education/education-10.jpg";
+
+export const EDUCATION_TEMPLATES: Category = {
+ categoryType: "Education",
+ category: "Образование",
+ templates: [
+ {
+ quizId: "27c10a81-f629-4af4-bdd0-2eb6c9cf10a8",
+ title: "Получите приглашение на занятие по программированию для ребёнка",
+ picture: EductionIcon1,
+ },
+ {
+ quizId: "bf9aaa3b-5d2d-4f82-9d5e-74862d73d10e",
+ title: "Научим играть любимую песню на фортепиано за 7 занятий",
+ picture: EductionIcon2,
+ },
+ {
+ quizId: "e2ed3948-6da2-48f4-86c7-42118b5abf85",
+ title: "Подбери репетитора для своего ребёнка со скидкой в 20%",
+ picture: EductionIcon3,
+ },
+ {
+ quizId: "076d3d12-c8f0-442a-b918-7f6085daa3ec",
+ title: "Обратная связь о вебинаре",
+ picture: EductionIcon4,
+ },
+ {
+ quizId: "9914fe9c-19b4-47b1-aef8-a3c8e44f4c4c",
+ title: "Хотите выучить английский?",
+ picture: EductionIcon5,
+ },
+ {
+ quizId: "ec9c252e-ea2c-489a-809d-27522b7c1972",
+ title:
+ "Ответьте на 4 вопроса и узнайте, куда записать ребенка чтобы развивать его таланты",
+ picture: EductionIcon6,
+ },
+ {
+ quizId: "45acb5b0-1dca-45fe-aaa0-88895bd5b237",
+ title: "Поделитесь мнением о конференции",
+ picture: EductionIcon7,
+ },
+ {
+ quizId: "a9f17936-30c8-41ff-84d4-668840e02b56",
+ title: "Научитесь красиво петь и управлять своим голосом",
+ picture: EductionIcon8,
+ },
+ {
+ quizId: "51c4d927-4d27-405d-ab7e-6c2707418017",
+ title: "Узнайте, подойдёт ли вам профессия «Разработчик Phyton»?",
+ categoryDescription: "(С ветвлением)",
+ picture: EductionIcon9,
+ },
+ {
+ quizId: "6063ee99-3188-43aa-89bc-895d90b08628",
+ title: "Проверьте своё знание английского языка",
+ categoryDescription: "(С ветвлением)",
+ picture: EductionIcon10,
+ },
+ ],
+};
diff --git a/src/pages/createQuize/QuizGallery/templates/Health.ts b/src/pages/createQuize/QuizGallery/templates/Health.ts
new file mode 100644
index 00000000..f3879971
--- /dev/null
+++ b/src/pages/createQuize/QuizGallery/templates/Health.ts
@@ -0,0 +1,147 @@
+import type { Category } from "../Template";
+
+import HealthIcon1 from "@/assets/quiz-templates/health/health-1.jpg";
+import HealthIcon2 from "@/assets/quiz-templates/health/health-2.jpg";
+import HealthIcon3 from "@/assets/quiz-templates/health/health-3.jpg";
+import HealthIcon4 from "@/assets/quiz-templates/health/health-4.jpg";
+import HealthIcon5 from "@/assets/quiz-templates/health/health-5.jpg";
+import HealthIcon6 from "@/assets/quiz-templates/health/health-6.jpg";
+import HealthIcon7 from "@/assets/quiz-templates/health/health-7.jpg";
+import HealthIcon8 from "@/assets/quiz-templates/health/health-8.jpg";
+import HealthIcon9 from "@/assets/quiz-templates/health/health-9.jpg";
+import HealthIcon10 from "@/assets/quiz-templates/health/health-10.jpg";
+import HealthIcon11 from "@/assets/quiz-templates/health/health-11.jpg";
+import HealthIcon12 from "@/assets/quiz-templates/health/health-12.jpg";
+import HealthIcon13 from "@/assets/quiz-templates/health/health-13.jpg";
+import HealthIcon14 from "@/assets/quiz-templates/health/health-14.jpg";
+import HealthIcon15 from "@/assets/quiz-templates/health/health-15.jpg";
+import HealthIcon16 from "@/assets/quiz-templates/health/health-16.jpg";
+import HealthIcon17 from "@/assets/quiz-templates/health/health-17.jpg";
+import HealthIcon18 from "@/assets/quiz-templates/health/health-18.jpg";
+import HealthIcon19 from "@/assets/quiz-templates/health/health-19.jpg";
+import HealthIcon20 from "@/assets/quiz-templates/health/health-20.jpg";
+
+export const HEALTH_TEMPLATES: Category = {
+ categoryType: "Health",
+ category: "Здоровье и уход",
+ templates: [
+ {
+ quizId: "294c9c27-a189-4aa1-b792-a4d4612c99bf",
+ title: "Узнайте, сколько будет стоить ваш маникюр",
+ categoryDescription: "Косметология",
+ picture: HealthIcon1,
+ },
+ {
+ quizId: "89fc7b57-9a13-4889-9e70-9d08714085f5",
+ title: "Узнайте стоимость услуг косметолога в Казани",
+ categoryDescription: "Косметология",
+ picture: HealthIcon2,
+ },
+ {
+ quizId: "425c75c7-9412-485e-930f-3ae65f517fab",
+ title:
+ "Узнайте, как правильно ухаживать за вашим типом кожи в домашних условиях",
+ categoryDescription: "Косметология",
+ picture: HealthIcon3,
+ },
+ {
+ quizId: "99461154-6296-4c8c-930d-2b1809f221cd",
+ title: "Какая косметологическая процедура вам нужна?",
+ categoryDescription: "Косметология",
+ picture: HealthIcon4,
+ },
+ {
+ quizId: "cbf6a8d4-538a-4edf-9477-062a15361b04",
+ title: "5 вопросов до улыбки вашей мечты",
+ categoryDescription: "Стоматология",
+ picture: HealthIcon5,
+ },
+ {
+ quizId: "017d9d5c-57a8-4eca-95c1-11db847a0e18",
+ title:
+ "Пройдите небольшой опрос, и узнайте, какая процедура у стоматолога вам нужна",
+ categoryDescription: "Стоматология",
+ picture: HealthIcon6,
+ },
+ {
+ quizId: "162cb4f1-ab0a-49c4-b773-16932700f871",
+ title: "Какой врач мне нужен?",
+ picture: HealthIcon7,
+ },
+ {
+ quizId: "c851276b-505d-492b-9acb-5cd85e6fe3a7",
+ title: "Психологическая помощь",
+ categoryDescription: "Психолог",
+ picture: HealthIcon8,
+ },
+ {
+ quizId: "2fa1d438-72ac-49b2-95b6-73a8c9d8347a",
+ title: "Ищешь психолога?",
+ categoryDescription: "Психолог",
+ picture: HealthIcon9,
+ },
+ {
+ quizId: "b0b30965-ec43-4718-8a1f-2ae35f932a61",
+ title: "Подбор медицинского центра для лечебного массажа",
+ categoryDescription: "Массаж",
+ picture: HealthIcon10,
+ },
+ {
+ quizId: "722aff37-d247-4341-9908-412e41f9d7cd",
+ title: "Исследование рынка мобильных приложений для здоровья",
+ picture: HealthIcon11,
+ },
+ {
+ quizId: "f0d800bc-2df0-42a6-8457-5c7759021854",
+ title: "Выполним стрижки и окрашивания любой сложности",
+ categoryDescription: "Косметология",
+ picture: HealthIcon12,
+ },
+ {
+ quizId: "f88e2eb6-66e6-41ba-9d3d-1d7fe69d30d8",
+ title: "Массажный салон «Промято» в Ярославле",
+ categoryDescription: "Массаж",
+ picture: HealthIcon13,
+ },
+ {
+ quizId: "9b2d47e8-d45f-48b7-a7fd-1c9c35edab17",
+ title: "Подбери себе направление в йоге",
+ categoryDescription: "Йога",
+ picture: HealthIcon14,
+ },
+ {
+ quizId: "8f6a1b3f-27fc-4e1c-a117-f67867e5df65",
+ title: "Подберите за 2 минуты рацион готового питания",
+ categoryDescription: "Питание",
+ picture: HealthIcon15,
+ },
+ {
+ quizId: "73ff039f-3e93-4412-80ab-749f54c9bafa",
+ title: "Рассчитайте стоимость установки грудных имплантов",
+ picture: HealthIcon16,
+ },
+ {
+ quizId: "2b4be94e-3505-41ae-85bb-c6c4a4d1bcd4",
+ title: "Не знаете, как выбрать очки? Подберите оправу под свои параметры",
+ categoryDescription: "Зрение",
+ picture: HealthIcon17,
+ },
+ {
+ quizId: "28b133a5-0e6a-46b9-bd6b-81a44b808341",
+ title: "Санаторий в Подмосковье для пожилых людей",
+ categoryDescription: "Санаторий",
+ picture: HealthIcon18,
+ },
+ {
+ quizId: "88a8e952-1475-4052-b99a-bbb7eb31249c",
+ title: "Свежие блюда своими руками. 15 минут и готово",
+ categoryDescription: "Питание",
+ picture: HealthIcon19,
+ },
+ {
+ quizId: "6baf144a-7401-442a-a513-6bc5aa3f1a6a",
+ title: "Рассчитайте стоимость отдыха в лучшей бане Москвы",
+ picture: HealthIcon20,
+ },
+ ],
+};
diff --git a/src/pages/createQuize/QuizGallery/templates/Production.ts b/src/pages/createQuize/QuizGallery/templates/Production.ts
new file mode 100644
index 00000000..a9ec3f22
--- /dev/null
+++ b/src/pages/createQuize/QuizGallery/templates/Production.ts
@@ -0,0 +1,70 @@
+import type { Category } from "../Template";
+
+import ProductionIcon1 from "@/assets/quiz-templates/production/production-1.jpg";
+import ProductionIcon2 from "@/assets/quiz-templates/production/production-2.jpg";
+import ProductionIcon3 from "@/assets/quiz-templates/production/production-3.jpg";
+import ProductionIcon4 from "@/assets/quiz-templates/production/production-4.jpg";
+import ProductionIcon5 from "@/assets/quiz-templates/production/production-5.jpg";
+import ProductionIcon6 from "@/assets/quiz-templates/production/production-6.jpg";
+import ProductionIcon7 from "@/assets/quiz-templates/production/production-7.jpg";
+import ProductionIcon8 from "@/assets/quiz-templates/production/production-8.jpg";
+import ProductionIcon9 from "@/assets/quiz-templates/production/production-9.jpg";
+import ProductionIcon10 from "@/assets/quiz-templates/production/production-10.jpg";
+
+export const PRODUCTION_TEMPLATES: Category = {
+ categoryType: "Production",
+ category: "Производство",
+ templates: [
+ {
+ quizId: "14859665-e8ea-4e4a-b381-af88179f8ba3",
+ title: "Рассчитайте стоимость постельного белья",
+ picture: ProductionIcon1,
+ },
+ {
+ quizId: "39cb17b6-10df-4107-abb8-6726d4845cbf",
+ title: "Ответьте на 4 вопроса и подберите межкомнатную дверь",
+ picture: ProductionIcon2,
+ },
+ {
+ quizId: "21b125ed-0213-4a3c-bd30-1a75b3953f4a",
+ title: "Узнай стоимость производства и монтажа металлических ворот",
+ picture: ProductionIcon3,
+ },
+ {
+ quizId: "ed1a01f4-9497-4a79-adac-8f4fbf7f26f5",
+ title: "Заполните анкету, чтобы заказать изготовление ювелирного изделия",
+ picture: ProductionIcon4,
+ },
+ {
+ quizId: "c94834f8-dd3a-43a0-8d40-6ebae4f475ed",
+ title: "Идеальный пол для любого помещения",
+ picture: ProductionIcon5,
+ },
+ {
+ quizId: "35ccb5b5-f4d2-4bbc-b172-5984356e7cfb",
+ title: "Рассчитайте стоимость изготовления зеркала",
+ picture: ProductionIcon6,
+ },
+ {
+ quizId: "e89d3758-2cfb-4566-9eb2-733c1c11ea03",
+ title: "Подбери лучшие кеды",
+ picture: ProductionIcon7,
+ },
+ {
+ quizId: "26f00205-8373-4d00-bd93-7ced6cd0f509",
+ title: "Идеальная кровать для вашего ребенка",
+ picture: ProductionIcon8,
+ },
+ {
+ quizId: "4cc7cacf-30a9-4571-9319-dd186b915624",
+ title:
+ "Рассчитайте стоимость кухни ручной работы из Италии с доставкой в Россию",
+ picture: ProductionIcon9,
+ },
+ {
+ quizId: "0d839f24-53e8-4dbd-9d9b-c57ac8e53a9c",
+ title: "Узнайте примерную стоимость индивидуального пошива одежды",
+ picture: ProductionIcon10,
+ },
+ ],
+};
diff --git a/src/pages/createQuize/QuizGallery/templates/RealEstate.ts b/src/pages/createQuize/QuizGallery/templates/RealEstate.ts
new file mode 100644
index 00000000..bbe1bbd8
--- /dev/null
+++ b/src/pages/createQuize/QuizGallery/templates/RealEstate.ts
@@ -0,0 +1,76 @@
+import type { Category } from "../Template";
+
+import RealEstateIcon1 from "@/assets/quiz-templates/real-estate/real-estate-1.jpg";
+import RealEstateIcon2 from "@/assets/quiz-templates/real-estate/real-estate-2.jpg";
+import RealEstateIcon3 from "@/assets/quiz-templates/real-estate/real-estate-3.jpg";
+import RealEstateIcon4 from "@/assets/quiz-templates/real-estate/real-estate-4.jpg";
+import RealEstateIcon5 from "@/assets/quiz-templates/real-estate/real-estate-5.jpg";
+import RealEstateIcon6 from "@/assets/quiz-templates/real-estate/real-estate-6.jpg";
+import RealEstateIcon7 from "@/assets/quiz-templates/real-estate/real-estate-7.jpg";
+import RealEstateIcon8 from "@/assets/quiz-templates/real-estate/real-estate-8.jpg";
+import RealEstateIcon9 from "@/assets/quiz-templates/real-estate/real-estate-9.jpg";
+import RealEstateIcon10 from "@/assets/quiz-templates/real-estate/real-estate-10.jpg";
+
+export const REAL_ESTATE_TEMPLATES: Category = {
+ categoryType: "RealEstate",
+ category: "Недвижимость",
+ templates: [
+ {
+ quizId: "d3930e95-ae95-4e2f-b9f9-79b929c2e1e6",
+ title: "Рассчитайте стоимость каркасного дома своей мечты",
+ categoryDescription: "Строительство и ремонт",
+ picture: RealEstateIcon1,
+ },
+ {
+ quizId: "4e488b9b-d273-4f1c-b729-991fcbc006cd",
+ title: "Краткосрочная аренда коммерческих помещений",
+ categoryDescription: "Аренда",
+ picture: RealEstateIcon2,
+ },
+ {
+ quizId: "84605c72-ce1d-49fb-a40e-7ed2ab96ac7d",
+ title: "Подберем новостройку под ваши критерии",
+ picture: RealEstateIcon3,
+ },
+ {
+ quizId: "ab701ab8-b8ad-4f45-a1ef-f0ab5357a587",
+ title: "15 лучших предложений от застройщиков в Москве",
+ picture: RealEstateIcon4,
+ },
+ {
+ quizId: "a5998d6c-c055-4702-bfc7-e1185fffa6c6",
+ title: "Подберем идеальное жильё в Риме",
+ picture: RealEstateIcon5,
+ },
+ {
+ quizId: "bfbf97f2-3eba-4386-a794-4fa8f5825ac1",
+ title: "Подбери уютный коттедж для отдыха в Подмосковье за 1 минуту",
+ picture: RealEstateIcon6,
+ },
+ {
+ quizId: "1b6ce902-0568-43c2-90a1-55dec710cb4f",
+ title: "Среди сотен новостроек подберём для вас самые подходящие",
+ picture: RealEstateIcon7,
+ },
+ {
+ quizId: "0dfa128f-8c2b-4519-8cf4-05f9171979e1",
+ title: "Рассчитайте стоимость бронирования клуба для мероприятий",
+ categoryDescription: "Aренда",
+ picture: RealEstateIcon8,
+ },
+ {
+ quizId: "8c4c8e3d-19cb-4c55-8952-558b877245bd",
+ title:
+ "Запишитесь на консультацию и получите каталог объектов в перспективных районах Дубая",
+ categoryDescription: "Услуги риелтора",
+ picture: RealEstateIcon9,
+ },
+ {
+ quizId: "36ebbe5d-4d85-453d-b5d2-51cdf7f95327",
+ title:
+ "Строим дома за 90 дней вместе со всеми коммуникациями и электричеством",
+ categoryDescription: "Строительство и ремонт",
+ picture: RealEstateIcon10,
+ },
+ ],
+};
diff --git a/src/pages/createQuize/QuizGallery/templates/Repair.ts b/src/pages/createQuize/QuizGallery/templates/Repair.ts
new file mode 100644
index 00000000..2a378acc
--- /dev/null
+++ b/src/pages/createQuize/QuizGallery/templates/Repair.ts
@@ -0,0 +1,72 @@
+import type { Category } from "../Template";
+
+import RepairIcon1 from "@/assets/quiz-templates/repair/repair-1.jpg";
+import RepairIcon2 from "@/assets/quiz-templates/repair/repair-2.jpg";
+import RepairIcon3 from "@/assets/quiz-templates/repair/repair-3.jpg";
+import RepairIcon4 from "@/assets/quiz-templates/repair/repair-4.jpg";
+import RepairIcon5 from "@/assets/quiz-templates/repair/repair-5.jpg";
+import RepairIcon6 from "@/assets/quiz-templates/repair/repair-6.jpg";
+import RepairIcon7 from "@/assets/quiz-templates/repair/repair-7.jpg";
+import RepairIcon8 from "@/assets/quiz-templates/repair/repair-8.jpg";
+import RepairIcon9 from "@/assets/quiz-templates/repair/repair-9.jpg";
+import RepairIcon10 from "@/assets/quiz-templates/repair/repair-10.jpg";
+
+export const REPAIR_TEMPLATES: Category = {
+ categoryType: "Repair",
+ category: "Ремонт",
+ templates: [
+ {
+ quizId: "556760d9-652b-4ff1-91d5-3dc629650882",
+ title: "Капитальный ремонт квартир с фиксированной ценой",
+ picture: RepairIcon1,
+ },
+ {
+ quizId: "8f034581-71fb-467e-82dd-a415d4b8d73c",
+ title: "Натяжные потолки с гарантией 25 лет",
+ picture: RepairIcon2,
+ },
+ {
+ quizId: "fcb8c47b-f409-400c-b3d5-66657755f885",
+ title: "Рассчитайте стоимость пластиковых окон",
+ picture: RepairIcon3,
+ },
+ {
+ quizId: "7544a8d3-ff03-491d-9189-1433fe307ad0",
+ title: "Рассчитайте стоимость установки тёплого пола",
+ picture: RepairIcon4,
+ },
+ {
+ quizId: "dcf8bd1d-4c3f-4d1a-9efa-3d25991068f9",
+ title:
+ "Рассчитайте стоимость лестницы под ключ по вашим параметрам всего за одну минуту",
+ picture: RepairIcon5,
+ },
+ {
+ quizId: "2a921839-e5c8-45aa-afca-703d0dad8fad",
+ title:
+ "Ответьте на 5 вопросов и рассчитайте стоимость вентиляции с монтажом под объект",
+ picture: RepairIcon6,
+ },
+ {
+ quizId: "ed13de01-f803-456a-b237-3644c808a0a1",
+ title: "Узнайте стоимость освещения вашего объекта",
+ picture: RepairIcon7,
+ },
+ {
+ quizId: "8d05e910-df1f-4ad3-9679-c0c3f7b7e575",
+ title: "Узнайте стоимость кухни на заказ",
+ picture: RepairIcon8,
+ },
+ {
+ quizId: "9cabba56-2861-40dc-8f33-800745c3c949",
+ title: "Узнай стоимость дизайна интерьера под ключ",
+ picture: RepairIcon9,
+ },
+ {
+ quizId: "1c0eb1ad-ed3e-43f9-bcba-f094d13fef5b",
+ title:
+ "Требуется штукатурка? Узнайте примерную стоимость работ и материалов.",
+ picture: RepairIcon10,
+ },
+ ],
+};
diff --git a/src/pages/createQuize/QuizGallery/templates/Research.ts b/src/pages/createQuize/QuizGallery/templates/Research.ts
new file mode 100644
index 00000000..a3554d52
--- /dev/null
+++ b/src/pages/createQuize/QuizGallery/templates/Research.ts
@@ -0,0 +1,69 @@
+import type { Category } from "../Template";
+
+import ResearchIcon1 from "@/assets/quiz-templates/research/research-1.jpg";
+import ResearchIcon2 from "@/assets/quiz-templates/research/research-2.jpg";
+import ResearchIcon3 from "@/assets/quiz-templates/research/research-3.jpg";
+import ResearchIcon4 from "@/assets/quiz-templates/research/research-4.jpg";
+import ResearchIcon5 from "@/assets/quiz-templates/research/research-5.jpg";
+import ResearchIcon6 from "@/assets/quiz-templates/research/research-6.jpg";
+import ResearchIcon7 from "@/assets/quiz-templates/research/research-7.jpg";
+import ResearchIcon8 from "@/assets/quiz-templates/research/research-8.jpg";
+import ResearchIcon9 from "@/assets/quiz-templates/research/research-9.jpg";
+import ResearchIcon10 from "@/assets/quiz-templates/research/research-10.jpg";
+
+export const RESEARCH_TEMPLATES: Category = {
+ categoryType: "Research",
+ category: "Исследовательские",
+ templates: [
+ {
+ quizId: "1b356222-e762-4f3d-87e5-4c3d6c0a9467",
+ title: "Общественные настроения. Социальное самочувствие граждан",
+ picture: ResearchIcon1,
+ },
+ {
+ quizId: "7e901bea-6774-48b7-b31f-b62fd21ac88f",
+ title: "Социальные институты и проблемы общества",
+ picture: ResearchIcon2,
+ },
+ {
+ quizId: "2570ccef-563c-4d8e-a052-d6ad142fb789",
+ title: "Уровень жизни населения",
+ picture: ResearchIcon3,
+ },
+ {
+ quizId: "b9394ed2-25e0-4e55-9d2a-9577856e903d",
+ title: "Проблемы семьи и семейные отношения",
+ picture: ResearchIcon4,
+ },
+ {
+ quizId: "922088b6-9e02-4a0f-b6af-a7150781d4eb",
+ title: "Здоровье и здравоохранение",
+ picture: ResearchIcon5,
+ },
+ {
+ quizId: "528ef773-2da5-4988-b687-b393d687ed00",
+ title: "Религия и Церковь",
+ picture: ResearchIcon6,
+ },
+ {
+ quizId: "8887c07c-831f-40c6-9bf7-951ab09546da",
+ title: "Трудоустройство молодежи",
+ picture: ResearchIcon7,
+ },
+ {
+ quizId: "850fde64-0462-40f7-992e-44fd0177e3b7",
+ title: "Культура и ценности",
+ picture: ResearchIcon8,
+ },
+ {
+ quizId: "2c6ba86a-6c86-47b2-b71c-3c4ebaf29fbb",
+ title: "Наука и технологии",
+ picture: ResearchIcon9,
+ },
+ {
+ quizId: "7ccd26ff-ccf5-4d6c-a148-1612a970211e",
+ title: "Бизнес и предпринимательство",
+ picture: ResearchIcon10,
+ },
+ ],
+};
diff --git a/src/pages/createQuize/QuizGallery/templates/Services.ts b/src/pages/createQuize/QuizGallery/templates/Services.ts
new file mode 100644
index 00000000..542a3263
--- /dev/null
+++ b/src/pages/createQuize/QuizGallery/templates/Services.ts
@@ -0,0 +1,80 @@
+import ServiceIcon1 from "@/assets/quiz-templates/services/service-1.jpg";
+import ServiceIcon2 from "@/assets/quiz-templates/services/service-2.jpg";
+import ServiceIcon3 from "@/assets/quiz-templates/services/service-3.jpg";
+import ServiceIcon4 from "@/assets/quiz-templates/services/service-4.jpg";
+import ServiceIcon5 from "@/assets/quiz-templates/services/service-5.jpg";
+import ServiceIcon6 from "@/assets/quiz-templates/services/service-6.jpg";
+import ServiceIcon7 from "@/assets/quiz-templates/services/service-7.jpg";
+import ServiceIcon8 from "@/assets/quiz-templates/services/service-8.jpg";
+import ServiceIcon9 from "@/assets/quiz-templates/services/service-9.jpg";
+import ServiceIcon10 from "@/assets/quiz-templates/services/service-10.jpg";
+import ServiceIcon11 from "@/assets/quiz-templates/services/service-11.jpg";
+
+import type { Category } from "../Template";
+
+export const SERVICE_TEMPLATES: Category = {
+ categoryType: "Services",
+ category: "Услуги",
+ templates: [
+ {
+ quizId: "a3490800-1ad3-4944-bb9c-32189d36b75c",
+ title:
+ "Ответьте на 3 вопроса и узнайте, паспорт какой европейской страны вам подойдёт",
+ picture: ServiceIcon1,
+ },
+ {
+ quizId: "785fed83-6608-4029-ae22-6a26ce621e5f",
+ title:
+ "Ответьте на 7 вопросов, чтобы получить коммерческое предложение от маркетолога",
+ picture: ServiceIcon2,
+ },
+ {
+ quizId: "dfa3733f-66ce-4335-b83a-2c6511cbd1ce",
+ title:
+ "Ответьте на пару вопросов, чтобы найти свой индивидуальный стиль одежды",
+ picture: ServiceIcon3,
+ },
+ {
+ quizId: "8bf582a9-0a66-4f7b-bc0f-3c2f656c7449",
+ title: "Обменяйте рубли на валюту с комиссией 0%",
+ picture: ServiceIcon4,
+ },
+ {
+ quizId: "206ba071-afe9-4ee0-a722-a24a4f592679",
+ title: "Рассчитайте стоимость уборки вашей квартиры",
+ picture: ServiceIcon5,
+ },
+ {
+ quizId: "6938ff93-52eb-4296-86bf-fe5aa3fddabf",
+ title: "Забронируйте номер в зоогостинице для своего любимого питомца",
+ picture: ServiceIcon6,
+ },
+ {
+ quizId: "5262bc69-1ea0-446c-a16f-e929b6190e6d",
+ title: "Организуем перевозку под ключ",
+ picture: ServiceIcon7,
+ },
+ {
+ quizId: "9f8015f7-07fc-4acb-92dd-6e00505884cc",
+ title: "Рассчитайте стоимость ремонта пластиковых окон за 3 минуты",
+ picture: ServiceIcon8,
+ },
+ {
+ quizId: "259749bf-a54f-4a8e-ab5a-4cd0862d7504",
+ title: "Поможем подобрать эскиз для татуировки",
+ picture: ServiceIcon9,
+ },
+ {
+ quizId: "e107c0cd-4fa1-4a8f-938a-10a329b6528d",
+ title: "Подбери себе лучшего юриста за 30 секунд",
+ categoryDescription: "Юр услуги",
+ picture: ServiceIcon10,
+ },
+ {
+ quizId: "ce7903b1-3dfb-4a28-a2a4-0b41af447ae1",
+ title: "Рассчитайте размер ипотечного кредитования, ответив на 4 вопроса",
+ categoryDescription: "Юр услуги",
+ picture: ServiceIcon11,
+ },
+ ],
+};
diff --git a/src/pages/createQuize/QuizGallery/templates/Tourism.ts b/src/pages/createQuize/QuizGallery/templates/Tourism.ts
new file mode 100644
index 00000000..1a16e7a5
--- /dev/null
+++ b/src/pages/createQuize/QuizGallery/templates/Tourism.ts
@@ -0,0 +1,69 @@
+import TourismIcon1 from "@/assets/quiz-templates/tourism/tourism-1.jpg";
+import TourismIcon2 from "@/assets/quiz-templates/tourism/tourism-2.jpg";
+import TourismIcon3 from "@/assets/quiz-templates/tourism/tourism-3.jpg";
+import TourismIcon4 from "@/assets/quiz-templates/tourism/tourism-4.jpg";
+import TourismIcon5 from "@/assets/quiz-templates/tourism/tourism-5.jpg";
+import TourismIcon6 from "@/assets/quiz-templates/tourism/tourism-6.jpg";
+import TourismIcon7 from "@/assets/quiz-templates/tourism/tourism-7.jpg";
+import TourismIcon8 from "@/assets/quiz-templates/tourism/tourism-8.jpg";
+import TourismIcon9 from "@/assets/quiz-templates/tourism/tourism-9.jpg";
+import TourismIcon10 from "@/assets/quiz-templates/tourism/tourism-10.jpg";
+
+import type { Category } from "../Template";
+
+export const TOURISM_TEMPLATES: Category = {
+ categoryType: "Tourism",
+ category: "Туризм",
+ templates: [
+ {
+ quizId: "f7a2b3b8-2548-47d8-afb3-f2c69a3a0a81",
+ title: "Подбор туристической страховки",
+ picture: TourismIcon1,
+ },
+ {
+ quizId: "e0927ded-5c4c-4d45-a5ba-c2e938362ffa",
+ title: "Оцените свои шансы на получение визы в США",
+ picture: TourismIcon2,
+ },
+ {
+ quizId: "23af97f4-0b8f-4d8b-8099-66ebef409ce1",
+ title: "Персональный тур с лучшими местами в Германии",
+ picture: TourismIcon3,
+ },
+ {
+ quizId: "ca3bd705-7d41-4ff1-ae4c-0b2d4a8faa30",
+ title: "Подберём лучший вариант тура под ваши критерии",
+ picture: TourismIcon4,
+ },
+ {
+ quizId: "5c2effd9-fe6a-40e6-9752-3f61dc20d6fa",
+ title: "Выберем самый подходящий для вас тур в Грузию",
+ picture: TourismIcon5,
+ },
+ {
+ quizId: "b559a764-6f55-4dc2-a9c4-aecd8b96003c",
+ title: "Бонжур, Сена! Подберём для вас тур по Франции",
+ picture: TourismIcon6,
+ },
+ {
+ quizId: "e33bf54b-9ad5-4cb9-b552-77148264d6af",
+ title: "Персональный тур в Египет с лучшими местами страны",
+ picture: TourismIcon7,
+ },
+ {
+ quizId: "c5815b1d-4991-4df2-ae14-8713d7f313b9",
+ title: "Тур по местам России",
+ picture: TourismIcon8,
+ },
+ {
+ quizId: "a0a4dce8-43bb-4978-a802-96d384465df4",
+ title: "Подберём для вас тур с самыми красивыми местами мира",
+ picture: TourismIcon9,
+ },
+ {
+ quizId: "0749abc5-a352-41b9-85c3-db7541326f23",
+ title: "Выберем лучшие туристические места для вас",
+ picture: TourismIcon10,
+ },
+ ],
+};
diff --git a/src/pages/createQuize/QuizGallery/templates/index.ts b/src/pages/createQuize/QuizGallery/templates/index.ts
new file mode 100644
index 00000000..8c949414
--- /dev/null
+++ b/src/pages/createQuize/QuizGallery/templates/index.ts
@@ -0,0 +1,23 @@
+import { TOURISM_TEMPLATES } from "./Tourism";
+import { SERVICE_TEMPLATES } from "./Services";
+import { REAL_ESTATE_TEMPLATES } from "./RealEstate";
+import { AUTO_TEMPLATES } from "./Auto";
+import { HEALTH_TEMPLATES } from "./Health";
+import { RESEARCH_TEMPLATES } from "./Research";
+import { PRODUCTION_TEMPLATES } from "./Production";
+import { REPAIR_TEMPLATES } from "./Repair";
+import { EDUCATION_TEMPLATES } from "./Education";
+
+import type { Category } from "../Template";
+
+export const TEMPLATES: Category[] = [
+ TOURISM_TEMPLATES,
+ SERVICE_TEMPLATES,
+ REAL_ESTATE_TEMPLATES,
+ AUTO_TEMPLATES,
+ HEALTH_TEMPLATES,
+ RESEARCH_TEMPLATES,
+ PRODUCTION_TEMPLATES,
+ REPAIR_TEMPLATES,
+ EDUCATION_TEMPLATES,
+];
diff --git a/src/pages/createQuize/QuizTemplateCard.tsx b/src/pages/createQuize/QuizTemplateCard.tsx
deleted file mode 100755
index f998bbab..00000000
--- a/src/pages/createQuize/QuizTemplateCard.tsx
+++ /dev/null
@@ -1,87 +0,0 @@
-import { Box, Chip, Typography, useTheme } from "@mui/material";
-
-interface Props {
- image: string;
-}
-
-export default function QuizTemplateCard({ image }: Props) {
- const theme = useTheme();
-
- return (
-
-
-
-
-
-
-
-
- Название шаблона
-
-
- );
-}
diff --git a/src/ui_kit/LabeledDatePicker.tsx b/src/ui_kit/LabeledDatePicker.tsx
index bd60b544..261e4450 100644
--- a/src/ui_kit/LabeledDatePicker.tsx
+++ b/src/ui_kit/LabeledDatePicker.tsx
@@ -11,7 +11,6 @@ import { DatePicker } from "@mui/x-date-pickers";
import moment from "moment";
import type { Moment } from "moment";
-
interface Props {
label?: string;
sx?: SxProps;
diff --git a/tsconfig.extend.json b/tsconfig.extend.json
index eabc7e3d..1cf48661 100755
--- a/tsconfig.extend.json
+++ b/tsconfig.extend.json
@@ -1,25 +1,14 @@
{
- "compilerOptions": {
- "baseUrl": "./src",
- "paths": {
- "@ui_kit/*": [
- "./ui_kit/*"
- ],
- "@icons/*": [
- "./assets/icons/*"
- ],
- "@root/*": [
- "./stores/*"
- ],
- "@api/*": [
- "./api/*"
- ],
- "@model/*": [
- "./model/*"
- ],
- "@utils/*": [
- "./utils/*"
- ]
- }
+ "compilerOptions": {
+ "baseUrl": "./src",
+ "paths": {
+ "@/*": ["./*"],
+ "@ui_kit/*": ["./ui_kit/*"],
+ "@icons/*": ["./assets/icons/*"],
+ "@root/*": ["./stores/*"],
+ "@api/*": ["./api/*"],
+ "@model/*": ["./model/*"],
+ "@utils/*": ["./utils/*"]
}
+ }
}
diff --git a/yarn.lock b/yarn.lock
index cb48ea18..9ca48d9a 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -2593,6 +2593,13 @@
resolved "https://registry.yarnpkg.com/@types/node/-/node-16.18.97.tgz#d7926a8030f0d714d555b4550c0cc7731495cfe5"
integrity sha512-4muilE1Lbfn57unR+/nT9AFjWk0MtWi5muwCEJqnOvfRQDbSfLCUdN7vCIg8TYuaANfhLOV85ve+FNpiUsbSRg==
+"@types/node@^20.11.17":
+ version "20.12.10"
+ resolved "https://registry.yarnpkg.com/@types/node/-/node-20.12.10.tgz#8f0c3f12b0f075eee1fe20c1afb417e9765bef76"
+ integrity sha512-Eem5pH9pmWBHoGAT8Dr5fdc5rYA+4NAovdM4EktRPVAAiJhmWWfQrA0cFhAbOsQdSfIHjAud6YdkbL69+zSKjw==
+ dependencies:
+ undici-types "~5.26.4"
+
"@types/parse-json@^4.0.0":
version "4.0.2"
resolved "https://registry.yarnpkg.com/@types/parse-json/-/parse-json-4.0.2.tgz#5950e50960793055845e956c427fc2b0d70c5239"