diff --git a/README.md b/README.md index b909354..0cbf0fd 100644 --- a/README.md +++ b/README.md @@ -15,6 +15,7 @@ Table of Contents: - [Contribution Guidelines](#contribution-guidelines) - [Tests](#tests) - [Deployment](#deployment) +- [URL Structure](#url-structure) - [Resources](#resources) ## Setting up the project @@ -97,6 +98,19 @@ This project is using [conventional commits](https://www.conventionalcommits.org // TODO [vercel](https://vercel.com/) +## URL Structure + +``` +`/` +├── Results of past seasons +└──`[season]` -> year + └── `[location]` -> race location of race in season + └── `[session]` -> session of race + └── `[driver]` -> driverId in race session + ├── `/` -> ??? + └── `/telemetry` -> ??? +``` + ## Resources Key tools in use: `daisy-ui`, `tailwindcss`, `react`, `nextjs`, `pnpm`, `cypress` diff --git a/src/app/[season]/[location]/[driver]/[session]/page.tsx b/src/app/[season]/[location]/[driver]/[session]/page.tsx new file mode 100644 index 0000000..5583775 --- /dev/null +++ b/src/app/[season]/[location]/[driver]/[session]/page.tsx @@ -0,0 +1,7 @@ +export default function SessionPage({ + params, +}: { + params: { session: string }; +}) { + return

{params.session}

; +} diff --git a/src/app/[season]/[location]/[driver]/[session]/telemetry/page.tsx b/src/app/[season]/[location]/[driver]/[session]/telemetry/page.tsx new file mode 100644 index 0000000..5103797 --- /dev/null +++ b/src/app/[season]/[location]/[driver]/[session]/telemetry/page.tsx @@ -0,0 +1,3 @@ +export default function TelemetryPage() { + return

Telemetry

; +} diff --git a/src/app/[season]/[location]/[driver]/page.tsx b/src/app/[season]/[location]/[driver]/page.tsx new file mode 100644 index 0000000..f89aa92 --- /dev/null +++ b/src/app/[season]/[location]/[driver]/page.tsx @@ -0,0 +1,3 @@ +export default function DriverPage({ params }: { params: { driver: string } }) { + return

{params.driver}

; +}