Update home page and logo in header

This commit is contained in:
Misode
2021-06-30 05:36:26 +02:00
parent 2fb4848425
commit cabd97cb39
10 changed files with 140 additions and 79 deletions

View 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>
}