forked from google/santa-tracker-web
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheducators-scene.html
More file actions
292 lines (263 loc) · 13.1 KB
/
Copy patheducators-scene.html
File metadata and controls
292 lines (263 loc) · 13.1 KB
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
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
<!--
Copyright 2016 Google Inc. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed
under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
CONDITIONS OF ANY KIND, either express or implied. See the License for the
specific language governing permissions and limitations under the License.
-->
<link rel="import" href="../scene-behavior.html">
<link rel="import" href="educators-scene_module.html">
<script src="../press/press-scene.min.js"></script>
<dom-module id="educators-scene">
<template>
<style include="educators-scene_module"></style>
<div id="content">
<div id="hero">
<div class="header">
<div class="title">
<h1>For</h1>
<h1>Educators</h1>
</div>
<h3>Learning with Santa Tracker</h3>
</div>
<div class="description">
<div class="left">
<div class="square"></div>
</div>
<div class="right">
<p>We know Santa's elves aren't the only ones busy this December. For teachers making lessons plans and checking them twice, we've got you covered. Our free educational games are great for K-12 classroom warm-ups, extension activities, and writing prompts.</p>
</div>
</div>
</div>
<div id="educators-secondary">
<div class="educators-secondary-inner">
<h2>Games for the classroom</h2>
<div class="educators-card-tabs" on-click="_onFilterClick">
<button class$="[[_computeActive(filter, 'education')]]" data-filter="education">View All</button>
<button class$="[[_computeActive(filter, 'geography')]]" data-filter="geography">Geography</button>
<button class$="[[_computeActive(filter, 'computerscience')]]" data-filter="computerscience">Computer Science</button>
<button class$="[[_computeActive(filter, 'language')]]" data-filter="language">Language</button>
<button class$="[[_computeActive(filter, 'socialstudies')]]" data-filter="socialstudies">Social Studies</button>
</div>
<div class="educators-card-container">
<template is="dom-repeat" items="[[cards]]" as="card">
<div class="card" data-locked$="[[card.locked]]" hidden$="[[_computeHidden(filter, card.filter)]]">
<a href$="[[_computeUnlockedUrlFor(card.key, card.locked)]]">
<div class="card-img" style$="[[_computeCardBackgroundStyle(card.key)]]">
<div class="card-lock">
<span class="card-unlock">Unlocks December</span>
<span class="card-unlock-day">[[card.opens]]<span>[[_computeOrd(card.opens)]]</span></span>
</div>
</div>
</a>
<div class="card-info">
<h4>[[card.title]]</h4>
<span>Opens December [[card.opens]] • [[card.type]]</span>
<p>[[card.description]]</p>
</div>
</div>
</template>
</div>
</div>
</div>
<div id="educators-primary" on-click="_trackLessonPlan">
<h2>Lesson plans</h2>
<p class="educators-primary-intro">Light the way for your students with activity ideas, teaching tips, and discussion questions for some of our favorite Santa Tracker games.</p>
<div class="educators-primary-inner">
<div class="card">
<div class="card-img" style="background-image: url(img/lesson-plan-traditions.png)"></div>
<div class="card-info">
<h4>Christmas traditions around the world</h4>
<p>
Students will be able to compare, contrast, and reflect upon Christmas traditions in different countries.
</p>
<div class="card-links">
<span class="card-title">Aligned with Common Core standards</span>
<a data-id="traditions_k-2" href="https://storage.googleapis.com/mapsdevsite/santatracker/educators/ST-Lesson_Plan-Grades_K-2.pdf" class="card-dl" target="_blank">Grades K-2 <span>(PDF file)</span></a>
<a data-id="traditions_3-5" href="https://storage.googleapis.com/mapsdevsite/santatracker/educators/ST-Lesson_Plan-Grades_3-5.pdf" class="card-dl" target="_blank">Grades 3-5 <span>(PDF file)</span></a>
<a data-id="traditions_6-8" href="https://storage.googleapis.com/mapsdevsite/santatracker/educators/ST-Lesson_Plan-Grades_6-8.pdf" class="card-dl" target="_blank">Grades 6-8 <span>(PDF file)</span></a>
<a data-id="traditions_9-10" href="https://storage.googleapis.com/mapsdevsite/santatracker/educators/ST-Lesson_Plan-Grades_9-10.pdf" class="card-dl" target="_blank">Grades 9-10 <span>(PDF file)</span></a>
</div>
</div>
</div>
<div class="card">
<div class="card-img" style="background-image: url(img/lesson-plan-code.png)"></div>
<div class="card-info">
<h4>Practice coding with Santa's elves</h4>
<p>
Students will learn how to move elves and make snowflakes with code, experimenting with sequences and loops.
</p>
<div class="card-links">
<span class="card-title">Aligned with ISTE standards</span>
<a data-id="coding_k-2" href="https://storage.googleapis.com/mapsdevsite/santatracker/educators/ST-Lesson_Plan-Code_Lab-Grades_K-2.pdf" class="card-dl" target="_blank">Grades K-2: Code Lab <span>(PDF file)</span></a>
<a data-id="coding_3-5" href="https://storage.googleapis.com/mapsdevsite/santatracker/educators/ST-Lesson_Plan-Code_Boogie-Grades_3-5.pdf" class="card-dl" target="_blank">Grades 3-5: Code Boogie <span>(PDF file)</span></a>
<a data-id="coding_6-8" href="https://storage.googleapis.com/mapsdevsite/santatracker/educators/ST-Lesson_Plan-Code_Snowflake-Grades_6-8.pdf" class="card-dl" target="_blank">Grades 6-8: Code a Snowflake <span>(PDF file)</span></a>
</div>
</div>
</div>
</div>
</div>
<div id="educators-secondary">
<div class="educators-secondary-inner">
<h2 hidden>Coding resources</h2>
<div class="educators-card-container center">
<div class="card">
<div class="card-img" style="background-image: url(img/coding.png)">
</div>
<div class="card-info">
<h4>Coding resources</h4>
<p>Learn more about Computer Science through these free, online coding resources.</p>
<div class="card-links">
<span class="card-title">Links</span>
<a href="https://www.cs-first.com/content/2016-hour-code-teachers" class="card-link" target="_blank">Google's Official Hour of Code Activity</a>
<a href="https://www.cs-first.com/en/home" class="card-link" target="_blank">CS First</a>
<a href="https://madewithcode.com" class="card-link" target="_blank">Made with Code</a>
<a href="https://scratch.mit.edu/go" class="card-link" target="_blank">Scratch</a>
</div>
</div>
</div>
</div>
</div>
</div>
<div id="educators-nonprofit">
<h2>Educational Non-Profit Organizations</h2>
<p class="educators-nonprofit-intro">We've partnered with <a href="https://google.org">Google.org</a> to showcase educational non-profits that celebrate the season of giving all year long.</p>
<div class="grid">
<div class="tile">
<div class="image" style="background-image: url(img/logo-code.png)"></div>
<h4>Code.org</h4>
<p>Code.org® is a non-profit dedicated to expanding access to computer science, and increasing participation by women and underrepresented students of color. Code.org®'s vision is that every student in every school should have the opportunity to learn computer science.</p>
<a href="https://code.org">Learn More</a>
</div>
<div class="tile">
<div class="image" style="background-image: url(img/logo-donors-choose.png)"></div>
<h4>DonorsChoose.org</h4>
<p>Founded in 2000 by a Bronx history teacher, DonorsChoose.org has raised over US$480m for America's classrooms. Teachers come to DonorsChoose.org to request the materials and experiences they need for their classrooms.</p>
<a href="https://donorschoose.org">Learn More</a>
</div>
<div class="tile">
<div class="image" style="background-image: url(img/logo-storyweaver.png)"></div>
<h4>Pratham Books</h4>
<p>Close to 40% of the global population does not have access to education in a language they speak or understand. StoryWeaver hopes to change that by helping educators, writers and translators create joyful, supplementary reading resources for children.</p>
<a href="https://storyweaver.org.in/prathambooks">Learn More</a>
</div>
<div class="tile">
<div class="image" style="background-image: url(img/logo-khan.png)"></div>
<h4>Khan Academy</h4>
<p>Khan Academy is a nonprofit with a mission to provide a free, world-class education for anyone, anywhere. Khan Academy believes learners of all ages should have unlimited access to free educational content they can master at their own pace.</p>
<a href="https://khanacademy.org">Learn More</a>
</div>
<div class="tile">
<div class="image" style="background-image: url(img/logo-lwb.png)"></div>
<h4>Libraries Without Borders</h4>
<p>Libraries Without Borders (LWB) is a leading international NGO in culture-based development founded in 2007, headquartered in Paris. They have built more than 300 libraries around the world.</p>
<a href="https://librarieswithoutborders.org">Learn More</a>
</div>
<div class="tile">
<div class="image" style="background-image: url(img/logo-scratch.png)"></div>
<h4>Scratch Foundation</h4>
<p>Scratch is the world's largest free coding platform for kids. Millions of kids create and share interactive projects in the Scratch Online Community. It is used around the world to engage young people in thinking creatively, reasoning systematically, and working collaboratively.</p>
<a href="https://www.scratchfoundation.org">Learn More</a>
</div>
</div>
</div>
<div id="educators-footer">
<h3>Need something?</h3>
<p>Elves and Googlers are here to help.</p>
<a href="https://google.com/edu" target="_blank">Google for Education</a>
</div>
</div>
</template>
<script>
// Note! The educators page is a copy of the press page, made in late 2016. It shares various
// resources, including the JS itself (to provide the model). Future engineers may want to merge
// its logic/display code with the press page.
Polymer({
is: 'educators-scene',
behaviors: [window.SantaSceneBehavior],
properties: {
scene: Object,
cards: Array,
filter: {
type: String,
value: 'education',
},
},
onPreload: function() {
this.preloadImages([
'img/bg-hero.png',
'img/illust-teacher_2x.png',
'img/lesson-plan-bg-full.png',
'img/lesson-plan-code.png',
'img/lesson-plan-traditions.png',
'img/logo-scratch.png',
'img/logo-code.png',
'img/logo-donors-choose.png',
'img/logo-khan.png',
'img/logo-lwb.png',
'img/logo-storyweaver.png',
]);
},
ready: function() {
this.scene = new scenes.press.Scene();
this.cards = this.scene.getModels(function(key) {
var locked = santaApp.sceneIsOpen(key) === false;
if (window.DEV && Math.random() > 0.5) {
locked = true;
}
return locked;
});
},
_computeHidden: function(filter, card) {
if (!filter) {
return false;
}
var parts = card.split(' ');
return parts.indexOf(filter) === -1;
},
_onFilterClick: function(ev) {
var filter = ev.target.dataset['filter'];
if (filter !== undefined) {
this.filter = filter;
}
},
_computeActive: function(a, b) {
return a === b ? 'active' : '';
},
_computeOrd: function(n) {
var off = +n % 10;
if (off === 1) {
return 'st';
} else if (off === 2) {
return 'nd';
} else if (off === 3) {
return 'rd';
} else {
return 'th';
}
},
_computeUnlockedUrlFor: function(scene, locked) {
if (locked) {
return null;
}
return this.urlFor(scene);
},
_computeCardBackgroundStyle: function(sceneName) {
if (sceneName) {
var url = this.resolveUrl('../../images/scenes/' + sceneName + '_2x.png');
return 'background-image: url(' + url + ')';
}
return null;
},
_trackLessonPlan: function(e, detail) {
var a = e.target.closest('a[href]');
var label = a.getAttribute('data-id');
window.ga('send', 'event', 'lessonPlanDownload', 'click', label);
},
});
</script>
</dom-module>