forked from gdiDFW/gdi-responsive
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathclass2.html
More file actions
366 lines (303 loc) · 14.3 KB
/
class2.html
File metadata and controls
366 lines (303 loc) · 14.3 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
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Class 2 (Responsive Web Design, Girl Develop IT)</title>
<meta name="description" content="This is the Girl Develop It Responsive Web Design course. Materials by Catherine Farman, based on material by Sophie Shepherd.
The course is meant to be taught in 4 two-hour sections. Each of the slides and practice files are customizable according to the needs of a given class or audience.">
<meta name="author" content="Girl Develop It">
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
<link href='http://fonts.googleapis.com/css?family=Montserrat:400,700' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="reveal.js/css/reveal.css">
<link rel="stylesheet" href="reveal.js/css/theme/css/gdisunny.css" id="theme">
<!-- For syntax highlighting -->
<!-- light editor--><link rel="stylesheet" href="reveal.js/lib/css/light.css">
<!-- dark editor<link rel="stylesheet" href="reveal.js/lib/css/dark.css"> -->
<!-- If use the PDF print sheet so students can print slides-->
<link rel="stylesheet" href="reveal.js/css/print/pdf.css" type="text/css" media="print">
<!--[if lt IE 9]>
<script src="lib/js/html5shiv.js"></script>
<![endif]-->
</head>
<body>
<div class="reveal">
<!-- Any section element inside of this container is displayed as a slide -->
<div class="slides">
<!-- Opening slide -->
<section>
<img src = "images/gdi_logo_badge.png" class="badge">
<h3>Responsive Web Design</h3>
<h4>Class 2</h4>
</section>
<!-- Opening slide -->
<section>
<h3>Class 2 Slides:</h3>
<p class="blue" style="font-size: 3em; text-decoration: underline;">cfarm.co/rwd2</p>
</section>
<!-- Review -->
<section>
<h3>Four Keys to Responsive Design</h3>
<ul>
<li>A Fluid Grid</li>
<li>Flexible Images</li>
<li>Media Queries</li>
<li>Viewport Meta Tag</li>
</ul>
</section>
<!-- Review Quiz!!! -->
<section>
<h3>The Fluid Grid</h3>
<p class="left-align">Q: For fluid grids, container widths should use <span class="red">___?</span> instead of pixels</p>
<p class="green left-align fragment">A: Percentages</li>
</ul>
</section>
<!-- Review Quiz!!! -->
<section>
<h3>The Fluid Grid</h3>
<p class="left-align">Q: What is the formula to calculate your width percentage?</p>
<p class="green left-align fragment">A: Target ÷ context = result</span></li>
</ul>
</section>
<!-- Review Quiz!!! -->
<section>
<h3>Viewport <meta Tag></h3>
<p class="left-align">Q: The Viewport <meta> tag changes the <span class="red">_____?</span> of your HTML document:</p>
<ol style="list-style-type: upper-alpha;" class="left-align">
<li class="left-align">Width</li>
<li class="left-align">Aspect Ratio</li>
<li class="left-align">Scale</li>
<li class="left-align">Height</li>
</ol>
<p class="green left-align fragment">A: Scale</p>
</ul>
</section>
<!-- Today's Goal -->
<section>
<h3>Goal for Today</h3>
<div>
Learn best practices in responsive design and build a responsive navigation menu.
</div>
</section>
<!-- Terms-->
<section>
<h3>Terms</h3>
<ul>
<li>
<div class = "blue">Best Practice</div>
<div>Method or technique that has consistently shown results superior to those achieved with other means, and that is used as a benchmark <a href="http://en.wikipedia.org/wiki/Best_practice">(Wikipedia)</a></div>
</li>
<li>
<div class = "blue">Design Pattern</div>
<div>Describe solutions to common usability or accessibility problems in a specific context<a href="http://en.wikipedia.org/wiki/Interaction_design_pattern">(Wikipedia)</a></div>
</li>
<li>
</li>
</ul>
</section>
<!-- W3C Best Practices for Mobile Web Design -->
<section>
<h3>Mobile Web Design</h3>
<p class="left-align"><a href="http://www.w3.org/TR/mobile-bp/#d0e630">Best practices recommended by the W3C</a>:</p>
<p class="left-align"><span class="blue">User Experience:</span>
Ensure that content provided by accessing a URI yields a thematically coherent experience when accessed from different devices.
</p>
<img src="images/fifa_mobile.png" alt="" width=300>
<a href="http://m.jcrew.com"><img src="images/mobile_jcrew.png" alt="" width=300 style="vertical-align: top"></a>
</section>
<!-- W3C Best Practices for Mobile Web Design -->
<section>
<h3>Mobile Web Design</h3>
<p class="left-align"><a href="http://www.w3.org/TR/mobile-bp/#d0e630">Best practices recommended by the W3C</a>:</p>
<p class="left-align"><span class="blue">Testing:</span>
Carry out testing on actual devices as well as emulators.
</p>
<img src="images/my_devices.jpg" alt="">
</section>
<!-- W3C Best Practices for Mobile Web Design -->
<section>
<h3>Mobile Web Design</h3>
<p class="left-align"><a href="http://www.w3.org/TR/mobile-bp/#d0e630">Best practices recommended by the W3C</a>:</p>
<p class="left-align"><span class="blue">Layout:</span>
Use percentage and relative measures such as ems.
</p>
<img src="images/fixed_nav.png" alt="">
</section>
<!-- W3C Best Practices for Mobile Web Design -->
<section>
<h3>Mobile Web Design</h3>
<p class="left-align"><a href="http://www.w3.org/TR/mobile-bp/#d0e630">Best practices recommended by the W3C</a>:</p>
<p class="left-align"><span class="blue">Markup:</span>
Organize documents so that if necessary they may be read without style sheets.
</p>
</section>
<!-- W3C Best Practices for Mobile Web Design -->
<section>
<h3>Mobile Web Design</h3>
<p class="left-align"><a href="http://www.w3.org/TR/mobile-bp/#d0e630">Best practices recommended by the W3C</a>:</p>
<p class="left-align"><span class="blue">Content:</span>
Ensure that material that is central to the meaning of the page precedes material that is not.
</p>
<a href="images/mlb_app.png" title=""><img src="images/mlb_app.png" alt="" width=300></a>
<a href="images/fox_ads.png" title=""><img src="images/fox_ads.png" alt="" width=300></a>
</section>
<!-- W3C Best Practices for Mobile Web Design -->
<section>
<h3>Mobile Web Design</h3>
<p class="left-align"><a href="http://www.w3.org/TR/mobile-bp/#d0e630">Best practices recommended by the W3C</a>:</p>
<p class="left-align"><span class="blue">Content:</span>
Ensure that material that is central to the meaning of the page precedes material that is not.
</p>
<a href="images/ap_1.png" title=""><img src="images/ap_1.png" alt="" width=300></a>
<a href="images/ap_2.png" title=""><img src="images/ap_2.png" alt="" width=300></a>
</section>
<!-- W3C Best Practices for Mobile Web Design -->
<section>
<h3>Mobile Web Design</h3>
<p class="left-align"><a href="http://www.w3.org/TR/mobile-bp/#d0e630">Best practices recommended by the W3C</a>:</p>
<p class="left-align"><span class="blue">Content:</span>
Ensure that material that is central to the meaning of the page precedes material that is not.
</p>
<a href="images/content_first.png" title=""><img src="images/content_first.png" alt="" width=300></a>
<a href="images/grist_headline.png" title=""><img src="images/grist_headline.png" alt="" width=300></a>
</section>
<!-- W3C Navigation Best Practices for Mobile Web Design -->
<section>
<h3>Mobile Web Design</h3>
<p class="left-align"><a href="http://www.w3.org/TR/mobile-bp/#bpgroupnavlinks">Navigation Best practices recommended by the W3C</a>:</p>
<ul>
<li>
Provide only minimal navigation at the top of the page.
</li>
<li>
Provide consistent navigation mechanisms.
</li>
<li>
Clearly identify the target of each link (e.g. no use of "Click here").
</li>
<li>
Do not change the current window without informing the user.
</li>
</ul>
</section>
<section>
<h4>Provide only minimal navigation at the top of the page</h4>
<a href="images/texas_tribune.png" title=""><img src="images/texas_tribune.png" alt="" width=350></a>
<a href="images/lifehacker_nav.png" title=""><img src="images/lifehacker_nav.png" alt="" width=350></a>
</section>
<section>
<h4>Provide consistent navigation mechanisms</h4>
<a href="images/brooklyn_museum.png" title=""><img src="images/brooklyn_museum.png" alt="" width=250></a>
<a href="images/brooklyn_museum2.png" title=""><img src="images/brooklyn_museum2.png" alt="" width=250></a>
<a href="images/brooklyn_museum3.png" title=""><img src="images/brooklyn_museum3.png" alt="" width=250></a>
</section>
<!-- Navigation Patterns -->
<section>
<h3>Navigation Patterns</h3>
<div class="left-align">
<ul>
<li>Nav bar</li>
<li>Select dropdown</li>
<li>Toggle</li>
<li>Off Canvas</li>
<li>Touch Screen Fat Finger http://www.uxbooth.com/articles/considerations-for-mobile-design-part-3-behavior/</li>
</ul>
</div>
<cite><a href="http://bradfrostweb.com/blog/web/responsive-nav-patterns/">(Responsive Nav Patterns)</a></cite>
</section>
<!-- Navigation Patterns -->
<section>
<h3>Navigating for Touch Devices</h3>
<div class="left-align">
<ul>
<li>Touch Screen Fat Finger </li>
<li>min-height and width recommended: 44px</li>
</ul>
</div>
<cite><a href="http://www.uxbooth.com/articles/considerations-for-mobile-design-part-3-behavior/">(Considerations for Mobile Design [Part 3: Behavior])</a></cite>
</section>
<!-- Exercise-->
<section>
<h3>Let's Develop It</h3>
<p>Create a new html file</p>
<p>Save it in our <span class="blue">/gdiJS/</span> folder</p>
<pre><code class ="html">
<html>
<head>
<title>My Site!</title>
</head>
<body>
My site!
</body>
</html>
</code></pre>
</section>
<section>
<h3>Let's Develop It</h3>
<p>Create a new javascript file (a file that ends in .js)</p>
<p>Link it to your html file</p>
<pre><code class ="html">
<html>
<head>
<title>My Site!</title>
<script src="myjavascriptfile.js"></script>
</head>
<body>
My site!
</body>
</html>
</code></pre>
</section>
<section>
<h3>Let's Develop It</h3>
<h4>Lifetime Supply Calculator</h4>
<p>Ever wonder how much a lifetime supply of your favorite snack or drink is?</p>
<ul>
<li>Store your age in a variable</li>
<li>Store your maximum in a variable</li>
<li>Store an estimated amount per day in a variable</li>
<li>Calculate how many you would eat/drink for the rest of your life.</li>
<li>Output the result in an alert(see below) like so: "You will need X _____s to last you until your old age of N"</li>
</ul>
<pre><code contenteditable class ="javascript">
alert(answer);
</code></pre>
</section>
<!-- -->
<section>
<h2>Questions?</h2>
<div style = "font-size:1200%; height:100%; margin-top:40%" class ="blue">?
<div class ="clear"></div></div>
</section>
</div>
<footer>
<div class="copyright">
Responsive Web Design ~ Girl Develop It ~
<a rel="license" href="http://creativecommons.org/licenses/by-nc/3.0/deed.en_US"><img alt="Creative Commons License" style="border-width:0" src="http://i.creativecommons.org/l/by-nc/3.0/80x15.png" /></a>
</div>
</footer>
</div>
<script src="reveal.js/lib/js/head.min.js"></script>
<script src="reveal.js/js/reveal.min.js"></script>
<script>
// Full list of configuration options available here:
// https://github.com/hakimel/reveal.js#configuration
Reveal.initialize({
controls: true,
progress: true,
history: true,
theme: Reveal.getQueryHash().theme, // available themes are in /css/theme
transition: Reveal.getQueryHash().transition || 'none', // default/cube/page/concave/zoom/linear/none
// Optional libraries used to extend on reveal.js
dependencies: [
{ src: 'reveal.js/lib/js/classList.js', condition: function() { return !document.body.classList; } },
{ src: 'reveal.js/plugin/markdown/showdown.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
{ src: 'reveal.js/plugin/markdown/markdown.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
{ src: 'reveal.js/plugin/highlight/highlight.js', async: true, callback: function() { hljs.initHighlightingOnLoad(); } },
{ src: 'reveal.js/plugin/zoom-js/zoom.js', async: true, condition: function() { return !!document.body.classList; } },
{ src: 'reveal.js/plugin/notes/notes.js', async: true, condition: function() { return !!document.body.classList; } }
]
});
</script>
</body>
</html>