-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
347 lines (278 loc) · 12.2 KB
/
index.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
347
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Multi-Branded Styleguides - Davide L Rizzo</title>
<meta name="description" content="A presentation on Multi-Branded Styleguides">
<meta name="author" content="Davide L Rizzo">
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<link rel="stylesheet" href="css/reveal.min.css">
<link rel="stylesheet" href="css/theme/custom.css" id="theme">
<!-- For syntax highlighting -->
<link rel="stylesheet" href="lib/css/zenburn.css">
<!-- If the query includes 'print-pdf', include the PDF print sheet -->
<script>
if( window.location.search.match( /print-pdf/gi ) ) {
var link = document.createElement( 'link' );
link.rel = 'stylesheet';
link.type = 'text/css';
link.href = 'css/print/pdf.css';
document.getElementsByTagName( 'head' )[0].appendChild( link );
}
</script>
<!--[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">
<!-- INTRO -->
<section>
<section>
<p class="huge">Multi-Branded Styleguides</p>
<p class="large">Learnings on constructing a multi-theme Styleguide</p>
<p><a href="http://www.davidelrizzo.com" target="_blank">Davide L Rizzo</a> / <a href="http://twitter.com/davidelrizzo" target="_blank">@davidelrizzo</a></p>
</section>
<section>
<p class="large">About Me</p>
<p>User Experience and Front-end Designer, 10+ years</p>
<div style="position:relative; width:700px; height:485px; margin:15px auto;">
<div class="" style="position:absolute; margin:0 auto; z-index:0;">
<img src="images/slides/achewood1.jpg" style="width:700px; height:485px; margin:0;">
</div>
<div class="fragment fade-in" style="position:absolute; top:0; left:0; margin:0; z-index:1;">
<img src="images/slides/achewood2.jpg" style="width:700px; height:485px; margin:0;">
</div>
<div class="fragment fade-in" style="position:absolute; top:0; left:0; margin:0; z-index:2;">
<img src="images/slides/achewood3.jpg" style="width:700px; height:485px; margin:0;">
</div>
</div>
</section>
<section>
<div style="text-align:left;">
<img src="images/slides/suncorp_logo.png" style="width:250px; height:250px; float:left; border: none; border-radius:20px; margin:0 20px 0 0;">
<p class="large">About Suncorp Group</p>
Suncorp Group includes leading general insurance, banking, life insurance and superannuation brands in Australia and <span style="white-space:nowrap;">New Zealand</span>
</div>
<p style="clear:both;"><br>The Styleguide covers Personal, Commercial and Life insurance Web applications, Self service application and Websites.</p>
</section>
<section>
<p class="large">What is a front-end Styleguide?</p>
<p>A reusable library of front-end components; <br>such as buttons, tables or grids, that are managed separately to any specific website or app.</p>
</section>
</section>
<!-- REQUIREMENTS -->
<section>
<section>
<p class="huge">Requirements<br>@<br>Suncorp</p>
</section>
<section>
<p class="large" style="font-size:44px">Support multiple brands</p>
<div style="position:relative; width:993px; height:576px; margin:15px auto;">
<div class="" style="position:absolute; margin:0 auto; z-index:0;">
<img src="images/slides/suncorp_brands.png" style="width:993px; height:576px; margin:0;">
</div>
<div class="fragment fade-in" style="position:absolute; top:0; left:0; margin:0; z-index:1;">
<img src="images/slides/suncorp_brands_done.png" style="width:993px; height:576px; margin:0;">
</div>
<div class="fragment fade-in" style="position:absolute; top:0; left:0; margin:0; z-index:2;">
<img src="images/slides/suncorp_brands_soon.png" style="width:993px; height:576px; margin:0;">
</div>
</div>
</section>
<section>
<p class="large">Support multiple platforms</p>
<img src="images/slides/platforms.png" width="758" height="250">
</section>
<section>
<p class="large">Support teams using both<br>LESS <em>and</em> SASS</p>
<img src="images/slides/sass_vs_less.png" width="580" height="410">
</section>
<section>
<p class="large">All components fluid and responsive</p>
<p>But can we turn it off for now?</p>
</section>
<section>
<p class="large">IE8+ browser support</p>
<img src="images/slides/ie_vs_murder.jpg" width="600" height="450">
</section>
<section>
<p class="large">Each project needs only specific components and can only update to new Styleguide features when they have resources</p>
<img src="images/slides/tools.png" width="757" height="275">
<p>(See Randeep's <a href="http://rdhaliwal.github.io/tooling-for-styleguides">Tooling Presentation</a>)</p>
</section>
</section>
<!-- CONSTRUCTION -->
<section>
<section>
<p class="huge">Constructing<br>Multi-brand</p>
</section>
<section>
<p class="large">How to construct components?</p>
<img src="images/slides/component_grouping.png" width="1028" height="386">
</section>
<section>
<p class="large">Bower & Semantic versioning</p>
<img src="images/slides/tools.png" width="378" height="137">
<table>
<tbody>
<tr>
<td><span class="highlight">Base</span> 2.1.3</td>
<td><span class="highlight">Icons</span> 1.4.5</td>
<td><span class="highlight">Grid</span> 1.0.2</td>
</tr>
<tr>
<td><span class="highlight">Typography</span> 1.6.2</td>
<td><span class="highlight">Buttons</span> 1.1.3</td>
<td><span class="highlight">Inputs</span> 1.3.2</td>
</tr>
<tr>
<td><span class="highlight">Radio/Check</span> 1.2.5</td>
<td><span class="highlight">Header</span> 1.3.3</td>
<td><span class="highlight">Toggle</span> 1.0.1</td>
</tr>
<tr>
<td><span class="highlight">Layout</span> 2.1.4</td>
<td><span class="highlight">Modal</span> 1.1.0</td>
<td>etc...</td>
</tr>
</tbody>
</table>
</section>
<section>
<p class="large">Default brand and brand layers</p>
<p>
<span class="highlight">Default</span> →
<span class="highlight">Brand</span> →
<span class="highlight">Per site customisation</span>
</p>
<img src="images/slides/branded_components.png" width="1107" height="365">
</section>
<section>
<p class="large">Colours</p>
<img src="images/slides/AAMI-colours.png" width="1100" height="644">
<p>LESS overrides allow easy changes</p>
</section>
<section>
<p class="large">OOCSS & SUITS naming, our way...</p>
<ul>
<li class="xfragment xfade-in">
Preprocessor agnostic (Solves our LESS vs SASS problem)
</li>
<li class="xfragment xfade-in">
<code>.[prefix]-[Component]-[elements]--[variant]</code><br>
eg. <code>.sg-Table-head--data</code>
</li>
<li>
Object Oriented CSS (OOCSS) reduces specificity
</li>
<li class="xfragment xfade-in">
Minimise cascade to ensure styling doesn't <i>contaminate</i>
</li>
<li class="xfragment xfade-in">
Styling native tags (eg. <code><ul></code>) only in optional file
</li>
</ul>
</section>
</section>
<!-- ICONS -->
<section>
<section>
<p class="huge">Icons</p>
</section>
<section>
<p class="large">SVG vs Fonts vs PNGs</p>
<img src="images/slides/icon_comparison.png" width="780" height="361">
</section>
<section>
<p class="large">Managing icons is tricky</p>
<div>
<p style="margin-bottom:0;">
Icons are subjective!!!<br>
<small style="line-height:1.5;">
Which one of these represents: <span class="highlight">"My policy list"</span>?
</small>
</p>
<img src="images/slides/icons.png" width="847" height="317" style="margin:0;">
</div>
<p>
<span class="highlight">Icon colours:</span> Functional Colours + Default<br>
<span class="highlight">Icon naming:</span> <code>Icon-help--primary</code><br>
<span class="highlight">Icons per component:</span> Only the ones they need!
</p>
</section>
<section>
<div style="text-align:left;">
<img src="images/slides/grumpicon.jpg" style="width:236px; height:336px; float:left; border-radius:10px; margin:0 20px 0 0;">
<div style="">
<h3>Grunticon</h3>
Generates Icons as SVG dataURI CSS classes
<code style="font-size:52%; line-height:1.3em; width: 70%;">
background-image: url('data:image/jpg;base64,/9j/4AAQSkZ JRgABAQAAAQABAAD/4QA2RXhpZgAASUkqAAgAAAABADIBAgAUAAAAGgAAAAAAAAAyMDEy IDEyOjM3OjU1AP/iAkBJQ0NfUFJPRklMRQABAQAAAjBBREJFAhAAAG1udHJSR0IgWFlaI wAAAAAAAGFjc3BBUFBMAAAAAG5vbmUAAAAAAAAAAAAAAAAAAAABAAD21gABAAAAANMtQU AAAAAAAAAAAAAAAAAAAAAAAAAAAAAACmNwcnQAA');
</code>
<br><br>
Auto generate PNGs for IE8 - with exact same class name
</div>
</div>
</section>
</section>
<!-- DOCUMENTATION -->
<section>
<section>
<p class="huge">Documentation</p>
</section>
<section>
<p class="large"></p>
<p>KSS documentation <span class="highlight"> vs </span> manual Markdown</p>
<img src="images/slides/docs.png" width="836" height="565" style="margin:0;">
</section>
<section>
<p class="large">Visual Testing</p>
<p>Automated diffing from documentation examples</p>
<img src="images/slides/diffs.png" width="977" height="417" style="margin:0;">
</section>
</section>
<!-- END -->
<section>
<p class="huge">THE END</p>
<p><a href="http://twitter.com/davidelrizzo" target="_blank">@davidelrizzo</a></p>
<ul>
<li><a href="https://insurance.aami.com.au/motor/pub/aamiquote?insuranceType=car&productType=comprehensive" target="_blank">AAMI Car Insurance quote</a></li>
<li><a href="https://insurance.gio.com.au/home/pub/gioquote?productType=classic&coverType=home_contents" target="_blank">GIO Home Insurance quote</a></li>
<li><a href="http://www.suncorp.com.au/insurance/motorcycle" target="_blank">Suncorp Motorcycle Insurance quote</a></li>
</ul>
</section>
</div>
</div>
<script src="lib/js/head.min.js"></script>
<script src="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,
center: true,
theme: Reveal.getQueryHash().theme, // available themes are in /css/theme
transition: Reveal.getQueryHash().transition || 'linear', // default/cube/page/concave/zoom/linear/fade/none
// Parallax scrolling
parallaxBackgroundImage: 'images/backgrounds/aurora.jpg',
parallaxBackgroundSize: '2560px 1600px',
// Optional libraries used to extend on reveal.js
dependencies: [
{ src: 'lib/js/classList.js', condition: function() { return !document.body.classList; } },
{ src: 'plugin/markdown/marked.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
{ src: 'plugin/markdown/markdown.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
{ src: 'plugin/highlight/highlight.js', async: true, callback: function() { hljs.initHighlightingOnLoad(); } },
{ src: 'plugin/zoom-js/zoom.js', async: true, condition: function() { return !!document.body.classList; } },
{ src: 'plugin/notes/notes.js', async: true, condition: function() { return !!document.body.classList; } }
]
});
</script>
</body>
</html>