forked from mozbrick/brick
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
149 lines (130 loc) · 5.07 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
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1, maximum-scale=1">
<title>Brick </title>
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Open+Sans:300,300italic,400">
<link rel="stylesheet" href="site/css/bootstrap.min.css">
<link rel="stylesheet" href="dist/brick.css"/>
<link rel="stylesheet" href="site/css/main.css">
<link rel="stylesheet" type="text/css" href="demos/x-tag-flipbox/demo.css"/>
<link rel="stylesheet" type="text/css" href="site/css/prettify.css">
</head>
<body>
<header class="site-header">
<nav class="navbar navbar-default navbar-fixed-top grayshade" role="navigation">
<div class="container">
<div class="navbar-header">
<a class="navbar-brand" href="index.html">
<img class="logo" src="site/img/logo.png">
Brick<small> 1.0.0-rc2</small>
</a>
</div>
<ul class="navbar-nav nav">
<li><a href="docs.html">
<span class="succinct">Docs</span>
<span class="verbose">Documentation & Demos</span>
</a></li>
<li><a href="download.html">
<span>Download</span>
</a></li>
<li><a href="http://github.com/mozilla/brick/">
<span>Github</span>
</a></li>
<li><a href="http://github.com/mozilla/brick/issues">
<span>Issues</span>
</a></li>
</ul>
</div>
</nav>
<div class="jumbotron">
<div class="container">
<h1>Brick</h1>
<h2>UI Components for Modern Web Apps</h2>
</div>
</div>
</header>
<article class="container">
<div class="row">
<section class="col-md-4">
<h2>What is Brick?</h2>
<p>
Brick is a bundle of reusable UI components created to enable <b>rapid development</b> of cross-browser and mobile-friendly HTML5 web applications.
</p>
</section>
<section class="col-md-4">
<h2>Neat. How?</h2>
<p>
Brick components are <b>custom HTML tags</b> created using <a href="http://x-tags.org">X-Tag</a> — a library that makes developing Web Components easier.
</p>
</section>
<section class="col-md-4">
<h2>Um, Web Components?</h2>
<p>
<a href="https://dvcs.w3.org/hg/webcomponents/raw-file/tip/spec/custom/index.html">Web Components</a> is a series of emerging <b>W3C standards</b> that allow developers to define custom HTML elements, and interact with them using the native DOM.
</p>
</section>
</div>
<section class="demo-wrap clean row">
<div class="col-md-4 col-sm-6">
<figure class="demo largeprint demo-left">
<x-flipbox>
<div>I'm the front face.</div>
<div>And I'm the back face.</div>
</x-flipbox>
</figure>
</div>
<div class="markup-wrap col-md-8 col-sm-6">
<h1>Brick in Action</h1>
<div class="controls">
<button class="btn btn-default" data-toggle-prop="flipped" data-toggle-target="x-flipbox">Toggle flip</button>
</div>
<h3>Markup</h3>
<pre class="prettyprint html"><x-flipbox><br/> <div>I'm the front face.</div><br/> <div>And I'm the back face.</div><br/></x-flipbox></pre>
<h3>JavaScript</h3>
<pre class="prettyprint javascript">// assume that toggleButton and flipBox are already<br/>// defined as their respective DOM elements<br/>toggleButton.addEventListener("click", function(){<br/> flipBox.toggle(); <br/>});</pre>
</div>
</section>
<section class="row">
<div class="col-sm-6">
<h1>Start Stacking</h1>
<a class="download" href="download.html">
<h3>Download Brick</h3>
<small>version 1.0.0-rc2 — 184K</small>
</a>
</div>
<div class="col-sm-6">
<h1>Feedback</h1>
<p>Brick is currently in Beta. You may run into issues using the components, but it likely isn't your fault! Please let us know!</p>
<a href="https://github.com/mozilla/brick/issues/new">File an Issue »</a>
</div>
</section>
<footer class="row">
<div class="col-xs-8"></div>
<div class="col-xs-4">
<a class="moz" href="https://mozilla.org/"><img alt="mozilla" src="site/img/mozillaHTML5.png" title="built by Mozilla"></a>
</div>
</footer>
</article>
<script src="dist/brick.js"></script>
<script src="site/js/prettify.js"></script>
<script src="site/js/demo-page-helpers.js"></script>
<script src="demos/x-tag-flipbox/demo.js"></script>
<script>
var demos = document.querySelectorAll('.demo[data-src]');
for (var i=0; i<demos.length; i++) {
var fig = demos[i];
var iframe = document.createElement('iframe');
iframe.src = fig.getAttribute('data-src');
fig.appendChild(iframe);
iframe.onload = function(e) {
e.target.style.opacity = 1;
}
var a = document.createElement('a');
a.href = iframe.src;
fig.appendChild(a);
}
</script>
</body>
</html>