-
Notifications
You must be signed in to change notification settings - Fork 53
/
Copy pathclass4.html
346 lines (308 loc) · 12.6 KB
/
class4.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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Class 4 ~ Intermediate HTML/CSS ~ Girl Develop IT</title>
<meta name="description" content="This is the official Girl Develop It Intermediate Core HTML/CSS curriculum. It was developed through the contributions of Julie Pagano, Jen Myers, Alexis Goldstein and Izzy Johnston.
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 rel="stylesheet" href="reveal/css/reveal.css">
<link rel="stylesheet" href="reveal/css/theme/gdidefault.css" id="theme">
<!-- For syntax highlighting -->
<!-- light editor<link rel="stylesheet" href="lib/css/light.css">-->
<!-- dark editor--><link rel="stylesheet" href="reveal/lib/css/dark.css">
<!-- For the slides -->
<link rel="stylesheet" href="css/slides.css">
<!-- If use the PDF print sheet so students can print slides-->
<link rel="stylesheet" href="reveal/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">
<h3>Intermediate HTML and CSS</h3>
<h4>Class 3</h4>
</section>
<!-- Welcome-->
<section>
<h3>Welcome!</h3>
<div class = "left-align">
<p>Girl Develop It is here to provide affordable and accessible programs to learn software through mentorship and hands-on instruction.</p>
<p class ="green">Some "rules"</p>
<ul>
<li>We are here for you!</li>
<li>Every question is important</li>
<li>Help each other</li>
<li>Have fun</li>
</ul>
</div>
</section>
<section>
<section>
<h2>Media Queries</h2>
<ul>
<li>Conditional style sheets</li>
<li>Changing specific CSS styles on different browsers based on width, device-pixel-ratio, and orientation</li>
<li>Called via a meta tag</li>
</ul>
</section>
<section>
<h2>Media Queries</h2>
<p>A media type and at least one expression that limits the style
sheets' scope by using media features, such as width, height,
and color</p>
</section>
<section class="media-queries">
<h2>Media Queries</h2>
<div class="example"></div>
<pre><code>background-color: grey;
@media screen and (min-width: 300px) and (max-width: 600px)
{
background-color: red;
}
@media screen and (min-width: 900px) and (max-width: 1200px)
{
background-color: blue;
}</code></pre>
<pre class="fragment"><code><meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=1.0"></code></pre>
</section>
<section>
<h2>Media Queries</h2>
<p>Frequently used in responsive web design</p>
<p><a href = "http://mediaqueri.es" target = "_blank">http://mediaqueri.es</a></p>
<p><a href="http://buildresponsively.com/" target = "_blank">Example: Build Responsively</a></p>
</section>
</section>
<section>
<section>
<h2>Responsive Design</h2>
<p>Design by thinking of the structure of your website, and how different elements fit into the structure.</p>
</section>
<section>
<h2>Responsive Design</h2>
<p class ="yellow">Desktop View</p>
<img src = "images/media-queries-desktop.png" style = "height:500px"/>
</section>
<section>
<h2>Responsive Design</h2>
<p class ="yellow">Tablet View</p>
<img src = "images/media-queries-tablet.png" style = "height:500px"/>
</section>
<section>
<h2>Responsive Design</h2>
<p class ="yellow">Mobile View</p>
<img src = "images/media-queries-phone.png" style = "height:500px"/>
</section>
</section>
<section>
<section>
<h2>Responsive Design and Media Queries</h2>
<p>Most of our styling will stay the same</p>
<p>Colors, padding, etc.</p>
<p>Only change what needs to for each view</p>
</section>
<section>
<h2>Responsive Design and Media Queries</h2>
<p class = "yellow">Tablet example</p>
<pre><code contenteditable>
/** Tablet view **/
@media screen and (max-width: 960px){
h1 {
font-size: 1.1em;
line-height: 40px;
}
header nav li{
line-height: 40px;
}
}
</code></pre>
<p class = "fragment">In tablet view, we don't need the header to be so big</p>
</section>
<section>
<h2>Responsive Design and Media Queries</h2>
<p class = "yellow">Mobile example</p>
<pre><code contenteditable>
/** Mobile view **/
@media screen and (max-width: 480px){
#famous article.woman {
float: none;
margin: 5px auto;
padding: 2%;
width: 80%
}
}
</code></pre>
<p class = "fragment">In mobile view, we don't want the bios to float</p>
</section>
</section>
<!-- Let's Develop It-->
<section>
<section>
<h2>Let's Develop It</h2>
<p>Enhance our
Women in Computing web site to use HTML5 & CSS3</p>
</section>
<section>
<h2>Let's Develop It</h2>
<ul>
<li>Use media queries to make our site responsive</li>
<li>Start small</li>
<li>You will have a little bit more time than normal</li>
<li>Useful tutorial <a href = "http://webdesignerwall.com/tutorials/css3-media-queries" target ="_blank">CSS3 and Media Queries</a></li>
<li>Useful tutorial <a href = "http://webdesignerwall.com/tutorials/responsive-design-in-3-steps" target ="_blank">Responsive Design in 3 Easy Steps</a></li>
</ul>
</section>
</section>
<section>
<section>
<h2>Tools & Deployment</h2>
<p class = "yellow">Remember that HTML5 is still new</p>
<p>That means we have to be aware of what each browser can do</p>
<p>And make sure that people don't lose functionality</p>
</section>
<section>
<h2><a href="http://caniuse.com/" target ="_blank">Can I Use?</a></h2>
<img src="images/screenshots/caniuse-border-radius.png"/>
</section>
<section>
<h2><a href="http://html5readiness.com/" target ="_blank">HTML5 & CSS3 Readiness</a></h2>
<img src="images/screenshots/html5-css3-readiness.png"/>
</section>
<section>
<h2><a href="http://html5please.com/" target ="_blank">HTML5 Please</a></h2>
<img src="images/screenshots/html5-please.png"/>
</section>
<section>
<img src="images/html5rocks.png"/>
<p>
<a href="http://www.html5rocks.com" target ="_blank">http://www.html5rocks.com</a>
</p>
</section>
<section>
<img src="images/Mozilla-Developer-Network.png"/>
<p>
<a href="https://developer.mozilla.org" target ="_blank">https://developer.mozilla.org</a>
</p>
</section>
<section>
<img src="images/html5doctor.png"/>
<p>
<a href="http://html5doctor.com" target ="_blank">http://html5doctor.com</a>
</p>
</section>
<section>
<h2>
<a href="http://code.google.com/p/html5shiv/" target ="_blank">HTML5Shiv</a>
</h2>
<p>HTML5 IE enabling script</p>
</section>
<section>
<a href="http://modernizr.com/" target ="_blank">
<img src="images/modernizr.png"/>
</a>
<ul>
<li>JavaScript library that detects HTML5 and CSS3 features in the
user’s browser</li>
<li>Works well with polyfills - a piece of code (or plugin) that
provides the technology that you, the developer, expect the
browser to provide natively</li>
<li>A lot of the code is in JavaScript, but you can look here for how <a href = "http://modernizr.com/docs/#features-css" target = "_blank" >Modernizr helps with CSS</a></li>
</ul>
</section>
<section>
<h2>
<a href="http://html5boilerplate.com/" target ="_blank">
<img src="images/html5-boilerplate.png" />
</a>
</h2>
<ul>
<li>Boilerplate to help you get started</li>
<li>
Includes:
<ul>
<li>jQuery</li>
<li>Modernizr</li>
</ul>
</li>
</ul>
</section>
<section>
<h2>
<a href="http://www.initializr.com/" target ="_blank">
<img src="images/initializr.png" />
</a>
</h2>
<ul>
<li>HTML5 templates generator to help you get started with a
new project based on HTML5 Boilerplate</li>
<li>It generates for you a clean customizable template with just
what you need to start!</li>
</ul>
</section>
</section>
<!-- Let's Develop It-->
<section>
<section>
<h2>Let's Develop It</h2>
<ul>
<li>Look through the HTML5 tools in the previous section and try to update our site to work with older browsers</li>
<li>
Stuck or want something new?
<ul>
<li>Use <a href = "http://www.initializr.com/" target = "_blank">Initializr</a> to create your own blank template</li>
<li>Look at the structure of the HTML and CSS to learn new ways of building a site structure</li>
<li>Use all your knowledge from the past classes to begin building something uniquely yours!</li>
</ul>
</li>
</ul>
</section>
</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">
Intermediate HTML/CSS ~ 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/lib/js/head.min.js"></script>
<script src="reveal/js/reveal.min.js"></script>
<script src ="js/jquery-1.8.2.min.js"></script>
<script src="js/slides.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 || 'linear', // default/cube/page/concave/zoom/linear/none
// Optional libraries used to extend on reveal.js
dependencies: [
{ src: 'reveal/lib/js/classList.js', condition: function() { return !document.body.classList; } },
{ src: 'reveal/plugin/markdown/showdown.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
{ src: 'reveal/plugin/markdown/markdown.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
{ src: 'reveal/plugin/highlight/highlight.js', async: true, callback: function() { hljs.initHighlightingOnLoad(); } },
{ src: 'reveal/plugin/zoom-js/zoom.js', async: true, condition: function() { return !!document.body.classList; } },
{ src: 'reveal/plugin/notes/notes.js', async: true, condition: function() { return !!document.body.classList; } }
]
});
</script>
</body>
</html>