Skip to content

Commit b73eb33

Browse files
authored
Merge pull request #88 from MikaStiebitz/claude/shop-difficulty-google-logo-fixes-0jv4ca
Fix invisible Shop/Difficulty buttons, drop hero pill, rework site icons
2 parents 00ea184 + 1ee9ce6 commit b73eb33

16 files changed

Lines changed: 121 additions & 64 deletions

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
<div align="center">
1010
<a href="https://gitmastery.me">
11-
<img src="./public/gitBranch.svg" alt="GitMastery Logo" width="140" height="140" />
11+
<img src="./public/logo.svg" alt="GitMastery Logo" width="140" height="140" />
1212
</a>
1313

1414
<h3 align="center">An interactive Git learning platform that makes mastering Git fun</h3>

public/apple-touch-icon.png

2.88 KB
Loading

public/favicon.ico

-320 Bytes
Binary file not shown.

public/gitBranch-favicon.svg

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

public/gitIcon.ico

-66.1 KB
Binary file not shown.

public/icon-192.png

3.15 KB
Loading

public/icon-512.png

10.7 KB
Loading

public/icon-maskable-512.png

6.45 KB
Loading

public/logo.svg

Lines changed: 9 additions & 0 deletions
Loading

src/app/layout.tsx

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ export const metadata: Metadata = {
4141
images: [
4242
{
4343
url: "/home-screen.png",
44-
width: 1200,
45-
height: 630,
44+
width: 1849,
45+
height: 960,
4646
alt: "GitMastery - Learn Git Through Play",
4747
},
4848
],
@@ -55,10 +55,16 @@ export const metadata: Metadata = {
5555
description: "Learn Git commands and concepts through fun, interactive challenges",
5656
images: ["/home-screen.png"],
5757
},
58+
// Google renders favicons on a white search-results background, so every icon
59+
// below is an opaque tile rather than a bare transparent glyph. Only one SVG is
60+
// declared: two competing `image/svg+xml` links made the picked icon ambiguous.
5861
icons: [
59-
{ rel: "icon", url: "/gitBranch-favicon.svg", type: "image/svg+xml" },
60-
{ rel: "icon", url: "/gitBranch.svg", type: "image/svg+xml", sizes: "any" },
61-
{ rel: "apple-touch-icon", url: "/gitBranch-favicon.svg" },
62+
{ rel: "icon", url: "/favicon.ico", sizes: "16x16 32x32 48x48", type: "image/x-icon" },
63+
{ rel: "icon", url: "/logo.svg", type: "image/svg+xml", sizes: "any" },
64+
{ rel: "icon", url: "/icon-192.png", type: "image/png", sizes: "192x192" },
65+
{ rel: "icon", url: "/icon-512.png", type: "image/png", sizes: "512x512" },
66+
// iOS ignores SVG here, so this has to stay a raster asset.
67+
{ rel: "apple-touch-icon", url: "/apple-touch-icon.png", sizes: "180x180" },
6268
],
6369
};
6470

@@ -87,13 +93,21 @@ export default function RootLayout({ children }: Readonly<{ children: React.Reac
8793
name: "GitMastery - Learn Git Through Play",
8894
description: "An interactive Git learning platform with hands-on practice",
8995
url: getPageUrl(),
96+
image: getPageUrl("/icon-512.png"),
9097
applicationCategory: "EducationalApplication",
9198
operatingSystem: "Web",
9299
inLanguage: "en",
93100
publisher: {
94101
"@type": "Organization",
95102
name: "GitMastery",
96103
url: getPageUrl(),
104+
// Required for Google to associate a logo with the site.
105+
logo: {
106+
"@type": "ImageObject",
107+
url: getPageUrl("/icon-512.png"),
108+
width: 512,
109+
height: 512,
110+
},
97111
},
98112
offers: {
99113
"@type": "Offer",

0 commit comments

Comments
 (0)