Refactor code structure for improved readability and maintainability

This commit is contained in:
2025-08-04 17:12:11 +05:00
parent dc8260879d
commit 3da5ebba87
9 changed files with 49 additions and 7 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 103 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 88 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 125 KiB

+2 -2
View File
@@ -137,13 +137,13 @@ function Activities() {
<SwiperSlide> <SwiperSlide>
<Slide <Slide
title="Автовыставка" title="Автовыставка"
imageSrc="/images/activities/car1.png" imageSrc="/images/activities/car1.jpg"
/> />
</SwiperSlide> </SwiperSlide>
<SwiperSlide> <SwiperSlide>
<Slide <Slide
title="дрифт такси" title="дрифт такси"
imageSrc="/images/activities/taxi.png" imageSrc="/images/activities/taxi.jpg"
/> />
</SwiperSlide> </SwiperSlide>
<SwiperSlide> <SwiperSlide>
+2 -2
View File
@@ -92,7 +92,7 @@ function Cover() {
return ( return (
<div <div
className="bg-cover bg-center bg-no-repeat relative justify-center items-center py-36" className="bg-cover bg-center bg-no-repeat relative justify-center items-center py-36"
style={{ backgroundImage: "url('/images/cover.svg')" }} style={{ backgroundImage: "url('/images/KV.png')" }}
> >
<div className="container mx-auto mb-24"> <div className="container mx-auto mb-24">
{/* Top row with ФЕСТИВАЛЬ and date box */} {/* Top row with ФЕСТИВАЛЬ and date box */}
@@ -143,7 +143,7 @@ function CoverSoon() {
return ( return (
<div <div
className="bg-cover bg-center bg-no-repeat relative justify-center items-center py-36" className="bg-cover bg-center bg-no-repeat relative justify-center items-center py-36"
style={{ backgroundImage: "url('/images/cover.svg')" }} style={{ backgroundImage: "url('/images/KV.png')" }}
> >
<div className="container mx-auto max-w-5/7 mb-24"> <div className="container mx-auto max-w-5/7 mb-24">
{/* Top row with ФЕСТИВАЛЬ and date box */} {/* Top row with ФЕСТИВАЛЬ and date box */}
+1 -1
View File
@@ -87,7 +87,7 @@ function Info() {
</div> </div>
<div className="w-full md:w-1/3 flex justify-center"> <div className="w-full md:w-1/3 flex justify-center">
<img <img
src="/images/info/podium.png" src="/images/info/podium.jpg"
alt="car" alt="car"
className="w-3/4 md:w-full h-auto object-cover" className="w-3/4 md:w-full h-auto object-cover"
/> />
+28
View File
@@ -17,8 +17,36 @@ export default function Document() {
<meta property="og:url" content="https://tech-fest.sport.mos.ru/" /> <meta property="og:url" content="https://tech-fest.sport.mos.ru/" />
<meta property="og:type" content="website" /> <meta property="og:type" content="website" />
<meta property="og:image" content="/preview.jpg" /> <meta property="og:image" content="/preview.jpg" />
{/* Yandex.Metrika counter */}
<script
type="text/javascript"
dangerouslySetInnerHTML={{
__html: `
(function(m,e,t,r,i,k,a){
m[i]=m[i]||function(){(m[i].a=m[i].a||[]).push(arguments)};
m[i].l=1*new Date();
for (var j = 0; j < document.scripts.length; j++) {if (document.scripts[j].src === r) { return; }}
k=e.createElement(t),a=e.getElementsByTagName(t)[0],k.async=1,k.src=r,a.parentNode.insertBefore(k,a)
})(window, document,'script','https://mc.yandex.ru/metrika/tag.js', 'ym');
ym(90126150, 'init', {webvisor:true, clickmap:true, accurateTrackBounce:true, trackLinks:true});
`,
}}
/>
</Head> </Head>
<body className="antialiased"> <body className="antialiased">
{/* Yandex.Metrika noscript fallback */}
<noscript>
<div>
<img
src="https://mc.yandex.ru/watch/90126150"
style={{ position: "absolute", left: "-9999px" }}
alt=""
/>
</div>
</noscript>
<div <div
style={{ display: "none" }} style={{ display: "none" }}
itemScope itemScope
+16 -2
View File
@@ -1,8 +1,13 @@
import React from "react"; import React from "react";
import Head from "next/head"; import Head from "next/head";
import { fluxgore, gothampro } from "@/utils/fonts"; import { fluxgore, gothampro } from "@/utils/fonts";
import Button from "@/components/Button";
import { useRouter } from "next/router";
function ThankYouPage() { function ThankYouPage() {
const router = useRouter();
return ( return (
<div className="relative p-6 md:p-8 lg:p-12 flex flex-col items-center justify-center h-full"> <div className="relative p-6 md:p-8 lg:p-12 flex flex-col items-center justify-center h-full">
<Head> <Head>
@@ -16,10 +21,19 @@ function ThankYouPage() {
</h1> </h1>
<p <p
className={`${gothampro.className} text-lg md:text-2xl text-center text-[#060606]`} className={`${gothampro.className} text-lg md:text-2xl text-center text-[#060606] mb-8 md:mb-12`}
> >
Ваша заявка отправлена. вам придет письмо на почту Ваша заявка отправлена. Если её одобрят, мы свяжемся с Вами!
</p> </p>
<Button
onClick={() => {
router.push("/");
}}
variant="blue"
>
Вернуться на сайт
</Button>
</div> </div>
); );
} }