From 6d96441e6076ae8c9f301347bedf4bfb9dce59c5 Mon Sep 17 00:00:00 2001 From: LeonardoBizzoni Date: Mon, 18 Apr 2022 20:19:17 +0200 Subject: [PATCH] Improved live vtuber page --- scripts/newIdol.php | 57 ++++++++++++++++++++++++++++++++++++++ www/pub/css/index.css | 29 +++++++++++++++++++ www/views/layouts/live.php | 8 ++---- www/views/live.php | 17 ++++++------ 4 files changed, 97 insertions(+), 14 deletions(-) create mode 100644 scripts/newIdol.php create mode 100644 www/pub/css/index.css diff --git a/scripts/newIdol.php b/scripts/newIdol.php new file mode 100644 index 0000000..e9a6556 --- /dev/null +++ b/scripts/newIdol.php @@ -0,0 +1,57 @@ + + + + + + +" . $idol . " + + +
+
+ + +
+ +
+ +
+
+ + + +"); + fclose($idolFile); + + header("Location:/ProgettoAnime/vtuber.php"); +} else if (str_contains($idolPage, "youtube.com")) { + echo "Prima o poi"; +} else { + echo "wtf"; +} diff --git a/www/pub/css/index.css b/www/pub/css/index.css new file mode 100644 index 0000000..ec4426a --- /dev/null +++ b/www/pub/css/index.css @@ -0,0 +1,29 @@ +body { + height: 100%; + box-sizing: border-box; + margin: 0; + padding: 0; + background-color: #212529; + color: white; +} + +iframe { + width: 100%; + height: 100%; +} + +#parent { + height:100%; + width:100%; + display: flex; + flex-grow: 1; + flex-direction: column; +} + +#child { + flex-grow: 1; +} + +.idolLogo { + width: 100px; +} diff --git a/www/views/layouts/live.php b/www/views/layouts/live.php index e3e8a30..402b17e 100644 --- a/www/views/layouts/live.php +++ b/www/views/layouts/live.php @@ -1,13 +1,9 @@ - + - + WeebSite - Live! diff --git a/www/views/live.php b/www/views/live.php index 79b0b81..54bb457 100644 --- a/www/views/live.php +++ b/www/views/live.php @@ -16,18 +16,19 @@ if (!isset($_GET["id"])) { foreach ($params[0] as $vtuber) { if ($_GET["id"] == $vtuber["id"]) { echo " -
+
- -
+ +
- + +
"; } -- 2.52.0