feat: moved tools outside page

This commit is contained in:
TrèsAbhi committed 2023-09-24 17:24:21 -05:00
1 parent d801447e5d
commit b4cab18ecd
4 files changed
+36 -37

No files matched your search

+2 -35
View File
@@ -6,49 +6,16 @@ import { useRef } from 'react';
import { Search, SearchItem } from 'react-fuzzysort';
import PageWrapper from '../components/PageWrapper';
import { SearchBar } from '../components/SearchBar';
import { TOOLS } from '../constants/tools';
import { theme } from '../stitches.config';
import * as styles from './page.css';
export const TOOLS = [
{
id: 'session',
title: 'Session tracker',
description: 'Track your performance in a session',
},
{
id: 'ratings',
title: 'Ratings',
description: 'Current and old season leader boards',
},
{
id: 'tankopedia',
title: 'Tankopedia',
description: 'Full Blitz tank encyclopedia',
},
{
id: 'inactive',
title: 'Inactivity tracker',
description: 'Find inactive members of a clan',
},
{
id: 'profile',
title: 'Player profile',
description: "A player's basic non-statistical info",
},
// {
// title: 'More coming soon',
// description: 'New tools are added often',
// banner: '/assets/banners/more.png',
// id: 'https://discord.gg/nDt7AjGJQH',
// },
];
export default function Page() {
const input = useRef<HTMLInputElement>(null);
return (
<PageWrapper>
<SearchBar ref={input} />
<SearchBar placeholder="Search tools..." ref={input} />
<div
style={{
+1 -1
View File
@@ -1,8 +1,8 @@
'use client';
import { ReactNode } from 'react';
import { TOOLS } from '../../constants/tools';
import { theme } from '../../stitches.config';
import { TOOLS } from '../page';
interface ToolsLayoutProps {
children: ReactNode;
-1
View File
@@ -39,7 +39,6 @@ export const SearchBar = forwardRef<HTMLInputElement, ComponentProps<'input'>>(
outline: 'none',
fontSize: 'inherit',
}}
placeholder="Search tools..."
/>
</div>
);
+33
View File
@@ -0,0 +1,33 @@
export const TOOLS = [
{
id: 'session',
title: 'Session tracker',
description: 'Track your performance in a session',
},
// {
// id: 'ratings',
// title: 'Ratings',
// description: 'Current and old season leader boards',
// },
// {
// id: 'tankopedia',
// title: 'Tankopedia',
// description: 'Full Blitz tank encyclopedia',
// },
// {
// id: 'inactive',
// title: 'Inactivity tracker',
// description: 'Find inactive members of a clan',
// },
// {
// id: 'profile',
// title: 'Player profile',
// description: "A player's basic non-statistical info",
// },
// {
// title: 'More coming soon',
// description: 'New tools are added often',
// banner: '/assets/banners/more.png',
// id: 'https://discord.gg/nDt7AjGJQH',
// },
];