forked from olton/Metro-UI-CSS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tiles.php
623 lines (587 loc) · 31.2 KB
/
tiles.php
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
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
<?php include("header.php")?>
<div class="page secondary">
<div class="page-header">
<div class="page-header-content">
<h1>Tiles<small>demo</small></h1>
<a href="/" class="back-button big page-back"></a>
</div>
</div>
<div class="page-region">
<div class="page-region-content">
<div class="grid">
<div class="row">
<div class="span10">
<h2>Windows 8 Start Page Demo</h2>
<p>
<a href="windows8start.php">Demo page</a>
</p>
<h2>General info</h2>
<p>
Tiles are the representation of your app or sub module. The content shown on your tile can, and ideally should, change regularly, especially if your tile can communicate new, real-time information to your user. Tiles can show a combination of text and images, and a badge to show status.
Tile is a block object and can be placed in any container.
</p>
<p>The default tile size is 150x150 pixels. Tile size may be increased with add the next subclasses for tile object: <code>.double(-vertical)</code>, <code>.triple(-vertical)</code>, <code>.quadro(-vertical)</code>.</p>
<p>For tile may be set status "selected". You also may be change background color for tile with classes <code>.bg-color-*</code></p>
<h3>Tile definition:</h3>
<pre class="prettyprint linenums">
<div class="tile"></div>
<div class="tile double"></div>
<div class="tile selected"></div>
<div class="tile bg-color-orange"></div>
</pre>
<div class="clearfix">
<div class="tile"></div>
<div class="tile double"></div>
<div class="tile selected"></div>
<div class="tile bg-color-orange"></div>
</div>
<h2>Tile content</h2>
<p>Tile content can be placed in sub container with class <code>.tile-content</code>. Class .tile-content has padding 10px from top, bottom and 15px from left, right.</p>
<pre class="prettyprint linenums">
<div class="tile">
<div class="tile-content">
<small>...content here...</small>
</div>
</div>
</pre>
<div class="clearfix">
<div class="tile double bg-color-green">
<div class="tile-content">
<h2>[email protected]</h2>
<h5>Re: Wedding Annoucement!</h5>
<p>
Congratulations! I'm really excited to celebrate with you all. Thanks for...
</p>
</div>
<div class="brand">
<div class="badge">12</div>
<img class="icon" src="images/Mail128.png"/>
</div>
</div>
<div class="tile bg-color-red icon">
<b class="check"></b>
<div class="tile-content">
<img src="images/Market128.png"/>
</div>
<div class="brand">
<span class="name">Store</span>
<span class="badge">6</span>
</div>
</div>
<div class="tile double bg-color-blueDark">
<div class="tile-content">
<img src="images/michael.jpg" class="place-right"/>
<h4 style="margin-bottom: 5px;">michael_angiulo</h4>
<p>
I just saw Thor last night. It was awesome! I think you'd love it.
<h5>RT @julie_green</h5>
</p>
</div>
<div class="brand">
<span class="name">Tweet@rama</span>
</div>
</div>
</div>
<h3>Tiles content built-in subclasses</h3>
<p>Tiles content can be organized with built-in subclasses: <code>.icon</code>, <code>.image</code>, <code>.image-set</code>, <code>.image-slider</code>.</p>
<div class="grid">
<div class="row">
<div class="span2">
<h5>Subclass .icon</h5>
<div class="tile icon">
<div class="tile-content">
<img src="images/armor.png" />
</div>
</div>
</div>
<div class="span4">
<h5>Subclass .image</h5>
<div class="tile double image">
<div class="tile-content">
<img src="images/5.jpg" alt="" />
</div>
</div>
</div>
<div class="span4">
<h5>Subclass .image-set</h5>
<div class="tile double image-set">
<div class="tile-content">
<img src="images/1.jpg" alt="">
</div>
<div class="tile-content">
<img src="images/2.jpg" alt="">
</div>
<div class="tile-content">
<img src="images/3.jpg" alt="">
</div>
<div class="tile-content">
<img src="images/4.jpg" alt="">
</div>
<div class="tile-content">
<img src="images/5.jpg" alt="">
</div>
</div>
</div>
</div>
</div>
<pre class="prettyprint linenums">
<div class="tile icon(image)">
<div class="tile-content">
<img />
</div>
</div>
<div class="tile icon">
<div class="tile-content">
<i class="icon-"><i/>
</div>
</div>
------------
<div class="tile image-set">
<div class="tile-content">
<img />
</div>
<div class="tile-content">
<img />
</div>
<div class="tile-content">
<img />
</div>
<div class="tile-content">
<img />
</div>
<div class="tile-content">
<img />
</div>
</div>
------------
<div class="tile image-slider" data-role="image-slider">
<div class="tile-content">
<img />
</div>
...
<div class="tile-content">
<img />
</div>
</div>
</pre>
<div class="grid">
<div class="clearfix">
<div class="tile icon">
<div class="tile-content">
<img src="images/armor.png" />
</div>
<div class="brand bg-color-red">
<p class="text">Subclass .icon</p>
</div>
</div>
<div class="tile double image">
<div class="tile-content">
<img src="images/5.jpg" alt="" />
</div>
<div class="brand bg-color-red">
<p class="text">Subclass .image</p>
</div>
</div>
<div class="tile double image-set">
<div class="tile-content">
<img src="images/1.jpg" alt="">
</div>
<div class="tile-content">
<img src="images/2.jpg" alt="">
</div>
<div class="tile-content">
<img src="images/3.jpg" alt="">
</div>
<div class="tile-content">
<img src="images/4.jpg" alt="">
</div>
<div class="tile-content">
<img src="images/5.jpg" alt="">
</div>
<div class="brand bg-color-red">
<p class="text">Subclass .image-set</p>
</div>
</div>
<div class="tile icon">
<div class="tile-content">
<i class="icon-calculate"></i>
</div>
<div class="brand bg-color-red">
<p class="text">Tag <i /></p>
</div>
</div>
</div>
<h2 id="tile-slider-plugin">Tile Slider Plugin</h2>
<p>
For use <code>tile-slider</code> you mus include <code>tile-slider.js</code> in head of you page and add attribute <code>data-role="tile-slider"</code> to tile object.
To set specific parameters such as <code>direction</code>, <code>duration</code> and <code>period</code> you must add param <code>data-param-direction(duration, period)</code> to tile object.
</p>
<div class="tile double image-slider" data-role="tile-slider">
<div class="tile-content">
<img src="images/1.jpg" alt="">
</div>
<div class="tile-content">
<img src="images/2.jpg" alt="">
</div>
<div class="tile-content">
<img src="images/3.jpg" alt="">
</div>
<div class="tile-content">
<img src="images/4.jpg" alt="">
</div>
<div class="tile-content">
<img src="images/5.jpg" alt="">
</div>
</div>
<div class="tile double image-slider" data-role="tile-slider" data-param-direction="left" data-param-period="3000">
<div class="tile-content">
<img src="images/1.jpg" alt="">
</div>
<div class="tile-content">
<img src="images/2.jpg" alt="">
</div>
<div class="tile-content">
<img src="images/3.jpg" alt="">
</div>
<div class="tile-content">
<img src="images/4.jpg" alt="">
</div>
<div class="tile-content">
<img src="images/5.jpg" alt="">
</div>
</div>
<div class="tile double image-slider" data-role="tile-slider" data-param-direction="down" data-param-period="3000">
<div class="tile-content">
<img src="images/1.jpg" alt="">
</div>
<div class="tile-content">
<img src="images/2.jpg" alt="">
</div>
<div class="tile-content">
<img src="images/3.jpg" alt="">
</div>
<div class="tile-content">
<img src="images/4.jpg" alt="">
</div>
<div class="tile-content">
<img src="images/5.jpg" alt="">
</div>
</div>
<div class="tile double image-slider" data-role="tile-slider" data-param-direction="right" data-param-period="3000" data-param-duration="3000">
<div class="tile-content">
<img src="images/1.jpg" alt="">
</div>
<div class="tile-content">
<img src="images/2.jpg" alt="">
</div>
<div class="tile-content">
<img src="images/3.jpg" alt="">
</div>
<div class="tile-content">
<img src="images/4.jpg" alt="">
</div>
<div class="tile-content">
<img src="images/5.jpg" alt="">
</div>
</div>
<div class="tile double bg-color-green" data-role="tile-slider" data-param-period="3000">
<div class="tile-content">
<h2>[email protected]</h2>
<h5>Re: Wedding Annoucement!</h5>
<p>
Congratulations! I'm really excited to celebrate with you all. Thanks for...
</p>
</div>
<div class="tile-content">
<h2>[email protected]</h2>
<h5>Re: Wedding Annoucement!</h5>
<p>
Huh! Waw!!! I'm really excited to celebrate with you all. Thanks for...
</p>
</div>
<div class="brand">
<div class="badge">12</div>
<img class="icon" src="images/Mail128.png"/>
</div>
</div>
</div>
</div>
<p>
The default value of params:
<ul>
<li>Duration - 1000ms </li>
<li>Period - 2000ms</li>
<li>Direction - "up"</li>
</ul>
</p>
<h3>Tile status</h3>
<p>Tile status (branding info) can be placed in sub container with class <code>.brand</code> or <code>.tile-status</code>. Tile status background color can be changed, example with built-in classes <code>.bg-color-* </code></p>
<pre class="prettyprint linenums">
<div class="tile">
<div class="brand">
<small>...status content here...</small>
</div>
</div>
</pre>
<h3>Tile status > badge</h3>
<p>
A badge can display either a number from 1-99 or a status glyph. badge is positioned in tile status container on the bottom right corner.
Metro UI CSS support main Windows 8 badges: <span class="fg-color-blue">activity, alert, available, away, busy, newMessage, paused, playing, unavailable, error and attention</span> as built-in. Default badge background color is blue but may be changed, example with built-in classes <code>.bg-color-*</code>.
</p>
<pre class="prettyprint linenums">
<div class="tile">
<div class="brand">
<div class="badge activity"></div>
</div>
</div>
</pre>
<div class="clearfix">
<div class="tile">
<div class="tile-status">
<div class="badge bg-color-blue">99</div>
</div>
</div>
<div class="tile">
<div class="tile-status">
<div class="badge activity"></div>
</div>
</div>
<div class="tile">
<div class="brand">
<div class="badge alert"></div>
</div>
</div>
<div class="tile">
<div class="brand">
<div class="badge available"></div>
</div>
</div>
<div class="tile">
<div class="brand">
<div class="badge away"></div>
</div>
</div>
<div class="tile">
<div class="brand">
<div class="badge busy"></div>
</div>
</div>
<div class="tile">
<div class="brand">
<div class="badge newMessage"></div>
</div>
</div>
<div class="tile">
<div class="brand">
<div class="badge paused"></div>
</div>
</div>
<div class="tile">
<div class="brand">
<div class="badge playing"></div>
</div>
</div>
<div class="tile">
<div class="brand">
<div class="badge unavailable"></div>
</div>
</div>
<div class="tile">
<div class="brand">
<div class="badge error"></div>
</div>
</div>
<div class="tile">
<div class="brand">
<div class="badge attention"></div>
</div>
</div>
</div>
<h3>Tile status > Branding info</h3>
<p>
A branding info can display brand name or a brand glyph. Branding info is positioned in tile status container on the bottom left corner.
</p>
<pre class="prettyprint linenums">
<div class="tile">
<div class="brand">
<div class="name">Name</div>
</div>
</div>
<div class="tile">
<div class="brand">
<div class="icon"> <img /> </div>
</div>
</div>
</pre>
<div class="clearfix">
<div class="tile">
<div class="brand">
<div class="badge">10</div>
<div class="name">Mail</div>
</div>
</div>
<div class="tile double bg-color-green">
<div class="brand">
<div class="badge">12</div>
<img class="icon" src="images/Mail128.png"/>
</div>
</div>
<div class="tile double bg-color-pink">
<div class="brand">
<div class="name">Photos</div>
</div>
</div>
</div>
</div>
</div>
<div class="tiles clearfix">
<h3>Examples of tiles made with Metro UI CSS</h3>
<div class="tile image">
<div class="tile-content">
<img src="images/myface.jpg" alt="">
</div>
</div>
<div class="tile icon">
<div class="tile-content">
<img src="images/Mail128.png"/>
</div>
<div class="brand">
<div class="badge">10</div>
<div class="name">Mail</div>
</div>
</div>
<div class="tile bg-color-orangeDark icon selected">
<b class="check"></b>
<div class="tile-content">
<img src="images/Video128.png" alt="" />
</div>
<div class="brand">
<span class="name">Video</span>
</div>
</div>
<div class="tile double image">
<div class="tile-content">
<img src="images/5.jpg" alt="" />
</div>
<div class="brand">
<span class="name">Pictures</span>
<div class="badge bg-color-orange">5</div>
</div>
</div>
<div class="tile double-vertical bg-color-yellow icon">
<div class="tile-content">
<img src="images/Calendar128.png" />
</div>
<div class="brand">
<span class="name">Calendar</span>
</div>
</div>
<div class="tile bg-color-green icon selected">
<b class="check"></b>
<div class="tile-content">
<img src="images/Market128.png"/>
</div>
<div class="brand">
<span class="name">Store</span>
<span class="badge">6</span>
</div>
</div>
<div class="tile bg-color-red icon selected">
<div class="tile-content">
<img src="images/Music128.png" alt="" />
</div>
<div class="brand">
<span class="name">Music</span>
</div>
</div>
<div class="tile double bg-color-blueDark">
<div class="tile-content">
<img src="images/michael.jpg" class="place-left"/>
<h3 style="margin-bottom: 5px;">michael_angiulo</h3>
<p>
I just saw Thor last night. It was awesome! I think you'd love it.
<h5>RT @julie_green</h5>
</p>
</div>
<div class="brand">
<span class="name">Tweet@rama</span>
</div>
</div>
<div class="tile bg-color-darken icon">
<div class="tile-content">
<img src="images/YouTube128.png" alt="" />
</div>
<div class="brand">
<span class="name">YouTube</span>
</div>
</div>
<div class="tile icon">
<div class="tile-content">
<img src="images/excel2013icon.png"/>
</div>
<div class="brand">
<span class="name">Excel 2013</span>
</div>
</div>
<div class="tile double bg-color-green">
<div class="tile-content">
<h2>[email protected]</h2>
<h5>Re: Wedding Annoucement!</h5>
<p>
Congratulations! I'm really excited to celebrate with you all. Thanks for...
</p>
</div>
<div class="brand">
<div class="badge">12</div>
<img class="icon" src="images/Mail128.png"/>
</div>
</div>
<div class="tile double image">
<div class="tile-content">
<img src="images/4.jpg" alt="" />
</div>
<div class="brand bg-color-orange">
<img class="icon" src="images/Rss128.png"/>
<p class="text">This is a desert eagle. He is very hungry and angry bird.</p>
<div class="badge">10</div>
</div>
</div>
<div class="tile double image-set">
<div class="tile-content">
<img src="images/1.jpg" alt="">
</div>
<div class="tile-content">
<img src="images/2.jpg" alt="">
</div>
<div class="tile-content">
<img src="images/3.jpg" alt="">
</div>
<div class="tile-content">
<img src="images/4.jpg" alt="">
</div>
<div class="tile-content">
<img src="images/5.jpg" alt="">
</div>
<div class="brand">
<span class="name">Photos</span>
</div>
</div>
<div class="tile bg-color-blue icon">
<div class="tile-content">
<img src="images/InternetExplorer128.png"/>
</div>
<div class="brand">
<span class="name">Internet Explorer</span>
</div>
</div>
</div>
<br />
<div class="grid">
<div class="row">
<?php include("adsense.php")?>
</div>
</div>
</div>
</div>
</div>
<?php include("footer.php")?>