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 | |
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 'src/web/_controller')
-rw-r--r-- | src/web/_controller/_meta.php | 34 | ||||
-rw-r--r-- | src/web/_controller/apps/auth.php | 2 |
2 files changed, 35 insertions, 1 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); + } + +} + +?> diff --git a/src/web/_controller/apps/auth.php b/src/web/_controller/apps/auth.php index 6b30cc9..1df74da 100644 --- a/src/web/_controller/apps/auth.php +++ b/src/web/_controller/apps/auth.php @@ -27,7 +27,7 @@ class Auth_controller extends Controller { parent::index(); $data = $this->auth_model->get_data(); - $this->view('header_empty', $data); + $this->view('head', $data); $this->view('apps/auth/login', $data); $this->view('footer', $data); } |