Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FRON-10 Document site url endpoints #18

Merged
merged 2 commits into from
Feb 4, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
chore: FRON-10 adding placeholder pages
Lombardoc4 authored and borolepratik committed Feb 4, 2024
commit be1d2e12a2329a000bab32cdb31ca7c194231fcc
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -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`
7 changes: 7 additions & 0 deletions src/app/[season]/[location]/[driver]/[session]/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
export default function SessionPage({
params,
}: {
params: { session: string };
}) {
return <h1>{params.session}</h1>;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export default function TelemetryPage() {
return <h1>Telemetry</h1>;
}
3 changes: 3 additions & 0 deletions src/app/[season]/[location]/[driver]/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export default function DriverPage({ params }: { params: { driver: string } }) {
return <h1>{params.driver}</h1>;
}