mirror of
https://github.com/misode/misode.github.io.git
synced 2026-04-23 07:10:41 +00:00
44 lines
1.5 KiB
TypeScript
44 lines
1.5 KiB
TypeScript
import { Footer, Giscus, ToolCard } from '../components/index.js'
|
|
import config from '../Config.js'
|
|
import { useLocale, useTitle } from '../contexts/index.js'
|
|
import { cleanUrl } from '../Utils.js'
|
|
|
|
interface Props {
|
|
path?: string,
|
|
}
|
|
export function Home({}: Props) {
|
|
const { locale } = useLocale()
|
|
useTitle(locale('title.home'))
|
|
return <main>
|
|
<div class="home">
|
|
<ToolCard title="Data packs">
|
|
{config.generators.filter(g => !g.category).map(g =>
|
|
<ToolCard title={locale(g.id)} link={cleanUrl(g.url)} />
|
|
)}
|
|
<ToolCard title={locale('tags')} link="/tags/" />
|
|
<ToolCard title={locale('worldgen')} link="/worldgen/" />
|
|
</ToolCard>
|
|
<ToolCard title="Resource packs">
|
|
{config.generators.filter(g => g.category === 'assets').map(g =>
|
|
<ToolCard title={locale(g.id)} link={cleanUrl(g.url)} />
|
|
)}
|
|
</ToolCard>
|
|
<ToolCard title="Partners" link="/partners/" />
|
|
<ToolCard title="Report Inspector" icon="report"
|
|
link="https://misode.github.io/report/"
|
|
desc="Analyse your performance reports" />
|
|
<ToolCard title="Minecraft Sounds" icon="sounds"
|
|
link="/sounds/"
|
|
desc="Browse through and mix all the vanilla sounds" />
|
|
<ToolCard title="Data Pack Upgrader"
|
|
link="https://misode.github.io/upgrader/"
|
|
desc="Convert your data packs from 1.16 to 1.17 to 1.18" />
|
|
<ToolCard title="Technical Changelog" link="/changelog/" />
|
|
<ToolCard title="Minecraft Versions" link="/versions/" />
|
|
<ToolCard title="Data Pack Guides" link="/guides/" />
|
|
<Giscus />
|
|
<Footer />
|
|
</div>
|
|
</main>
|
|
}
|