Skip to content

Commit

Permalink
Remove navlink list
Browse files Browse the repository at this point in the history
  • Loading branch information
thearyadev committed Dec 26, 2023
1 parent afd7045 commit dbf2141
Showing 1 changed file with 3 additions and 17 deletions.
20 changes: 3 additions & 17 deletions frontend/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import '../app/globals.scss';
import type {AppProps} from 'next/app';
import {Header} from "@/app/components";
import {useRouter} from "next/router";
import {GetServerSidePropsContext} from "next";

interface T500AggregatorAppProps extends AppProps {
data: string[] | undefined;
Expand All @@ -14,25 +13,12 @@ function MyApp({Component, pageProps}: T500AggregatorAppProps) {
const router = useRouter()
const {seasonNumber} = router.query
const path = router.asPath
const links = [
{label: "Trends", path: "/trends"},
{label: "Season 7", path: "/season/7"},
{label: "Season 6", path: "/season/6"},
{label: "Season 5", path: "/season/5"},
{label: "Season 4", path: "/season/4"},
{label: "Season 3", path: "/season/3"},
{label: "Season 2", path: "/season/2"},
{label: "Season 1", path: "/season/1"},
{label: "Season 36", path: "/season/36"},
{label: "Season 35", path: "/season/35"},
{label: "Season 34", path: "/season/34"},
]

return (
<>
<Header nav_links={links}/>
<Header />
<main className="mt-5 lg:ml-3 lg:mr-3 sm:ml-1 sm:mr-1">
<h2 className={"text-4xl pb-4"}>{seasonNumber? `Season ${seasonNumber}`: path.toLowerCase().includes("trends") ? "Trends" : "Season 7"}</h2>

<h1 id="curseason" className={"text-4xl pb-4"}>{seasonNumber ?`Season ${seasonNumber}` : path.toLowerCase().includes("trends") ? "Trends": null}</h1>
<p className="pb-2"><strong>Welcome to Overwatch 2 Top 500 Aggregator</strong></p>
<p>The data available on this page is not 100% accurate. Data collection involves computer vision and
image classification using a neural network, and as
Expand Down

0 comments on commit dbf2141

Please sign in to comment.