diff options
author | Freya Murphy <freya@freyacat.org> | 2024-12-20 04:15:58 -0500 |
---|---|---|
committer | Freya Murphy <freya@freyacat.org> | 2024-12-20 04:17:05 -0500 |
commit | 4334596d4bebc9a76f5ca8400813847eef5b3bb7 (patch) | |
tree | 4bd2229fd48715bcf4ae96bc3d070b7f3c29aa58 /src/web/_controller/_meta.php | |
parent | add lang column to user (diff) | |
download | xssbook2-4334596d4bebc9a76f5ca8400813847eef5b3bb7.tar.gz xssbook2-4334596d4bebc9a76f5ca8400813847eef5b3bb7.tar.bz2 xssbook2-4334596d4bebc9a76f5ca8400813847eef5b3bb7.zip |
rework styles with scss
Diffstat (limited to '')
-rw-r--r-- | src/web/_controller/_meta.php | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/src/web/_controller/_meta.php b/src/web/_controller/_meta.php new file mode 100644 index 0000000..bec3c65 --- /dev/null +++ b/src/web/_controller/_meta.php @@ -0,0 +1,34 @@ +<?php /* Copyright (c) 2024 Freya Murphy */ +class _meta_controller extends Controller { + + public function manifest(): void { + + $json = array( + 'short_name' => 'xssbook.com', + 'name' => 'xssbook.com', + 'icons' => [ + array( + 'src' => 'https://xssbook.com/public/icons/logo512.png', + 'type' => 'image/png', + 'sizes' => '512x512', + 'purpose' => 'any maskable' + ) + ], + 'id' => 'https://xssbook.com/home', + 'start_url' => 'https://xssbook.com/home', + 'background_color' => '#181818', + 'display' => 'standalone', + 'scope' => '/', + 'theme_color' => '#181818', + 'shortcuts' => [], + 'description' => 'Post posts postfully on XSSBook', + 'screenshots' => [] + ); + + header('Content-type: application/json'); + echo json_encode($json); + } + +} + +?> |