From: Christian Weiske Date: Mon, 11 May 2020 21:57:43 +0000 (+0200) Subject: HTML frontend: background images X-Git-Tag: v2.0.0~8 X-Git-Url: https://git.cweiske.de/stouyapi.git/commitdiff_plain/aacb31214f4dd173618442031654ef0ac96cf50b?ds=sidebyside;hp=d557e7dc63f31c671bfcbf8f5c6c78ebc101bce8 HTML frontend: background images --- diff --git a/data/templates/discover.tpl.php b/data/templates/discover.tpl.php index 3376697..207e900 100644 --- a/data/templates/discover.tpl.php +++ b/data/templates/discover.tpl.php @@ -1,6 +1,7 @@ + OUYA: <?= htmlspecialchars($title); ?> diff --git a/data/templates/game.tpl.php b/data/templates/game.tpl.php index 6cfc2a1..d9e8113 100644 --- a/data/templates/game.tpl.php +++ b/data/templates/game.tpl.php @@ -1,6 +1,7 @@ + <?= htmlspecialchars($json->title); ?> - OUYA game diff --git a/www/bg.jpg b/www/bg.jpg new file mode 100644 index 0000000..be8f858 Binary files /dev/null and b/www/bg.jpg differ diff --git a/www/bg_details.jpg b/www/bg_details.jpg new file mode 100644 index 0000000..ae20fa8 Binary files /dev/null and b/www/bg_details.jpg differ diff --git a/www/ouya-discover.css b/www/ouya-discover.css index 3624e40..26fd083 100644 --- a/www/ouya-discover.css +++ b/www/ouya-discover.css @@ -1,5 +1,8 @@ body { background-color: #333; + background-image: url("bg.jpg"); + background-size: 100vw auto; + background-attachment: fixed; color: #CCC; font-family: sans; margin: 0; diff --git a/www/ouya-game.css b/www/ouya-game.css index eb2738d..718c3e1 100644 --- a/www/ouya-game.css +++ b/www/ouya-game.css @@ -1,5 +1,7 @@ body { background-color: #333; + background-image: url("bg_details.jpg"); + background-size: cover; color: #CCC; font-family: sans; margin: 0;