Added PWA & Updated README

This commit is contained in:
WardPearce
2024-03-31 13:06:37 +13:00
parent 17a79acbda
commit 2f2c72fc3a
13 changed files with 4198 additions and 10 deletions
+9 -4
View File
@@ -1,7 +1,13 @@
# Still in development! <div align="center">
<img src="previews/header.png" />
<quote>
Modern material design for Invidious.
</quote>
</div>
# Materialious &nbsp;
Modern material design for Invidious
-------
![Preview of homepage](./previews/home-preview.png) ![Preview of homepage](./previews/home-preview.png)
@@ -21,7 +27,6 @@ Modern material design for Invidious
## Todo ## Todo
- Playlist support. - Playlist support.
- PWA support.
## Previews ## Previews
![Preview of player](./previews/player-preview.png) ![Preview of player](./previews/player-preview.png)
+4163 -4
View File
File diff suppressed because it is too large Load Diff
+3 -2
View File
@@ -29,7 +29,8 @@
"svelte-check": "^3.6.0", "svelte-check": "^3.6.0",
"tslib": "^2.4.1", "tslib": "^2.4.1",
"typescript": "^5.0.0", "typescript": "^5.0.0",
"vite": "^5.0.3" "vite": "^5.0.3",
"vite-plugin-pwa": "^0.19.7"
}, },
"type": "module", "type": "module",
"dependencies": { "dependencies": {
@@ -40,4 +41,4 @@
"svelte-persisted-store": "^0.9.1", "svelte-persisted-store": "^0.9.1",
"vidstack": "^1.11.1" "vidstack": "^1.11.1"
} }
} }
+3
View File
@@ -6,6 +6,9 @@
<link rel="icon" href="%sveltekit.assets%/favicon.png" /> <link rel="icon" href="%sveltekit.assets%/favicon.png" />
<meta name="viewport" content="width=device-width, initial-scale=1" /> <meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" href="%sveltekit.assets%/style.css"> <link rel="stylesheet" href="%sveltekit.assets%/style.css">
<meta name="description" content="Modern material design for Invidious.">
<meta name="keywords" content="invidious,materialious,proxy,youtube,yt,theme,interface,modern">
<title>Materialious</title>
%sveltekit.head% %sveltekit.head%
</head> </head>
Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 41 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 665 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

+20
View File
@@ -1,9 +1,29 @@
import { sveltekit } from '@sveltejs/kit/vite'; import { sveltekit } from '@sveltejs/kit/vite';
import { vite as vidstack } from 'vidstack/plugins'; import { vite as vidstack } from 'vidstack/plugins';
import { defineConfig } from 'vite'; import { defineConfig } from 'vite';
import { VitePWA } from 'vite-plugin-pwa';
export default defineConfig({ export default defineConfig({
plugins: [ plugins: [
VitePWA({
manifest: {
description: "Modern material design for Invidious.",
icons: [
{
src: "/android-chrome-512x512.png",
sizes: "512x512",
type: "image/png",
},
{
src: "/android-icon-192x192.png",
sizes: "192x192",
type: "image/png",
}
],
background_color: "#22005d",
theme_color: "#efb0ff"
}
}),
vidstack(), vidstack(),
sveltekit() sveltekit()
], ],
Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB