mirror of
https://github.com/Lapikud/tipilan.git
synced 2026-03-23 21:34:21 +00:00
add SectionDivider component to all pages
This commit is contained in:
@@ -3,6 +3,7 @@
|
|||||||
import {useState} from "react";
|
import {useState} from "react";
|
||||||
import {vipnagorgialla} from "@/components/Vipnagorgialla";
|
import {vipnagorgialla} from "@/components/Vipnagorgialla";
|
||||||
import {scheduleData} from "@/data/timetable";
|
import {scheduleData} from "@/data/timetable";
|
||||||
|
import SectionDivider from "@/components/SectionDivider";
|
||||||
|
|
||||||
const tabs = Object.keys(scheduleData);
|
const tabs = Object.keys(scheduleData);
|
||||||
|
|
||||||
@@ -11,6 +12,7 @@ export default function Timetable() {
|
|||||||
const schedule = scheduleData[activeTab];
|
const schedule = scheduleData[activeTab];
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
<div>
|
||||||
<div className="flex flex-col min-h-[90vh] m-6 mt-16 md:m-16">
|
<div className="flex flex-col min-h-[90vh] m-6 mt-16 md:m-16">
|
||||||
<h1
|
<h1
|
||||||
className={`text-5xl sm:text-6xl ${vipnagorgialla.className} font-bold italic uppercase text-[#2A2C3F] dark:text-[#EEE5E5] mt-8 md:mt-16 mb-8`}
|
className={`text-5xl sm:text-6xl ${vipnagorgialla.className} font-bold italic uppercase text-[#2A2C3F] dark:text-[#EEE5E5] mt-8 md:mt-16 mb-8`}
|
||||||
@@ -68,5 +70,8 @@ export default function Timetable() {
|
|||||||
))}
|
))}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<SectionDivider/>
|
||||||
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ import path from "node:path";
|
|||||||
import ReactMarkdown from "react-markdown";
|
import ReactMarkdown from "react-markdown";
|
||||||
import remarkGfm from "remark-gfm";
|
import remarkGfm from "remark-gfm";
|
||||||
import {vipnagorgialla} from "@/components/Vipnagorgialla";
|
import {vipnagorgialla} from "@/components/Vipnagorgialla";
|
||||||
|
import SectionDivider from "@/components/SectionDivider";
|
||||||
|
|
||||||
export const runtime = "nodejs"; // ensure fs is available (not Edge)
|
export const runtime = "nodejs"; // ensure fs is available (not Edge)
|
||||||
export const dynamic = "force-static"; // read at build time
|
export const dynamic = "force-static"; // read at build time
|
||||||
@@ -13,6 +14,7 @@ export default function Page() {
|
|||||||
const content = fs.readFileSync(filePath, "utf8");
|
const content = fs.readFileSync(filePath, "utf8");
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
<div>
|
||||||
<div className="flex flex-col min-h-[90vh] m-6 mt-16 md:m-16">
|
<div className="flex flex-col min-h-[90vh] m-6 mt-16 md:m-16">
|
||||||
{/* Page title (separate from markdown headings) */}
|
{/* Page title (separate from markdown headings) */}
|
||||||
<h1
|
<h1
|
||||||
@@ -46,5 +48,8 @@ export default function Page() {
|
|||||||
</ReactMarkdown>
|
</ReactMarkdown>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<SectionDivider/>
|
||||||
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ import { vipnagorgialla } from "@/components/Vipnagorgialla";
|
|||||||
import * as THREE from "three";
|
import * as THREE from "three";
|
||||||
import {useEffect, useRef, useState} from "react";
|
import {useEffect, useRef, useState} from "react";
|
||||||
import {EyeClosed, Eye} from "lucide-react";
|
import {EyeClosed, Eye} from "lucide-react";
|
||||||
|
import SectionDivider from "@/components/SectionDivider";
|
||||||
|
|
||||||
// Define interface for the ref with toggle function
|
// Define interface for the ref with toggle function
|
||||||
interface MountRefCurrent extends HTMLDivElement {
|
interface MountRefCurrent extends HTMLDivElement {
|
||||||
@@ -369,6 +370,7 @@ export default function Expo() {
|
|||||||
}, [showDividers]);
|
}, [showDividers]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
<div>
|
||||||
<div className="flex flex-col min-h-[90vh] m-6 mt-16 md:m-16">
|
<div className="flex flex-col min-h-[90vh] m-6 mt-16 md:m-16">
|
||||||
<h1
|
<h1
|
||||||
className={`text-4xl md:text-5xl lg:text-6xl ${vipnagorgialla.className} font-bold italic text-[#2A2C3F] dark:text-[#EEE5E5] mt-8 md:mt-16 mb-4 uppercase`}
|
className={`text-4xl md:text-5xl lg:text-6xl ${vipnagorgialla.className} font-bold italic text-[#2A2C3F] dark:text-[#EEE5E5] mt-8 md:mt-16 mb-4 uppercase`}
|
||||||
@@ -476,5 +478,8 @@ export default function Expo() {
|
|||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<SectionDivider />
|
||||||
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,16 +1,20 @@
|
|||||||
import {vipnagorgialla} from "@/components/Vipnagorgialla";
|
import {vipnagorgialla} from "@/components/Vipnagorgialla";
|
||||||
import Link from "next/link";
|
import Link from "next/link";
|
||||||
|
import SectionDivider from "@/components/SectionDivider";
|
||||||
|
|
||||||
export default function Tickets() {
|
export default function Tickets() {
|
||||||
return (
|
return (
|
||||||
|
<div>
|
||||||
<div className="flex flex-col min-h-[90vh] m-6 mt-16 md:m-16">
|
<div className="flex flex-col min-h-[90vh] m-6 mt-16 md:m-16">
|
||||||
<h1
|
<h1
|
||||||
className={`text-4xl md:text-5xl lg:text-6xl ${vipnagorgialla.className} font-bold italic text-[#2A2C3F] dark:text-[#EEE5E5] mt-8 md:mt-16 mb-4`}
|
className={`text-4xl md:text-5xl lg:text-6xl ${vipnagorgialla.className} font-bold italic text-[#2A2C3F] dark:text-[#EEE5E5] mt-8 md:mt-16 mb-4`}
|
||||||
>
|
>
|
||||||
PILETID JA REGIS­TREERIMINE
|
PILETID JA REGIS­TREERIMINE
|
||||||
</h1>
|
</h1>
|
||||||
<div className="flex justify-center lg:items-center flex-col lg:flex-row gap-8 md:gap-12 flex-grow mb-16 md:mt-8 lg:mt-0">
|
<div
|
||||||
<div className="bg-[#007CAB] -skew-x-2 md:-skew-x-5 text-white px-8 md:px-12 py-16 hover:scale-103 transition-all duration-150 w-full md:w-xl lg:w-[400px]">
|
className="flex justify-center lg:items-center flex-col lg:flex-row gap-8 md:gap-12 flex-grow mb-16 md:mt-8 lg:mt-0">
|
||||||
|
<div
|
||||||
|
className="bg-[#007CAB] -skew-x-2 md:-skew-x-5 text-white px-8 md:px-12 py-16 hover:scale-103 transition-all duration-150 w-full md:w-xl lg:w-[400px]">
|
||||||
<h2
|
<h2
|
||||||
className={`text-6xl ${vipnagorgialla.className} font-bold italic text-[#EEE5E5] pb-2`}
|
className={`text-6xl ${vipnagorgialla.className} font-bold italic text-[#EEE5E5] pb-2`}
|
||||||
>
|
>
|
||||||
@@ -37,7 +41,8 @@ export default function Tickets() {
|
|||||||
</button>
|
</button>
|
||||||
</Link>
|
</Link>
|
||||||
</div>
|
</div>
|
||||||
<div className="bg-[#1F5673] -skew-x-2 md:-skew-x-5 text-white px-8 md:px-12 py-16 hover:scale-103 transition-all duration-150 w-full md:w-xl lg:w-[400px]">
|
<div
|
||||||
|
className="bg-[#1F5673] -skew-x-2 md:-skew-x-5 text-white px-8 md:px-12 py-16 hover:scale-103 transition-all duration-150 w-full md:w-xl lg:w-[400px]">
|
||||||
<h2
|
<h2
|
||||||
className={`text-6xl ${vipnagorgialla.className} font-bold italic text-[#EEE5E5] pb-2`}
|
className={`text-6xl ${vipnagorgialla.className} font-bold italic text-[#EEE5E5] pb-2`}
|
||||||
>
|
>
|
||||||
@@ -66,7 +71,8 @@ export default function Tickets() {
|
|||||||
</Link>
|
</Link>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="bg-[#007CAB] -skew-x-2 md:-skew-x-5 text-white px-8 md:px-12 py-16 hover:scale-103 transition-all duration-150 w-full md:w-xl lg:w-[400px]">
|
<div
|
||||||
|
className="bg-[#007CAB] -skew-x-2 md:-skew-x-5 text-white px-8 md:px-12 py-16 hover:scale-103 transition-all duration-150 w-full md:w-xl lg:w-[400px]">
|
||||||
<h2
|
<h2
|
||||||
className={`text-6xl ${vipnagorgialla.className} font-bold italic text-[#EEE5E5] pb-2`}
|
className={`text-6xl ${vipnagorgialla.className} font-bold italic text-[#EEE5E5] pb-2`}
|
||||||
>
|
>
|
||||||
@@ -92,5 +98,8 @@ export default function Tickets() {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<SectionDivider />
|
||||||
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ import { vipnagorgialla } from "@/components/Vipnagorgialla";
|
|||||||
import path from "node:path";
|
import path from "node:path";
|
||||||
import fs from "node:fs/promises";
|
import fs from "node:fs/promises";
|
||||||
import ReactMarkdown from "react-markdown";
|
import ReactMarkdown from "react-markdown";
|
||||||
|
import SectionDivider from "@/components/SectionDivider";
|
||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
params: Promise<{ slug: string }>;
|
params: Promise<{ slug: string }>;
|
||||||
@@ -23,6 +24,7 @@ export default async function RulePage({ params }: Props) {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
|
<div className="mb-16">
|
||||||
<h1
|
<h1
|
||||||
className={`not-prose ${vipnagorgialla.className} font-bold italic uppercase text-[64px] leading-[96px] tracking-[-0.02em] text-[#2A2C3F] dark:text-[#EEE5E5] mx-auto mt-16 mb-6 px-8`}
|
className={`not-prose ${vipnagorgialla.className} font-bold italic uppercase text-[64px] leading-[96px] tracking-[-0.02em] text-[#2A2C3F] dark:text-[#EEE5E5] mx-auto mt-16 mb-6 px-8`}
|
||||||
>
|
>
|
||||||
@@ -39,6 +41,9 @@ export default async function RulePage({ params }: Props) {
|
|||||||
>
|
>
|
||||||
<ReactMarkdown>{file}</ReactMarkdown>
|
<ReactMarkdown>{file}</ReactMarkdown>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<SectionDivider/>
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user