-
Notifications
You must be signed in to change notification settings - Fork 1
/
index-template.html
101 lines (82 loc) · 3.69 KB
/
index-template.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>{{ site.title }} - arcade.redhat.com</title>
<link rel="preconnect dns-prefetch" href="https://static.redhat.com">
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-3QW3B8Q3CH"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-3QW3B8Q3CH');
</script>
<script defer src="https://sso.redhat.com/auth/js/keycloak.js"></script>
<script defer src="./build/arcade.js"></script>
<link rel="stylesheet" href="build/styles.css" type="text/css" media="screen">
<noscript>
<link rel="stylesheet" href="https://unpkg.com/@patternfly/pfelement/dist/pfelement--noscript.min.css"
type="text/css" media="screen" charset="utf-8">
</noscript>
</head>
<body unresolved>
<pfe-navigation>
<div slot="skip">
<ul>
<li><a href="#game-list">Skip to content</a></li>
</ul>
</div>
<a slot="logo" href="https://redhat.com" title="Red Hat homepage" rel="noopener">
<img class="redhat-logo"
src="https://static.redhat.com/libs/redhat/brand-assets/latest/corp/logo--on-dark.svg" class="screen"
width="135" height="31.9375" alt="Red Hat logo" aria-hidden="true" style="margin:0;" />
</a>
<pfe-navigation-main role="navigation" aria-label="Main">
</pfe-navigation-main>
</pfe-navigation>
<pfe-band color="darker" style="width: 100%; --pfe-band--BackgroundColor: #000" >
<div>
<h1>{{ site.title }}</h1>
{{ site.description }}
</div>
<img slot="pfe-band--aside" src="./cab.png" width="158" height="340" alt="photo of an arcade cabinet">
<div id="warhw-login" class="warhw inactive">
<div id="warhw-login-prompt" class="warhw inactive">
{{ site.warhw_login }}
</div>
<div id="warhw-logged-in" class="warhw inactive">
{{ site.warhw_logged_in }}
</div>
</div>
</pfe-band>
<h2 class="games-collection">{{ site.collection_name }}</h2>
<section id="game-list" class="game-list">
{{@foreach(games) => key, game}}
<pfe-card color="lightest" id="card-{{ key }}">
<img width="400" height="180" pfe-overflow="top right left" src="{{ game.thumb }}"
alt="thumbnail for game: {{ game.title }}">
<h2>{{ game.title }}</h2>
<div>
{{ game.description }}
</div>
{{@if(game.leaderboard)}}
<div class="warhw eligible inactive">
<div><pfe-icon icon="rh-trophy" size="lg" style="--pfe-icon--color: gold"></pfe-icon> Eligible for prizes!</div>
<div><pfe-icon pfe-size="lg" style="--pfe-icon--Color: white" icon="rh-award-ribbon"></pfe-icon><a target="_blank" href="{{ game.leaderboard_route }}">VIEW HIGH SCORES</a></div>
</div>
{{/if}}
<div slot="pfe-card--footer">
<pfe-cta pfe-priority="primary">
<a rel="noopener" {{@if(game.leaderboard)}}arcade-play-link{{/if}} target="_blank" href="{{ game.play }}">PLAY</a>
</pfe-cta>
<pfe-cta pfe-priority="secondary">
<a rel="noopener" target="_blank" href="{{ game.contribute }}">Contribute</a>
</pfe-cta>
</div>
</pfe-card>
{{/foreach}}
</section>
</body>
</html>