forked from marthar/webfall-2015
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path7.html
executable file
·306 lines (274 loc) · 9.14 KB
/
7.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Responsive FTW!</title>
<meta name="viewport" content="width=1024">
<meta name="viewport" content="width=1024">
<link rel="stylesheet" href="dist/coderdeck-core.min.css" type="text/css">
<link rel="stylesheet" id='style-theme-link' href="src/css/coderdeck.css" type="text/css" >
<script src='dist/jquery.min.js'></script>
<script src="dist/modernizr.js"></script>
<link href='http://fonts.googleapis.com/css?family=Oswald:400,700,300' rel='stylesheet' type='text/css'>
</head>
<body class="deck-container">
<script type='text/coderdeck' id='coderdeck-default'>
<html>
<head>
<script src='src/jquery.min.js'>SCRIPTEND
<link rel="stylesheet" href="reset.css">
</head>
<body>
CODE
</body>
</html>
</script>
<script type='text/coderdeck' id='coderdeck-plain'>
<html>
<title>test</title>
<link rel="stylesheet" href="reset.css">
<body>
CODE
</body>
</html>
</script>
<script type='text/coderdeck' id='coderdeck-css-playground'>
<html>
<title>test</title>
CODE
<body>
<h1>I'm a H1 heading</h1>
<h2>I'm a H2 heading</h2>
<p>Pargraph of text <p></p>
<div class='stuff'><div> with class "stuff"</div>
<div id='my-div'><div> with id "my-div"</div>
</body>
</html>
</script>
<script type='text/coderdeck' id='coderdeck-style-example'>
<html>
<title>test</title>
<style>
CODE
</style>
<body>
<h1>I'm a H1 heading</h1>
<h2>I'm a H2 heading</h2>
<h3>Pargraph of text <p> here</p>
<div class='stuff'>I'm a div <div> with class "stuff"</div>
<div id='my-div'>I'm a <div> with id "my-div"</div>
</body>
</html>
</script>
<!-- Create any number of elements with class slide within the container -->
<article class='slide slide-subhead'>
<h1>Responsive Design</h1>
<h3 class="center"><a href='http://acacheung.github.io/webspring-2016/7.html'>http://acacheung.github.io/webspring-2016/7.html</a></h3>
</article>
<article class='slide slide-list'>
<h2>Order of Business</h2>
<ol>
<li class="slide">
<h3>Review final project wireframes and get your HTML into the group project</h3>
</li>
<li class="slide">
<h3>UX Audit</h3>
</li>
<li class="slide">
<h3>Responsive Design</h3>
</li>
<li class="slide">
<h3>Flexible Grids</h3>
</li>
<li class="slide">
<h3>Flexible Images</h3>
</li>
<li class="slide">
<h3>Media Queries</h3>
</li>
<li class="slide">
<h3>Exercises</h3>
</li>
</ol>
</article>
<article class='slide slide-list'>
<h2>UX Audit: <a href="https://www.epicurrence.com/">Epicurrence Design Conference</a></h2>
<ul>
<li class="slide">
<h3>WHAT your end users might want</h3>
</li>
<li class="slide">
<h3>WHY they want it</h3>
</li>
<li class="slide">
<h3>HOW to provide it to them</h3>
</li>
<li class="slide">
<h3>Usable?</h3>
</li>
<li class="slide">
<h3>Delightful?</h3>
</li>
<li class="slide">
<h3>What are questions you might have before buying a ticket to a conference?</h3>
</li>
<li class="slide">
<h3>Go through and buy a ticket.</h3>
</li>
</article>
<article class='slide slide-list'>
<h2>Portfolio Inspiration</h2>
<ul>
<li class="slide">
<h3><a href="http://garbett.com.au/">Garbett</a></h3>
</li>
<li class="slide">
<h3><a href="http://www.samdallyn.co.uk/">Sam Dallyn</a></h3>
</li>
<li class="slide">
<h3><a href="http://admirhadzic.com/">Admir Hadzic</a></h3>
</li>
<li class="slide">
<h3>Show what I built in this class four years ago?</h3>
</li>
</article>
<article class = 'slide'>
<h2>What is responsive web design?</h2>
<p>Wikipedia says: Responsive web design (RWD) is a web design approach aimed at crafting sites to provide an optimal viewing experience—easy reading and navigation with a minimum of resizing, panning, and scrolling—across a wide range of devices (from mobile phones to desktop computer monitors)</p>
<br>
<p>Here is an example of one:</p>
<a href='http://thegreatdiscontent.com/jessica-walsh'>The Great Discontent</a>
<br>
<br>
<img src='images/tgd.png'>
</article>
<article class = 'slide'>
<h2>What are other options? (Discussion led by Dan!)</h2>
<p><a href='http://www.nytimes.com/'><strong>Fixed</strong></a>: set width, styles do not change depending on resize, no media queries</p>
<br />
<p><strong>Fluid</strong>: built using percentages, no media queries</p>
<br />
<p><strong>Adaptive</strong>: media queries to target specific devices (mobile, tablet, desktop)</p>
<br />
<p><strong>Native app</strong>: can work without an internet connection, higher quailty UX</p>
<br />
<p><a href='http://mobile.nytimes.com/'><strong>Separate mobile site</strong></a>: created only for small screens, lighter and faster</p>
</article>
<article class = 'slide'>
<h2>Why do RWD?</h2>
<p>Write the code once and have it functional and legible across many devices.</p>
<p>People are using a wide range of devices to complete their tasks now. Reading on mobile phones, shopping on tablets, etc.</p>
</article>
<article class = 'slide'>
<h2>Let's take a look at some more responsive sites</h2>
<p>What do they think about when implementing?</p>
<p>Play with the height and width of your browser to see what is happening</p>
<p>Did it make sense for the site to be built responsively?</p>
<br>
<h3><a href='http://www.bostonglobe.com/'>Boston Globe</a></h3>
<p>"The first major, high-traffic, content-heavy website to adopt a responsive design" -Beaconfire Wire</p>
<p>Helped "raise public awareness of this flexible, standards-based, multi-platform and user-focused web design approach" -Jeffrey Zeldman</p>
<br>
<h3><a href='http://builtbybuffalo.com/'>Built by Buffalo</a></h3>
</article>
<article class = 'slide'>
<h2>Let's try it out!</h2>
<a href='http://jsbin.com/IyOSEho/1/edit'>Responsive demo</a>
</article>
<article class = 'slide'>
<h2>Media Queries Syntax</h2>
<p>@media (min-width: 680px) and (max-width: 1020px) {<br>
h1 {<br>
font-size: 48px;<br>
Styles go here…<br>
}<br>
}<br><br>
<p>These are identical:</p>
<p>@media all and (min-width: 500px) { … }</p>
<p>@media (min-width: 500px) { … }</p>
<br>
<p>Media types: all, print, screen and
<a href='http://www.w3.org/TR/CSS2/media.html#media-types'>more</a>
</p>
<p>Media features: width, height, orientation and
<a href='http://www.w3.org/TR/css3-mediaqueries/#contents'>more</a>
</p>
</article>
<article class = 'slide'>
<h2>Future Media features</h2>
<p>Hover (if the device is able to hover), luminosity (dim or bright environment?) and
<a href='http://dev.w3.org/csswg/mediaqueries4/#contents'>more</a>
</p>
</article>
<article class = 'slide'>
<h2>First exercise</h2>
<p>If you want to match perfectly, the font is Montserrat and the teal is #8affbf. Open up <a href="http://jsbin.com/?html,css,output">JS Bin</a> and change the font sizes at different media queries.</p>
<img src='images/exercise-01.png'>
</article>
<article class = 'slide'>
<h2>How I would do it</h2>
<p>Start mobile first</p>
<p>Move on to bigger widths slowly</p>
</article>
<article class = 'slide'>
<h2>How I would do it</h2>
<p>Start mobile first</p>
<p>Move on to bigger widths slowly</p>
<br>
<br>
<p>Why mobile first?</p>
<a href='http://colly.com/contact/'>Show more as we size up, not hide things when the screen gets more narrow. This is because mobile tends to have less bandwidth than devices with larger screen widths</a>
</article>
<article class = 'slide'>
<h2>Refactor!</h2>
</article>
<article class = 'slide'>
<h2>Second exercise</h2>
<p>Copy taken from <a href='http://hipsteripsum.me/'>Hipster Ipsum</a></p>
<p>Darker teal hex color: #7ce5a6</p>
<img src='images/exercise-02.png'>
</article>
<article class = 'slide'>
<h2><a href='images/exercise2.zip' target='_blank'>One way to do it!</a></h2>
<img src='images/exercise-02.png'>
</article>
<article class='slide slide-homework'>
<h2>Homework</h2>
<ul class='slide'>
<li>
<h3><a href='http://learn.shayhowe.com/advanced-html-css/responsive-web-design/'>Shay Howe's Lessons</a></h3>
</li>
<li>
<h3><a href='http://alistapart.com/article/fluid-images'>Fluid Images</a>
</h3>
</li>
<li>
<h3><a href='http://alistapart.com/article/responsive-web-design'>Responsive Web Design</a>
</h3>
</li>
<li>
<h3><a href='http://typecast.com/blog/designing-for-moments-with-media-queries'>Designing for Moments with Media Queries</a>
</h3>
</li>
<li>
<h3>Work on group project (due April 18)</h3>
</li>
<li>
<h3>Code Dobot so that it is responsive (due next class)</h3>
</li>
<li>
<h3>Work on design of final project (design due April 18)</h3>
</li>
</ul>
</ul>
</article>
<script src='dist/coderdeck.min.js'></script>
<!-- Prettify -->
<script src="src/prettify.js"></script>
<script>
$(function() {
$.deck('.slide');
});
</script>
</body>
</html>