mirror of
https://github.com/italicsjenga/agb.git
synced 2024-12-23 08:11:33 +11:00
link back to where you left off
This commit is contained in:
parent
917d7b3d5a
commit
c14b4dfc35
|
@ -54,7 +54,7 @@ function Display({ game }: { game: ShowcaseGame }) {
|
||||||
<>
|
<>
|
||||||
<ContentBlock color="#AAAFFF">
|
<ContentBlock color="#AAAFFF">
|
||||||
<BackToShowcaseWrapper>
|
<BackToShowcaseWrapper>
|
||||||
<Link href="../showcase">
|
<Link href={`../showcase#${slugify(game.name)}`}>
|
||||||
<strong><</strong> Back to showcase
|
<strong><</strong> Back to showcase
|
||||||
</Link>
|
</Link>
|
||||||
</BackToShowcaseWrapper>
|
</BackToShowcaseWrapper>
|
||||||
|
|
|
@ -28,7 +28,10 @@ export default function ColourPickerPage() {
|
||||||
function Game({ game }: { game: ShowcaseGame }) {
|
function Game({ game }: { game: ShowcaseGame }) {
|
||||||
const showcaseImage = game.screenshots[game.screenshots.length - 1];
|
const showcaseImage = game.screenshots[game.screenshots.length - 1];
|
||||||
return (
|
return (
|
||||||
<GameDisplay href={`./showcase/${slugify(game.name)}`}>
|
<GameDisplay
|
||||||
|
href={`./showcase/${slugify(game.name)}`}
|
||||||
|
id={slugify(game.name)}
|
||||||
|
>
|
||||||
<GameImage src={showcaseImage} alt={`Screenshot of ${game.name}`} />
|
<GameImage src={showcaseImage} alt={`Screenshot of ${game.name}`} />
|
||||||
<h2>{game.name}</h2>
|
<h2>{game.name}</h2>
|
||||||
</GameDisplay>
|
</GameDisplay>
|
||||||
|
|
Loading…
Reference in a new issue