Skip to content

Commit

Permalink
add pwa screenshots and maskable icon
Browse files Browse the repository at this point in the history
  • Loading branch information
rgerum committed Nov 13, 2023
1 parent c8b6c3c commit 0d615c2
Show file tree
Hide file tree
Showing 7 changed files with 31 additions and 2 deletions.
Binary file added public/icon192.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/icon512_maskable.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
32 changes: 30 additions & 2 deletions public/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,44 @@
"description": "Learn languages with stories",
"start_url": "/",
"scope": "/",
"id": "/",
"display": "standalone",
"background_color": "#ffffff",
"theme_color": "#1cb0f6",
"orientation": "portrait",
"icons": [
{
"src": "icon512.png",
"src": "icon512_maskable.png",
"sizes": "512x512",
"type": "image/png",
"purpose": "any maskable"
"purpose": "maskable"
},
{
"src": "icon512.png",
"sizes": "512x512",
"type": "image/png"
},
{
"src": "icon192.png",
"sizes": "192x192",
"type": "image/png"
}
],
"screenshots" : [
{
"src": "screenshot_1.jpg",
"sizes": "1080x1920",
"type": "image/jpeg"
},
{
"src": "screenshot_2.jpg",
"sizes": "1080x1920",
"type": "image/jpeg"
},
{
"src": "screenshot_3.jpg",
"sizes": "1080x1920",
"type": "image/jpeg"
}
]
}
Binary file added public/screenshot_1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/screenshot_2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/screenshot_3.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/app/(stories)/(main)/language_button.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ export default async function LanguageButton({ course_id, loading }) {
}

export async function LanguageButtonSuspense({ course_id }) {
return <LanguageButton course_id={course_id} />;
return (
<Suspense fallback={<LanguageButton loading={true} />}>
<LanguageButton course_id={course_id} />
Expand Down

0 comments on commit 0d615c2

Please sign in to comment.