forked from microsoft/pxt-arcade
-
Notifications
You must be signed in to change notification settings - Fork 0
/
nfl.html
187 lines (151 loc) · 5.59 KB
/
nfl.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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
<!DOCTYPE html>
<html lang="en-US" xmlns="http://www.w3.org/1999/xhtml" xmlns:og="http://ogp.me/ns#" xmlns:fb="http://www.facebook.com/2008/fbml">
<head>
<meta charset="UTF-8">
<title>Microsoft MakeCode Arcade and NFL</title>
<meta name="Description" content="Football in Microsoft MakeCode Arcade" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
<!-- @include scripthead.html -->
<style>
@media only screen and (max-width: 813px) {
#main {
margin: 0 !important;
padding: 1em !important;
}
ol.ui.list {
margin: 0 0 !important;
}
}
h1, span.subheading {
text-align: center;
}
#root {
background: #003399;
display: block !important;
}
body, h1, .ui.button {
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif !important;
}
#main {
display: flex;
flex-direction: column;
justify-content: space-between;
align-items: center;
text-align: left;
background: #FFFFFF;
max-width: 800px;
margin: 2em auto;
padding: 1.5em 3em;
box-shadow: 15px 15px 20px 0 hsla(0, 0%, 0%, 0.3);
}
#simulator {
position: relative;
height: 0;
padding-bottom: 117.6%;
overflow: hidden;
margin: 1.5em auto;
}
#simulator iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
.ui.button {
width: 14em;
padding: 1.5em;
margin: 2em auto;
background-color: #001A80;
color: #FFFFFF;
display: block;
}
.ui.button:focus, .ui.button:hover {
background-color: #003399;
color: #FFFFFF;
}
ol li::before {
color: #FFFFFF !important;
background-color: #57BB31 !important;
font-size: 2em;
font-weight: 600;
width: 2.5rem;
height: 2.5rem;
margin-left: -3rem !important;
margin-top: -.5rem !important;
padding-right: 0.7rem;
padding-top: .6rem;
border-radius: 50%;
}
ol.ui.list {
padding: 0 2em;
margin: 1em 1.25em;
align-self: stretch;
}
span.subheading {
line-height: 1.28571429;
margin-top: -.5em;
font-size: 1.75em;
font-weight: 700;
padding-bottom: 1em;
}
.logotext {
max-width: 30%;
}
/** footer styling **/
footer {
background-color: #003399 !important;
}
footer.ui * {
color: white !important;
opacity: 0.9;
}
.ui.divider:not(.vertical):not(.horizontal) {
border-top: 1px solid hsla(0, 0%, 100%, 0.3);
border-bottom: 1px solid hsla(0, 0%, 55%, 0.1);
}
</style>
<script>
function registerTickEvents() {
function tickEvent(id, data, measures) {
window.appInsights.trackEvent(id, data, measures);
}
document.querySelector("#openmod").addEventListener("click", function() {
tickEvent("nfl.mod");
});
document.querySelector("#opentutorial").addEventListener("click", function() {
tickEvent("nfl.tutorial");
});
document.querySelector("#openhome").addEventListener("click", function() {
tickEvent("nfl.home");
});
};
</script>
</head>
<body id="root" class="root" onload="registerTickEvents()">
<div id="main" role="presentation">
<img class="logotext" alt="Surface official laptop of NFL logo" src="static/surface-nfl.png" />
<h1>Microsoft MakeCode Arcade</h1>
<span role="presentation" class="subheading">Surface and the NFL</span>
<p>During football season this year, Microsoft MakeCode is featuring Arcade football games that kids can play, mod, or create from scratch!</p>
<ol class="ui ordered list">
<li class="bottom aligned content">First, click on the simulator below and play the game:</li>
<div id="simulator" role="application">
<iframe
src="https://microsoft.github.io/pxt-kickoff/?embed=1&nofooter=1"
allowfullscreen="allowfullscreen"
sandbox="allow-popups allow-forms allow-scripts allow-same-origin"
frameborder="0"
></iframe>
</div>
<li class="bottom aligned content">Now that you've played the game, try your hand at 'modding' the game:</li>
<a class="ui button" id="openmod" target="_blank" href="/#tutorial:/tutorials/football">Mod this game!</a>
<li class="bottom aligned content">Finally, go through this tutorial and build "Catch the Football" from scratch:</li>
<a class="ui button" id="opentutorial" target="_blank" href="/#tutorial:/tutorials/catch-the-football">Create your own game</a>
</ol>
<p>Want to make more games? You can find more examples on <a target="_blank" id="openhome" href="/">Microsoft MakeCode Arcade!</a></p>
</div>
<!-- @include footer.html -->
<!-- @include tracking.html -->
</body>
</html>