Improve homepage (#245)

* Improve how generators are listed on home

* Add some icons for generators

* Remove debug

* Refactor cachedFetch and use generated changelogs

* Add limit to how many changes are shown by default

* Add more generator icons

* Refactor cards

* Fix generator icons for light theme

* Add more worldgen icons

* Add remaining generator icons

* Refactor navigation and badges style

* Group on homepage for guides and tools

* Fix header button style

* Add versions and technical changelog to homepage

* Make it clear that not all changes could be documented
This commit is contained in:
Misode
2022-07-01 23:48:38 +02:00
committed by GitHub
parent 29031bb375
commit d0bae089d1
40 changed files with 791 additions and 460 deletions

View File

@@ -4,7 +4,7 @@ import '../styles/global.css'
import '../styles/nodes.css'
import { Analytics } from './Analytics.js'
import { Header } from './components/index.js'
import { Category, Changelog, Generator, Guide, Guides, Home, Partners, Sounds, Versions } from './pages/index.js'
import { Changelog, Generator, Generators, Guide, Guides, Home, Partners, Sounds, Versions, Worldgen } from './pages/index.js'
import { cleanUrl } from './Utils.js'
export function App() {
@@ -18,14 +18,13 @@ export function App() {
<Header />
<Router onChange={changeRoute}>
<Home path="/" />
<Category path="/worldgen" category="worldgen" />
<Category path="/tags" category="tags" />
<Category path="/assets" category="assets" />
<Generators path="/generators" />
<Worldgen path="/worldgen" />
<Partners path="/partners" />
<Sounds path="/sounds" />
<Changelog path="/changelog" />
<Versions path="/versions" />
<Guides path="/guides/" />
<Guides path="/guides" />
<Guide path="/guides/:id" />
<Generator default />
</Router>