Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ios pwa splash screens #89

Merged
merged 6 commits into from
Aug 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
"@fullcalendar/timegrid": "^6.1.15",
"@types/chart.js": "^2.9.41",
"chart.js": "^4.4.4",
"ios-pwa-splash": "^1.0.0",
"svelte-portal": "^2.2.1",
"vanilla-cookieconsent": "^3.0.1"
}
Expand Down
1 change: 1 addition & 0 deletions src/app.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ declare namespace App {

declare module '@event-calendar/core';
declare module '@event-calendar/time-grid';
declare module 'ios-pwa-splash';
8 changes: 7 additions & 1 deletion src/routes/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,15 @@

const drawerStore = getDrawerStore();
import { load_cc } from '$lib/cc';
import { browser } from '$app/environment';
load_cc();

import { browser } from '$app/environment';
import iosPWASplash from 'ios-pwa-splash';

if (browser) {
iosPWASplash('/splash-icon.png', '#e0e0e0');
}

const popupRechtliches: PopupSettings = {
// Represents the type of event that opens/closed the popup
event: 'click',
Expand Down
9 changes: 5 additions & 4 deletions static/site.webmanifest
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "",
"short_name": "",
"name": "CampusUnbloat",
"short_name": "CampusUnbloat",
"start_url": "/dashboard",
"icons": [
{
"src": "/android-chrome-192x192.png",
Expand All @@ -13,7 +14,7 @@
"type": "image/png"
}
],
"theme_color": "#ffffff",
"background_color": "#ffffff",
"theme_color": "#161616",
"background_color": "#161616",
"display": "standalone"
}
Binary file added static/splash-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading