From: Christian Weiske Date: Tue, 12 May 2020 17:12:42 +0000 (+0200) Subject: HTML frontend: Link developer URL, add favicon X-Git-Tag: v2.0.0~5 X-Git-Url: https://git.cweiske.de/stouyapi.git/commitdiff_plain/5060373c18331dbd58af36c81b930c1cdaf66961 HTML frontend: Link developer URL, add favicon --- diff --git a/bin/build-html.php b/bin/build-html.php index 2037cfc..b4561e6 100755 --- a/bin/build-html.php +++ b/bin/build-html.php @@ -100,7 +100,11 @@ function renderDiscoverFile($discoverFile) function renderGameFile($gameDataFile) { $json = json_decode(file_get_contents($gameDataFile)); + $appsDir = dirname($gameDataFile, 2) . '/apps/'; + $appsFile = $appsDir . $json->version->uuid . '.json'; + $appsJson = json_decode(file_get_contents($appsFile)); + $downloadJson = json_decode( file_get_contents( $appsDir . $json->version->uuid . '-download.json' diff --git a/data/templates/discover.tpl.php b/data/templates/discover.tpl.php index a0e239c..7f08c44 100644 --- a/data/templates/discover.tpl.php +++ b/data/templates/discover.tpl.php @@ -5,6 +5,7 @@ OUYA: <?= htmlspecialchars($title); ?> +
diff --git a/data/templates/game.tpl.php b/data/templates/game.tpl.php index 0064ba9..36a1d09 100644 --- a/data/templates/game.tpl.php +++ b/data/templates/game.tpl.php @@ -4,7 +4,9 @@ <?= htmlspecialchars($json->title); ?> - OUYA game + +
@@ -15,13 +17,17 @@
Rating
- rating->average ?> + rating->average ?> (rating->count ?>)
Developer
- developer->name) ?> + app->website): ?> + developer->name) ?> + + developer->name) ?> +
Suggested age
diff --git a/www/favicon.ico b/www/favicon.ico new file mode 100644 index 0000000..2cf7f6f Binary files /dev/null and b/www/favicon.ico differ diff --git a/www/ouya-game.css b/www/ouya-game.css index 611df21..b9886e7 100644 --- a/www/ouya-game.css +++ b/www/ouya-game.css @@ -85,6 +85,9 @@ nav { content: "|"; font-weight: normal; } +.text a { + color: #CCC; +} .description { overflow-y: auto; diff --git a/www/ouya-square.png b/www/ouya-square.png new file mode 100644 index 0000000..01fcf5a Binary files /dev/null and b/www/ouya-square.png differ diff --git a/www/ouya-square.svg b/www/ouya-square.svg new file mode 100644 index 0000000..4196f75 --- /dev/null +++ b/www/ouya-square.svg @@ -0,0 +1,113 @@ + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + +