Skip to content

Commit 2013132

Browse files
committed
fix manifest issue
1 parent a58bb2a commit 2013132

File tree

6 files changed

+14
-18
lines changed

6 files changed

+14
-18
lines changed

public/manifest.webmanifest

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"background_color": "#1d1f21",
33
"category": "education",
4-
"description": "A learning pad for ABCD keyboard layout enthusiasts.",
4+
"description": "A learning pad for ABCD keyboard.",
55
"display": "standalone",
66
"icons": [
77
{
@@ -30,12 +30,12 @@
3030
"screenshots": [
3131
{
3232
"label": "abcdkbd",
33-
"sizes": "196x196",
34-
"src": "/assets/icons/192x192.png",
33+
"sizes": "192x192",
34+
"src": "/assets/images/192x192.png",
3535
"type": "image/png"
3636
}
3737
],
3838
"short_name": "ABCDKBD",
3939
"start_url": "/",
4040
"theme_color": "#2bbc8a"
41-
}
41+
}

src/assets/styles/header.css

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@
2828
font-size: 1.5rem;
2929
font-weight: 600;
3030
color: var(--primary);
31+
32+
& em {
33+
color: #6d8c3d;
34+
}
3135
}
3236
}
3337

@@ -98,4 +102,4 @@
98102
.header-spacer {
99103
min-height: 5rem;
100104
border-bottom: 1px dotted grey;
101-
}
105+
}

src/layouts/Base.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ const {
5858
// or `process.env.NODE_ENV !== 'development'`
5959
window.addEventListener("load", () => {
6060
navigator.serviceWorker
61-
.register("/service-worker.js")
61+
.register("/service-worker.js", { scope: "/" })
6262
.then((registration) => {
6363
console.log("Service Worker successfully registered:", registration.scope);
6464
// Optional: Check for updates

src/layouts/BaseHead.astro

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const socialImageURL = new URL(ogImage ? ogImage : "/assets/images/ABCD-pink.png
2424
<link rel="icon" href="/assets/favicon.ico" type="image/x-icon" />
2525
<link rel="shortcut icon" href="/assets/favicon.ico" />
2626
<link rel="apple-touch-icon" href="/assets/apple-touch-icon.png" sizes="180x180" />
27-
<link rel="manifest" href="manifest.webmanifest" />
27+
<link rel="manifest" href="/manifest.webmanifest" />
2828
<link rel="canonical" href={canonicalURL} />
2929

3030
{/* Primary Meta Tags */}
@@ -52,14 +52,6 @@ const socialImageURL = new URL(ogImage ? ogImage : "/assets/images/ABCD-pink.png
5252
<meta property="og:image:alt" content={description} />
5353
<meta property="og:image:width" content="1200" />
5454
<meta property="og:image:height" content="630" />
55-
{
56-
articleDate && (
57-
<>
58-
<meta property="article:author" content={siteConfig.author} />
59-
<meta property="article:published_time" content={articleDate} />
60-
</>
61-
)
62-
}
6355

6456
{/* Twitter */}
6557
<meta name="twitter:card" content="summary_large_image" />

src/layouts/common/Header.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ import logoImage from "/public/assets/images/512x512.png";
99
<div class="header__brand">
1010
<a href="/" class="logo__link">
1111
<Picture src={logoImage} formats={["png", "webp"]} alt="abcdkbd logo" class="logo" />
12-
<span title={APP_NAME}>{APP_NAME}</span>
12+
<span title={APP_NAME}>abcd<em>kbd</em></span>
1313
</a>
1414
</div>
15-
<div class="title text__balance">Learn with fun</div>
15+
<div class="title text__balance">Happy Learning Spot</div>
1616

1717
<!--<div class="caption">
1818
<a href="/" class:list={{ "is-active": Astro.url.pathname === "/home" || Astro.url.pathname === "/" }}>Home</a>

src/pages/index.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import MobileSplash from "@/components/MobileSplash.astro";
99
import BaseLayout from "@/layouts/Base";
1010
1111
const meta = {
12-
title: "Home",
12+
title: "ABCDKBD - A learning corner for little learners.",
1313
description: "A fun and interactive learning platform for kids."
1414
};
1515
---

0 commit comments

Comments
 (0)