diff --git a/.github/workflows/cypress.yml b/.github/workflows/cypress.yml index e5e2261..0f7b626 100644 --- a/.github/workflows/cypress.yml +++ b/.github/workflows/cypress.yml @@ -13,11 +13,11 @@ jobs: steps: - name: Checkout uses: actions/checkout@v3 - + - name: Cache npm and NextJs build uses: actions/cache@v3 with: - # See here for caching with `yarn` https://github.com/actions/cache/blob/main/examples#node---yarn or you can leverage caching with actions/setup-node https://github.com/actions/setup-node + # See here for caching with `yarn` https://github.com/actions/cache/blob/main/examples#node---yarn, or you can leverage caching with actions/setup-node https://github.com/actions/setup-node path: | ~/.npm ${{ github.workspace }}/.next/cache @@ -26,7 +26,7 @@ jobs: # If source files changed but packages didn't, rebuild from a prior cache. restore-keys: | ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}- - + - name: Cypress run # Uses the official Cypress GitHub action https://github.com/cypress-io/github-action uses: cypress-io/github-action@v4 @@ -37,7 +37,7 @@ jobs: build: npm run build start: npm start wait-on: echo ${{ env.NEXT_PUBLIC_URL }}# Waits for above - # Records to Cypress Cloud + # Records to Cypress Cloud # https://docs.cypress.io/guides/cloud/projects#Set-up-a-project-to-record record: true parallel: true # Runs test in parallel using settings above diff --git a/README-fr.md b/README-fr.md index 1d7fb5f..b532155 100644 --- a/README-fr.md +++ b/README-fr.md @@ -1,4 +1,4 @@ -

Echecs France

+

Echecs France

[![en](https://img.shields.io/badge/lang-en-blue.svg?style=for-the-badge)](https://github.com/TheRealOwenRees/echecsfrance/blob/main/README.md) diff --git a/README.md b/README.md index 5da9a6c..c760b11 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -

Echecs France

+

Echecs France

[![fr](https://img.shields.io/badge/lang-fr-blue.svg?style=for-the-badge)](https://github.com/TheRealOwenRees/echecsfrance/blob/main/README-fr.md) @@ -20,11 +20,11 @@ and is deployed on [Vercel](https://vercel.com/) ## Dependencies - [Leaflet](https://leafletjs.com/) - a Javascript library for interactive maps -- [Nodemailer](https://nodemailer.com/about/) - a module for Node.js applications to allow easy as cake email sending +- [Nodemailer](https://nodemailer.com/) - a module for Node.js applications to allow easy as cake email sending ## Contributions Contributions are encouraged. Please open an issue to discuss your ideas. -Add your code into a feature branch such as `feature/feature-name`. We utilise a [Github Flow](https://www.gitkraken.com/learn/git/best-practices/git-branch-strategy#github-flow-considerations) branching strategy. +Add your code into a feature branch such as `feature/feature-name`. We utilise a [GitHub Flow](https://www.gitkraken.com/learn/git/best-practices/git-branch-strategy#github-flow-considerations) branching strategy. Please see the [TODO](https://github.com/TheRealOwenRees/echecsfrance/blob/main/TODO) file for a list of suggestions. diff --git a/TODO b/TODO index c00ca79..cd3a66d 100644 --- a/TODO +++ b/TODO @@ -4,17 +4,11 @@ TESTS ----------------------------------------------------------------- BUGS -//TODO about page is not centred in Safari //TODO tournament page load is weird on 2nd click. On safari it pauses for a few seconds. Is it trying to load the entire page before displaying? //TODO Nodemailer 'from' reverts to echecsfrance@gmail.com - quick fix done with sender address in subject line ----------------------------------------------------------------- -PAGES -//TODO about page - ---------------------------------------------------------------- DESIGN CHANGES -//TODO success and error messages into french - mailer //TODO font size on mobile screen //TODO mobile navbar is creeping into the page by a few pixels when hidden - move it to the right a bit. It is easier to see in light mode. I cant see this on Linux //TODO logo for navbar and favicon diff --git a/app/layout.tsx b/app/layout.tsx index 1e52a4a..bc99daa 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -2,6 +2,7 @@ import { Analytics } from "@vercel/analytics/react"; import "./globals.css"; import { Inter } from "next/font/google"; +import { ReactNode } from "react"; const inter = Inter({ subsets: ["latin"] }); @@ -11,11 +12,7 @@ export const metadata = { keywords: "echecs, France, tournoi, tournois, FFE, carte", }; -export default function RootLayout({ - children, -}: { - children: React.ReactNode; -}) { +export default function RootLayout({ children }: { children: ReactNode }) { return ( diff --git a/app/qui-sommes-nous/page.tsx b/app/qui-sommes-nous/page.tsx index aac9bba..03ac626 100644 --- a/app/qui-sommes-nous/page.tsx +++ b/app/qui-sommes-nous/page.tsx @@ -1,19 +1,121 @@ +import Link from "next/link"; import Layout from "@/components/Layout"; export default function About() { return ( -
-
-
+
+

Qui Sommes-Nous?

-

- Prochainement +

+ Ce projet a vu le jour début 2022 afin de permettre une + visualisation sur une carte des tournois d'échecs en France. + Ayant déménagé en France en 2019, je ne connaissais alors pas la + géographie française et je souhaitais savoir quels tournois avaient + lieu près de chez moi. +

+

+ Le projet a été mis de côté jusqu'au printemps 2023; date à + laquelle je lui ai redonné vie. Reconstruit à partir de zéro,{" "} + + Echecs France + {" "} + est désormais open source et ouvert aux contributions. +

+

+ Je compte mettre en place un bouton de don en ligne pour ceux qui + souhaitent participer aux frais associés au site. Une fois les coûts + de fonctionnement déduits, tous les fonds restant seront redirigés + vers le monde des échecs soit en sponsorant des événements ou par la + création de dons. +

+

+ Remerciements +

+

+ Ce projet est ce qu'il est grâce aux contributions de vous + tous. Je souhaite en particulier remercier les personnes suivantes + pour leurs contributions: +

+
    +
  • + + AlvaroNW + +
  • +
  • + + Florifourchette + +
  • +
+

+ Tech Blurb +

+

+ + Echecs France + {" "} + utilise: +

+
    +
  • + + NextJS + +
  • +
  • + + Typescript + +
  • +
  • + + Tailwind + +
  • +
  • + + MongoDB + +
  • +
+

+ avec +

+
    +
  • + + Leaflet + +
  • +
  • + + Nodemailer + +
  • +
+

+ Pour plus d'informations sur les moyens de contribution, + veuillez visiter notre{" "} + + GitHub. +

diff --git a/components/Footer.tsx b/components/Footer.tsx index 3df5be8..f4723ea 100644 --- a/components/Footer.tsx +++ b/components/Footer.tsx @@ -4,7 +4,7 @@ import { FaGithub, FaRegEnvelope } from "react-icons/fa"; export default function Footer() { return (