mirror of
https://github.com/TheRealOwenRees/echecsfrance.git
synced 2026-07-23 04:26:57 +00:00
table header sticky top
This commit is contained in:
@@ -1,5 +1,7 @@
|
|||||||
footer
|
footer
|
||||||
|
|
||||||
|
need a 'return to top' arrow button on smaller screens
|
||||||
|
|
||||||
light/dark theme
|
light/dark theme
|
||||||
|
|
||||||
tests for tournois, testing the loading of map and table, then counting the markers
|
tests for tournois, testing the loading of map and table, then counting the markers
|
||||||
|
|||||||
+1
-1
@@ -3,7 +3,7 @@ import Layout from "@/components/Layout";
|
|||||||
export default function About() {
|
export default function About() {
|
||||||
return (
|
return (
|
||||||
<Layout>
|
<Layout>
|
||||||
<header className="grid h-[calc(100%-156px)] md:h-[calc(100%-124px)] place-items-center">
|
<header className="grid h-[calc(100%-176px)] md:h-[calc(100%-132px)] place-items-center">
|
||||||
<div className="relative h-full w-full bg-amber-200"></div>
|
<div className="relative h-full w-full bg-amber-200"></div>
|
||||||
<div className="absolute">
|
<div className="absolute">
|
||||||
<h1>About Page</h1>
|
<h1>About Page</h1>
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ import Layout from "@/components/Layout";
|
|||||||
export default function Contact() {
|
export default function Contact() {
|
||||||
return (
|
return (
|
||||||
<Layout>
|
<Layout>
|
||||||
<header className="grid h-[calc(100%-156px)] md:h-[calc(100%-124px)] place-items-center">
|
<header className="grid h-[calc(100%-176px)] md:h-[calc(100%-132px)] place-items-center">
|
||||||
<div className="relative h-full w-full bg-amber-200"></div>
|
<div className="relative h-full w-full bg-amber-200"></div>
|
||||||
<div className="absolute">
|
<div className="absolute">
|
||||||
<h1>Contact Page</h1>
|
<h1>Contact Page</h1>
|
||||||
|
|||||||
+1
-1
@@ -4,7 +4,7 @@ import Layout from "@/components/Layout";
|
|||||||
export default function Home() {
|
export default function Home() {
|
||||||
return (
|
return (
|
||||||
<Layout>
|
<Layout>
|
||||||
<header className="grid h-[calc(100%-156px)] md:h-[calc(100%-124px)] place-items-center">
|
<header className="grid h-[calc(100%-176px)] md:h-[calc(100%-132px)] place-items-center">
|
||||||
<div className="relative h-full w-full bg-[url('/images/map-bg.jpg')] bg-cover bg-center brightness-[0.2]"></div>
|
<div className="relative h-full w-full bg-[url('/images/map-bg.jpg')] bg-cover bg-center brightness-[0.2]"></div>
|
||||||
<div className="absolute text-center">
|
<div className="absolute text-center">
|
||||||
<h1 className="text-5xl p-5">Echecs France</h1>
|
<h1 className="text-5xl p-5">Echecs France</h1>
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import Link from "next/link";
|
|||||||
|
|
||||||
export default function Navbar() {
|
export default function Navbar() {
|
||||||
return (
|
return (
|
||||||
<nav className="bg-gray-800 mt-0 w-full">
|
<nav className="bg-gray-800 pt-5 mt-0 w-full md:pt-2 px-5">
|
||||||
<div className="container mx-auto flex flex-wrap items-center">
|
<div className="container mx-auto flex flex-wrap items-center">
|
||||||
<div className="flex w-full md:w-1/2 justify-center md:justify-start text-white font-extrabold">
|
<div className="flex w-full md:w-1/2 justify-center md:justify-start text-white font-extrabold">
|
||||||
<Link
|
<Link
|
||||||
@@ -12,7 +12,7 @@ export default function Navbar() {
|
|||||||
<span className="text-2xl pl-2">Echecs France</span>
|
<span className="text-2xl pl-2">Echecs France</span>
|
||||||
</Link>
|
</Link>
|
||||||
</div>
|
</div>
|
||||||
<div className="flex w-full pt-2 content-center justify-between md:w-1/2 md:justify-end">
|
<div className="flex w-full pt-2 justify-center md:w-1/2 md:justify-end">
|
||||||
<ul className="list-reset text-white no-underline flex flex-1 md:flex-none items-center">
|
<ul className="list-reset text-white no-underline flex flex-1 md:flex-none items-center">
|
||||||
<li className="mr-10">
|
<li className="mr-10">
|
||||||
<Link
|
<Link
|
||||||
@@ -30,7 +30,7 @@ export default function Navbar() {
|
|||||||
About
|
About
|
||||||
</Link>
|
</Link>
|
||||||
</li>
|
</li>
|
||||||
<li className="mr-10">
|
<li className="">
|
||||||
<Link
|
<Link
|
||||||
className="inline-block border-b-4 py-5 border-transparent hover:border-teal-600 transition-all ease-in-out duration-300"
|
className="inline-block border-b-4 py-5 border-transparent hover:border-teal-600 transition-all ease-in-out duration-300"
|
||||||
href="/contact"
|
href="/contact"
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ export default function TournamentMap({ tournamentData }: TournamentDataProps) {
|
|||||||
return (
|
return (
|
||||||
<section
|
<section
|
||||||
id="tournament-map"
|
id="tournament-map"
|
||||||
className="grid h-[calc(100vh-108px)] md:h-[calc(100vh-76px)]"
|
className="grid h-[calc(100vh-128px)] md:h-[calc(100vh-82px)] lg:h-[calc(100vh-132px)]"
|
||||||
>
|
>
|
||||||
<MapContainer
|
<MapContainer
|
||||||
center={center}
|
center={center}
|
||||||
|
|||||||
@@ -19,19 +19,19 @@ export default function TournamentTable({
|
|||||||
return (
|
return (
|
||||||
<section
|
<section
|
||||||
id="tournament-table"
|
id="tournament-table"
|
||||||
className="w-full lg:col-start-2 lg:col-end-3"
|
className="w-full grid h-[calc(100vh-176px)] md:h-[calc(100vh-82px)] lg:h-[calc(100vh-132px)] lg:col-start-2 lg:col-end-3"
|
||||||
>
|
>
|
||||||
<SearchBar
|
<SearchBar
|
||||||
tournamentFilter={tournamentFilter}
|
tournamentFilter={tournamentFilter}
|
||||||
setTournamentFilter={setTournamentFilter}
|
setTournamentFilter={setTournamentFilter}
|
||||||
/>
|
/>
|
||||||
<table className="table-fixed w-full text-center text-xs">
|
<table className="relative table-fixed w-full text-center text-xs">
|
||||||
<thead className="bg-gray-600 text-white">
|
<thead className="bg-gray-600 text-white">
|
||||||
<tr className="">
|
<tr>
|
||||||
<th className="p-3">Date</th>
|
<th className="sticky top-0 p-3 bg-gray-600">Date</th>
|
||||||
<th className="p-3">Ville</th>
|
<th className="sticky top-0 p-3 bg-gray-600">Ville</th>
|
||||||
<th className="p-3">Tournois</th>
|
<th className="sticky top-0 p-3 bg-gray-600">Tournois</th>
|
||||||
<th className="p-3">Cadence</th>
|
<th className="sticky top-0 p-3 bg-gray-600">Cadence</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>{filteredTournamentData}</tbody>
|
<tbody>{filteredTournamentData}</tbody>
|
||||||
|
|||||||
Reference in New Issue
Block a user