Reintroduced the wiki pages

This commit is contained in:
DrMint 2022-03-19 17:32:23 +01:00
parent 76a44457e4
commit c48ff5249b
3 changed files with 25 additions and 3 deletions

View File

@ -155,18 +155,17 @@ export default function MainPanel(props: MainPanelProps): JSX.Element {
onClick={() => appLayout.setMainPanelOpen(false)}
/>
{/*
<NavOption
url="/wiki"
icon="travel_explore"
title={langui.wiki}
subtitle={langui.wiki_short_description}
reduced={appLayout.mainPanelReduced && isDesktop}
onClick={() => appLayout.setMainPanelOpen(false)}
/>
{/*
<NavOption
url="/chronicles"
icon="watch_later"

View File

@ -17,6 +17,9 @@ import {
import InsetBox from "components/InsetBox";
import { useRouter } from "next/router";
import { AppStaticProps, getAppStaticProps } from "queries/getAppStaticProps";
import ReturnButton, {
ReturnButtonType,
} from "components/PanelComponents/ReturnButton";
interface ChronologyProps extends AppStaticProps {
chronologyItems: GetChronologyItemsQuery["chronologyItems"]["data"];
@ -60,6 +63,14 @@ export default function Chronology(props: ChronologyProps): JSX.Element {
const subPanel = (
<SubPanel>
<ReturnButton
href="/wiki"
title={langui.wiki}
langui={langui}
displayOn={ReturnButtonType.Desktop}
horizontalLine
/>
{chronologyEras.map((era) => (
<NavOption
key={era.id}
@ -80,6 +91,15 @@ export default function Chronology(props: ChronologyProps): JSX.Element {
const contentPanel = (
<ContentPanel>
<ReturnButton
href="/wiki"
title={langui.wiki}
langui={langui}
displayOn={ReturnButtonType.Mobile}
className="mb-10"
/>
{chronologyItemYearGroups.map((era, eraIndex) => (
<>
<InsetBox

View File

@ -3,6 +3,8 @@ import PanelHeader from "components/PanelComponents/PanelHeader";
import { GetStaticProps } from "next";
import AppLayout from "components/AppLayout";
import { AppStaticProps, getAppStaticProps } from "queries/getAppStaticProps";
import HorizontalLine from "components/HorizontalLine";
import NavOption from "components/PanelComponents/NavOption";
interface WikiProps extends AppStaticProps {}
@ -15,6 +17,7 @@ export default function Wiki(props: WikiProps): JSX.Element {
title={langui.wiki}
description={langui.wiki_description}
/>
<NavOption title="Chronology" url="/wiki/chronology" border/>
</SubPanel>
);