From 1ad2f1b30664d2f398bc7cc228b22d3487845b84 Mon Sep 17 00:00:00 2001 From: Owen Rees Date: Fri, 9 Jun 2023 16:50:32 +0200 Subject: [PATCH] nav updated --- .gitignore | 2 + TODO | 26 ++++++++++++ app/about/page.tsx | 2 +- app/contact/page.tsx | 2 +- app/page.tsx | 27 ++++++++++--- components/Footer.tsx | 6 ++- components/Layout.tsx | 2 +- components/Navbar.tsx | 16 ++++---- components/TournamentMap.tsx | 2 +- cypress.config.ts | 2 +- cypress/component/mounting.cy.tsx | 62 +++++++++++++++-------------- cypress/component/utils.cy.ts | 55 +++++++++++++++++++++++++ cypress/videos/links.cy.ts.mp4 | Bin 241059 -> 0 bytes cypress/videos/mounting.cy.tsx.mp4 | Bin 0 -> 16701 bytes cypress/videos/utils.cy.ts.mp4 | Bin 0 -> 15397 bytes hooks/useTournamentFilter.tsx | 1 + package.json | 7 ++-- tsconfig.json | 1 + utils/layerGroups.tsx | 21 ++++++---- 19 files changed, 173 insertions(+), 61 deletions(-) create mode 100644 TODO create mode 100644 cypress/component/utils.cy.ts delete mode 100644 cypress/videos/links.cy.ts.mp4 create mode 100644 cypress/videos/mounting.cy.tsx.mp4 create mode 100644 cypress/videos/utils.cy.ts.mp4 diff --git a/.gitignore b/.gitignore index 8f322f0..5f82fe3 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,7 @@ # See https://help.github.com/articles/ignoring-files/ for more about ignoring files. +TODO + # dependencies /node_modules /.pnp diff --git a/TODO b/TODO new file mode 100644 index 0000000..27cfbc0 --- /dev/null +++ b/TODO @@ -0,0 +1,26 @@ +footer + +light/dark theme + +tests for tournois, testing the loading of map and table, then counting the markers + +logo for navbar and favicon + +tournament table scroll + +hover on table needs fixing - this only seemed to happen once I moved the logic into its own hook + +document my new hook + +error handling + +e2e tests for tournament page: + - make sure number of markers = tournamentData.length + +home page + +about page + +contact page + +SEO diff --git a/app/about/page.tsx b/app/about/page.tsx index 8cd2b45..a3653e3 100644 --- a/app/about/page.tsx +++ b/app/about/page.tsx @@ -3,7 +3,7 @@ import Layout from "@/components/Layout"; export default function About() { return ( -
+

About Page

diff --git a/app/contact/page.tsx b/app/contact/page.tsx index a54c9fb..a3903c7 100644 --- a/app/contact/page.tsx +++ b/app/contact/page.tsx @@ -3,7 +3,7 @@ import Layout from "@/components/Layout"; export default function Contact() { return ( -
+

Contact Page

diff --git a/app/page.tsx b/app/page.tsx index a03e3a0..9d643fd 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -1,14 +1,29 @@ +import Link from "next/link"; import Layout from "@/components/Layout"; export default function Home() { return ( -
-
-
-

Heading 1

-

Heading 2

-

Heading 3

+
+
+
+

Echecs France

+

+ Find chess tournaments in France on a map +

+

+ A visual representation of all the chess tournaments published by + the{" "} + + FFE + +

+ + Get Started +
diff --git a/components/Footer.tsx b/components/Footer.tsx index e0aa6ef..de98578 100644 --- a/components/Footer.tsx +++ b/components/Footer.tsx @@ -1,7 +1,9 @@ export default function Footer() { return ( -