Skip to content

Commit 1ef97ca

Browse files
committed
[main]: fix back button issue
1 parent 3f467ae commit 1ef97ca

File tree

5 files changed

+20
-17
lines changed

5 files changed

+20
-17
lines changed

src/components/Back.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ import BackIcon from "@/assets/icons/back.svg";
1414
}
1515
</style>
1616

17-
<a href="/" class="back">
17+
<a href="/games" class="back">
1818
<BackIcon />
1919
</a>

src/components/GamesGrid.astro

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ interface Props {
99
const { games } = Astro.props;
1010
---
1111

12+
<style>
13+
h3 {
14+
color: green;
15+
}
16+
</style>
17+
1218
<div class="games-grid">
1319
{
1420
games.map((game) => (

src/pages/gamePage.astro

Lines changed: 0 additions & 14 deletions
This file was deleted.

src/pages/games.astro

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
import "@/assets/styles/landing.css";
3+
import Categories from "@/components/Categories.astro";
4+
import BaseLayout from "@/layouts/Base";
5+
import TitleLayout from "@/layouts/TitleLayout";
6+
---
7+
8+
<BaseLayout meta={{}}>
9+
<TitleLayout title="Games Category" />
10+
<Categories />
11+
</BaseLayout>

src/pages/index.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
//import "@/assets/styles/index.css";
3-
import MobileSplash from "@/components/MobileSplash.astro";
3+
//import MobileSplash from "@/components/MobileSplash.astro";
44
// import TestimonialsSection from "@/components/home/TestimonialsSection.astro";
55
import BaseLayout from "@/layouts/Base";
66
import Landing from "@/pages/landing.astro";
@@ -12,7 +12,7 @@ const meta = {
1212
---
1313

1414
<BaseLayout meta={meta} sidebar={false}>
15-
<MobileSplash stay={true} />
15+
<!--<MobileSplash stay={true} />-->
1616
<!--<HeroSection appName="abcdkbd" />-->
1717
<!--<ExploreLearnSection />-->
1818
<!-- <TestimonialsSection /> -->

0 commit comments

Comments
 (0)