Skip to content

Commit

Permalink
Add a page containing useful links (#112)
Browse files Browse the repository at this point in the history
  • Loading branch information
apache1123 authored Mar 15, 2024
1 parent 873fa81 commit 75d33fb
Show file tree
Hide file tree
Showing 10 changed files with 99 additions and 8 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tof-tools",
"version": "3.11.0",
"version": "3.12.0",
"private": true,
"scripts": {
"dev": "next dev",
Expand Down
2 changes: 1 addition & 1 deletion pages/damage-calculator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default function DamageCalculatorPage() {
return (
<>
<Head>
<title>ToF Damage Calculator</title>
<title>Damage Calculator | Tower of Fantasy Tools</title>
</Head>

<Container maxWidth="lg" sx={{ p: 3 }}>
Expand Down
2 changes: 1 addition & 1 deletion pages/gear-comparer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export default function GearComparerPage() {
return (
<>
<Head>
<title>ToF Gear Comparer</title>
<title>Compare Gear | Tower of Fantasy Tools</title>
</Head>

<Container maxWidth="lg" sx={{ p: 3 }}>
Expand Down
2 changes: 1 addition & 1 deletion pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default function Home() {
return (
<>
<Head>
<title>ToF tools</title>
<title>Tower of Fantasy Tools</title>
</Head>

<Container maxWidth="lg" sx={{ p: 3 }}></Container>
Expand Down
82 changes: 82 additions & 0 deletions pages/links.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
import CalculateIcon from '@mui/icons-material/Calculate';
import MapRoundedIcon from '@mui/icons-material/MapRounded';
import MenuBookRoundedIcon from '@mui/icons-material/MenuBookRounded';
import {
Container,
List,
ListItemButton,
ListItemIcon,
ListItemText,
Paper,
Typography,
} from '@mui/material';
import Head from 'next/head';
import type { ReactNode } from 'react';

const links: {
title: string;
description: string;
href: string;
icon: ReactNode;
}[] = [
{
title: "Maygi's Team DPS Calculator",
description:
'Calculator for analyzing frame data, finding optimal combos, and theorycrafting team comps',
href: 'https://docs.google.com/spreadsheets/d/1ZrJokNh_0AF_9welc7Etz6K8jlpzi5bXpiWz-mQZa78/edit#gid=1482052592',
icon: <CalculateIcon />,
},
{
title: 'Tower of Fantasy Index',
description:
'Community online resource for Global and Chinese versions of the game',
href: 'https://toweroffantasy.info/',
icon: <MenuBookRoundedIcon />,
},
{
title: 'Tower of Fantasy Wiki',
description:
'Community wiki - English resource centered around the Global version of the game',
href: 'https://toweroffantasy.fandom.com',
icon: <MenuBookRoundedIcon />,
},
{
title: 'Tower of Fantasy Interactive Map',
description: '',
href: 'https://toweroffantasy.interactivemap.app/',
icon: <MapRoundedIcon />,
},
{
title: 'Tower of Fantasy Interactive Map',
description:
'Another interactive map based off the Chinese version of the game',
href: 'https://www.ghzs666.com/tower-of-fantasy-map#/',
icon: <MapRoundedIcon />,
},
];

export default function LinksPage() {
return (
<>
<Head>
<title>Useful Links | Tower of Fantasy Tools</title>
</Head>

<Container maxWidth="lg" sx={{ p: 3 }}>
<Paper sx={{ p: 2 }}>
<List>
{links.map(({ title, description, href, icon }, index) => (
<ListItemButton key={index} href={href} target="_blank">
<ListItemIcon>{icon}</ListItemIcon>
<ListItemText
primary={<Typography color="primary">{title}</Typography>}
secondary={description}
/>
</ListItemButton>
))}
</List>
</Paper>
</Container>
</>
);
}
2 changes: 1 addition & 1 deletion pages/loadouts.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export default function LoadoutsPage() {
return (
<>
<Head>
<title>ToF Loadouts</title>
<title>Loadouts | Tower of Fantasy Tools</title>
</Head>

<Container maxWidth="xl" sx={{ p: 3 }}>
Expand Down
2 changes: 1 addition & 1 deletion pages/settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default function StatsPage() {
return (
<>
<Head>
<title>ToF tools settings</title>
<title>Settings | Tower of Fantasy Tools</title>
</Head>

<Container maxWidth="lg" sx={{ p: 3 }}>
Expand Down
2 changes: 1 addition & 1 deletion pages/stats.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export default function StatsPage() {
return (
<>
<Head>
<title>ToF Stats stuff</title>
<title>Stats Stuff | Tower of Fantasy Tools</title>
</Head>

<Container maxWidth="lg" sx={{ p: 3 }}>
Expand Down
6 changes: 5 additions & 1 deletion src/components/Navbar/Navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const pages: { label: string; path: string }[] = [
path: '/loadouts',
},
{
label: 'Gear comparer',
label: 'Compare Gear',
path: '/gear-comparer',
},
{
Expand All @@ -31,6 +31,10 @@ const pages: { label: string; path: string }[] = [
label: 'Settings',
path: '/settings',
},
{
label: 'Useful Links',
path: '/links',
},
];

export function Navbar() {
Expand Down
5 changes: 5 additions & 0 deletions src/constants/changelog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -196,4 +196,9 @@ export const changelog: Changelog = [
date: new Date(Date.UTC(2024, 2, 13)),
title: 'Add Asuka',
},
{
semver: '3.12.0',
date: new Date(Date.UTC(2024, 2, 15)),
title: 'Add a page containing useful links',
},
];

0 comments on commit 75d33fb

Please sign in to comment.