mirror of
https://github.com/misode/misode.github.io.git
synced 2026-04-23 07:10:41 +00:00
Update home page and logo in header
This commit is contained in:
21
src/app/pages/Worldgen.tsx
Normal file
21
src/app/pages/Worldgen.tsx
Normal file
@@ -0,0 +1,21 @@
|
||||
import config from '../../config.json'
|
||||
import { ToolCard } from '../components'
|
||||
import { locale } from '../Locales'
|
||||
import { cleanUrl } from '../Utils'
|
||||
|
||||
type WorldgenProps = {
|
||||
lang: string,
|
||||
changeTitle: (title: string) => unknown,
|
||||
path?: string,
|
||||
}
|
||||
export function Worldgen({ lang, changeTitle }: WorldgenProps) {
|
||||
const loc = locale.bind(null, lang)
|
||||
changeTitle(loc('title.generator_category', loc('worldgen')))
|
||||
return <main>
|
||||
<div class="home">
|
||||
{config.models.filter(m => m.category === 'worldgen').map(m =>
|
||||
<ToolCard title={loc(m.id)} link={cleanUrl(m.id)} />
|
||||
)}
|
||||
</div>
|
||||
</main>
|
||||
}
|
||||
Reference in New Issue
Block a user