Repository navigation
Expand file tree
/
Copy pathtutorial.soy
More file actions
160 lines (140 loc) · 4.4 KB
/
Copy pathtutorial.soy
File metadata and controls
160 lines (140 loc) · 4.4 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
/**
* @fileoverview Tutorial for Coding in Chrome editor.
*
* @license Copyright 2015 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.
*
* @author mbordihn@google.com (Markus Bordihn)
* @author brunopanara@google.com (Bruno Panara)
*/
{namespace cwc.soy.Tutorial autoescape="deprecated-contextual"}
/**
* General template.
*/
{template .template}
{@param prefix: string}
<div id="{$prefix}body">
<div id="{$prefix}content"></div>
</div>
{/template}
/**
* General style definitions.
*/
{template .style}
{@param prefix: string}
#{$prefix}body {lb}
background-color: #fff;
color: #222;
font-family: "open sans",arial,sans-serif;
font-size: 12px;
height: 100%;
width: 100%:
{rb}
{/template}
/**
* Overview page.
*/
{template .overview}
<h1>Tutorial</h1>
{/template}
/**
* Tutorial page.
*/
{template .tutorial}
{@param prefix: string}
{call .header}
{param prefix: $prefix /}
{param title: 'What is Chrogramming?' /}
{param opt_text: 'An overview' /}
{/call}
<div class="{$prefix}content" id="{$prefix}overview">
{call .tutorialCard}
{param prefix: $prefix /}
{param text: 'Chrogramming is a new way to write and test code on' +
' a Chrome Browser' /}
{param order: '1' /}
{param next: '2' /}
{/call}
{call .tutorialCard}
{param prefix: $prefix /}
{param text: 'Using Blockly technology, beginners organize colored' +
' block patterns to create a set of tasks in a specific order for' +
' the Chromebot to perform.' /}
{param order: '2' /}
{param prev: '1' /}
{param next: '3' /}
{/call}
{call .tutorialCard}
{param prefix: $prefix /}
{param text: 'With drag-and-drop controls, Blockly connects code' +
' pieces to describe the movements, amounts and particular rules' +
' that make up your program.' /}
{param order: '3' /}
{param prev: '2' /}
{param next: '4' /}
{/call}
{call .tutorialCard}
{param prefix: $prefix /}
{param text: 'Once the blocks are in order, you can press the "Run"' +
' button to see your code in action on the right side of the screen.' /}
{param order: '4' /}
{param prev: '3' /}
{param next: '5' /}
{/call}
{call .tutorialCard}
{param prefix: $prefix /}
{param text: 'Chrogramming also talks to many robots through Bluetooth' +
' and USB (serial).' /}
{param order: '5' /}
{param prev: '4' /}
{param next: '6' /}
{/call}
{call .tutorialCard}
{param prefix: $prefix /}
{param text: 'It translates Blockly code into JavaScript too, beginning' +
' the transition from block-based into text-based formatting.' /}
{param order: '6' /}
{param prev: '5' /}
{param next: '7' /}
{/call}
{call .tutorialCard}
{param prefix: $prefix /}
{param text: 'To get started, turn on your robot and press the' +
' Bluetooth icon on your computer.' /}
{param order: '7' /}
{param prev: '6' /}
{param next: '8' /}
{/call}
{call .tutorialCard}
{param prefix: $prefix /}
{param text: 'Use the Advanced settings to ensure you have connected' +
' both devices.' /}
{param order: '8' /}
{param prev: '7' /}
{param next: '9' /}
{/call}
{call .tutorialCard}
{param prefix: $prefix /}
{param text: 'Imagine the possibilities for code in real life using' +
' Chrogramming!<br /><br />' +
'Check out the FAQ guide and App Map for questions about connecting' +
' devices and extra features.<br /><br />' +
'Visit the project Gallery for inspiration on your next project.' +
'<br /><br />Now, go and make something amazing!' /}
{param order: '9' /}
{param prev: '8' /}
{param finish: '9' /}
{/call}
</div>
{/template}