mirror of
https://github.com/yuzu-emu/shared-bulma-theme.git
synced 2024-12-22 23:25:31 +00:00
Added shared website data/ folder. Updated blog entries to have sections. Added initial compatdb. Added static assets for compatdb.
This commit is contained in:
parent
f0075c6636
commit
c0b4462352
0
data/.gitkeep
Normal file
0
data/.gitkeep
Normal file
13
data/authors.json
Normal file
13
data/authors.json
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
{
|
||||||
|
"flamesage": { "key": "flamesage", "name": "Flame Sage", "avatar": "https://community.citra-emu.org/user_avatar/community.citra-emu.org/flamesage/120/6_1.png" },
|
||||||
|
"bunnei": { "key": "bunnei", "name": "bunnei", "avatar": "https://community.citra-emu.org/user_avatar/community.citra-emu.org/bunnei/120/21_1.png" },
|
||||||
|
"thekoopakingdom": { "key": "thekoopakingdom", "name": "The Koopa Kingdom", "avatar": "https://community.citra-emu.org/user_avatar/community.citra-emu.org/thekoopakingdom/120/8_1.png" },
|
||||||
|
"leo121": { "key": "leo121", "name": "leo121", "avatar": "https://community.citra-emu.org/user_avatar/community.citra-emu.org/leo121/120/10_1.png" },
|
||||||
|
"flamboyant_ham": { "key": "flamboyant_ham", "name": "Flamboyant_Ham", "avatar": "https://community.citra-emu.org/user_avatar/community.citra-emu.org/flamboyant_ham/120/9_1.png" },
|
||||||
|
"tfarley": { "key": "tfarley", "name": "tfarley", "avatar": "https://community.citra-emu.org/user_avatar/community.citra-emu.org/citrabot/120/28_1.png" },
|
||||||
|
"merrymage": { "key": "merrymage", "name": "Merry Mage", "avatar": "https://community.citra-emu.org/user_avatar/community.citra-emu.org/citrabot/120/28_1.png" },
|
||||||
|
"jroweboy": { "key": "jroweboy", "name": "jroweboy", "avatar": "https://community.citra-emu.org/user_avatar/community.citra-emu.org/jroweboy/120/30_1.png" },
|
||||||
|
"jmc47": { "key": "jmc47", "name": "JMC47", "avatar": "https://community.citra-emu.org/user_avatar/community.citra-emu.org/jmc47/45/1487_1.png" },
|
||||||
|
"anodium": { "key": "anodium", "name": "anodium", "avatar": "https://community.citra-emu.org/user_avatar/community.citra-emu.org/anodium/120/485_1.png"},
|
||||||
|
"saphiresurf": {"key": "saphiresurf", "name": "saphiresurf", "avatar": "https://community.citra-emu.org/user_avatar/community.citra-emu.org/saphiresurf/120/695_1.png"}
|
||||||
|
}
|
10
data/compatibility.json
Normal file
10
data/compatibility.json
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
{
|
||||||
|
"0": { "key": "0", "name": "Perfect", "color": "#5c93ed", "description": "Game functions flawless with no audio or graphical glitches, all tested functionality works as intended without any workarounds needed." },
|
||||||
|
"1": { "key": "1", "name": "Great", "color": "#47d35c", "description": "Game functions with minor graphical or audio glitches and is playable from start to finish. May require some workarounds." },
|
||||||
|
"2": { "key": "2", "name": "Okay", "color": "#94b242", "description": "Game functions with major graphical or audio glitches, but game is playable from start to finish with workarounds." },
|
||||||
|
"3": { "key": "3", "name": "Bad", "color": "#f2d624", "description": "Game functions, but with major graphical or audio glitches. Unable to progress in specific areas due to glitches even with workarounds." },
|
||||||
|
"4": { "key": "4", "name": "Intro/Menu", "color": "red", "description": "Game is completely unplayable due to major graphical or audio glitches. Unable to progress past the Start Screen." },
|
||||||
|
"5": { "key": "5", "name": "Won't Boot", "color": "#828282", "description": "The game crashes when attempting to startup." },
|
||||||
|
"99": { "key": "99", "name": "Not Tested", "color": "black", "description": "The game has not yet been tested." }
|
||||||
|
}
|
||||||
|
|
7
data/gameTypes.json
Normal file
7
data/gameTypes.json
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
{
|
||||||
|
"switch": { "key": "switch", "name": "Switch Game" },
|
||||||
|
"3ds": { "key": "3ds", "name": "3DS Game" },
|
||||||
|
"dsiware": { "key": "dsiware", "name": "DSI Ware" },
|
||||||
|
"eshop": { "key": "eshop", "name": "eShop" },
|
||||||
|
"vc": { "key": "vc", "name": "Virtual Console" }
|
||||||
|
}
|
8
data/vcSystems.json
Normal file
8
data/vcSystems.json
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
{
|
||||||
|
"nes": { "key": "nes", "name": "Nintendo Entertainment System" },
|
||||||
|
"snes": { "key": "snes", "name": "Super Nintendo Entertainment System" },
|
||||||
|
"gb": { "key": "gb", "name": "Game Boy" },
|
||||||
|
"gbc": { "key": "gbc", "name": "Game Boy Color" },
|
||||||
|
"gba": { "key": "gba", "name": "Game Boy Advance" },
|
||||||
|
"gg": { "key": "gg", "name": "Game Gear" }
|
||||||
|
}
|
|
@ -58,7 +58,7 @@
|
||||||
{{ block "header" . }}{{ end }}
|
{{ block "header" . }}{{ end }}
|
||||||
|
|
||||||
{{ $full_width := .Params.FullWidth | default false }}
|
{{ $full_width := .Params.FullWidth | default false }}
|
||||||
{{- if eq .IsPage false }}
|
{{- if .IsHome }}
|
||||||
<div class="container">
|
<div class="container">
|
||||||
{{ block "main" . }}{{ end }}
|
{{ block "main" . }}{{ end }}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -24,9 +24,9 @@
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ define "main" }}
|
{{ define "main" }}
|
||||||
<div class="content pt-sm">
|
<section class="section content pt-sm">
|
||||||
{{ .Content }}
|
{{ .Content }}
|
||||||
</div>
|
</section>
|
||||||
|
|
||||||
{{ if .Params.forum }}
|
{{ if .Params.forum }}
|
||||||
<div class="has-text-centered">
|
<div class="has-text-centered">
|
||||||
|
|
96
layouts/game/list.html
Normal file
96
layouts/game/list.html
Normal file
|
@ -0,0 +1,96 @@
|
||||||
|
{{ define "header" }}
|
||||||
|
<div class="container">
|
||||||
|
<div class="section pb-xs">
|
||||||
|
<h1 class="title">Game Compatibility List</h1>
|
||||||
|
<p class="content">
|
||||||
|
The Citra Emulator compatibility list contains all the games we tested, sorted by how well they work on the emulator.
|
||||||
|
</p>
|
||||||
|
<table class="table is-fullwidth">
|
||||||
|
<tbody>
|
||||||
|
{{ range .Site.Data.compatibility }}
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<div class="is-square" style="background-color: {{ .color }}"></div> {{ .name }}
|
||||||
|
</td>
|
||||||
|
<td>{{ .description }}</td>
|
||||||
|
</tr>
|
||||||
|
{{ end }}
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
<div id="highchart-container" style="height: 100px; margin: 0 auto"></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
{{ define "main" }}
|
||||||
|
<div class="section pt-xs">
|
||||||
|
<table class="table is-fullwidth">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th> </th>
|
||||||
|
<th>Game Title</th>
|
||||||
|
<th>Compatibility</th>
|
||||||
|
<th>Date Tested</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
{{ range .Data.Pages.GroupByParam "section_id" }}
|
||||||
|
{{ range .Pages }}
|
||||||
|
{{ $rating := index .Site.Data.compatibility .Params.compatibility }}
|
||||||
|
{{ $type := index .Site.Data.gameTypes (.Params.game_type | default "3ds") }}
|
||||||
|
<tr data-key="{{ .Params.section_id }}">
|
||||||
|
<td class="is-hidden listing-metadata">
|
||||||
|
<span>{{ .Params.title }} {{ $type.name }} {{ $rating.name }} {{ dateFormat "January 2, 2006" .Params.testcase_date }}</span>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<img src="{{ .Site.BaseURL }}/images/game/icons/{{ .File.BaseFileName }}.png" />
|
||||||
|
</td>
|
||||||
|
<td data-title="{{ strings.TrimPrefix "The " .Params.title }}">
|
||||||
|
<a href="{{ .Permalink }}">{{ .Params.title }}</a>
|
||||||
|
</td>
|
||||||
|
<td data-compatibility="{{ $rating.key }}">
|
||||||
|
<div class="is-square" style="background-color: {{ $rating.color }}"></div> <span>{{ $rating.name }}</span>
|
||||||
|
</td>
|
||||||
|
<td data-timestamp="{{ .Params.testcase_date }}">
|
||||||
|
<span>{{ dateFormat "January 2, 2006" .Params.testcase_date }}</span>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
{{ end }}
|
||||||
|
{{ end }}
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
{{ define "scripts" }}
|
||||||
|
<script type="text/javascript">
|
||||||
|
document.addEventListener('DOMContentLoaded', function() {
|
||||||
|
Highcharts.chart('highchart-container', {
|
||||||
|
chart: { type: 'bar', backgroundColor: null },
|
||||||
|
colors: [{{ range .Site.Data.compatibility }}"{{ .color }}", {{- end }}],
|
||||||
|
credits: { enabled: false },
|
||||||
|
exporting: { enabled: false },
|
||||||
|
title: { text: '' },
|
||||||
|
xAxis: { categories: [''] },
|
||||||
|
yAxis: { min: 0, max: {{ len .Data.Pages }}, title: { text: '' } },
|
||||||
|
legend: { enabled: false },
|
||||||
|
plotOptions: { series: {
|
||||||
|
stacking: 'normal',
|
||||||
|
cursor: 'pointer',
|
||||||
|
events: {
|
||||||
|
click: null
|
||||||
|
}
|
||||||
|
} },
|
||||||
|
series: [
|
||||||
|
{{- $dataPages := .Data.Pages }}
|
||||||
|
{{- range .Site.Data.compatibility }}
|
||||||
|
{{- $dataPagesFiltered := where $dataPages ".Params.compatibility" .key }}
|
||||||
|
{ "name": "{{ .name }}", "data": [ {{ len $dataPagesFiltered }} ] },
|
||||||
|
{{- end }}
|
||||||
|
]
|
||||||
|
});
|
||||||
|
}, false);
|
||||||
|
</script>
|
||||||
|
{{ end }}
|
10
layouts/game/meta.html
Normal file
10
layouts/game/meta.html
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
{{- $rating := index .Site.Data.compatibility .Params.compatibility }}
|
||||||
|
<meta property="og:description" content="{{ $rating.name }} - {{ $rating.description }}" />
|
||||||
|
<meta name="description" content="{{ $rating.name }} - {{ $rating.description }}" />
|
||||||
|
|
||||||
|
<meta property="og:type" content="article" />
|
||||||
|
<meta property="og:image" content="{{ .Site.BaseURL }}/images/game/icons/{{ .File.BaseFileName }}.png" />
|
||||||
|
<meta property="og:article:published_time" content="{{ .Date.Format "2006-01-02T15:04:05Z07:00" | safeHTML }}" />
|
||||||
|
{{- range .Params.tags }}
|
||||||
|
<meta property="og:article:tag" content="{{ . }}" />
|
||||||
|
{{- end }}
|
BIN
static/images/game/boxart/default.png
Normal file
BIN
static/images/game/boxart/default.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 637 B |
BIN
static/images/game/types/3ds.png
Normal file
BIN
static/images/game/types/3ds.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2 KiB |
BIN
static/images/game/types/dsiware.png
Normal file
BIN
static/images/game/types/dsiware.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 4 KiB |
BIN
static/images/game/types/eshop.png
Normal file
BIN
static/images/game/types/eshop.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.7 KiB |
BIN
static/images/game/types/vc.png
Normal file
BIN
static/images/game/types/vc.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.7 KiB |
Loading…
Reference in a new issue