-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
296 lines (240 loc) · 10.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Atomic UI - Minimal UI Collection for Developers</title>
<link rel="shortcut icon" href="img/favicon.png"/>
<meta content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0' name='viewport' />
<link rel="stylesheet" type="text/css" href="css/reset.css">
<link rel="stylesheet" type="text/css" href="css/style.css">
<link rel="stylesheet" type="text/css" href="css/atomic.css">
<link href='http://fonts.googleapis.com/css?family=Lato:300,400,700' rel='stylesheet' type='text/css'>
<link rel="stylesheet" type="text/css" href="vendor/highlight/styles/github.css">
</head>
<body>
<div class="header">
<div class="content">
<nav>
<ul>
<li>Docs</li>
<li>About</li>
<li>Donate</li>
<li class="donate"><a href="download/atomic-pre-alpha.zip" download="atomic-pre-alpha">Download</a></li>
</ul>
</nav>
<div class="logo"></div>
<div class="tagline">
<h1>A Modern UI Collection for Web Developers</h1></div>
</div>
</div>
<!-- /.header -->
<div class="pitch section start">
<div class="content">
<ul>
<li>
<h2>What is Atomic?</h2>
<p>Atomic is a new collection of UI elements that will give your web projects a fresh, minimal look, while offering you a set of beautifully designed, easy to use components, ready to be included in your code with <i>plug and play</i> simplicity, so you can focus on what matters the most: developing quick and effectively</p>
</li>
<li>
<h2>Getting Started</h2>
<p>Kickstarting your project with Atomic couldn't be simpler, either <a href="download/atomic-pre-alpha.zip" download="atomic-pre-alpha">download</a> the library or import it with bower into your project using</p>
<pre><code>bower install atomic --save</code></pre>
<p>Reference atomic.css and atomic.js in your code and you're all set up.</p>
<pre><code class="html">
<link rel="stylesheet" href="/css/atomic.css"></link>
<script src="/js/atomic.js"></script>
</code></pre>
</li>
<!-- <li>
<h2>The Million Dollar Question... Why should I use Atomic?</h2>
<ul>
<li>
<h3>Simple</h3>
<p>Atomic is easy to use, all you need to know is plain HTML, add a couple classes to your usual components and develop away.</p>
</li>
<li>
<h3>Good Looking</h3>
<p></p>
</li>
<li>
<h3>Consistent</h3>
<p>Atomic takes the approach of unifying all the UI components as much as possible, in order to ...</p>
</li>
</ul>
</li> -->
</ul>
</div>
</div>
<!-- /.pitch -->
<div class="main section">
<div class="content">
<h2 class="section-title">Components</h2>
<p>All components in Atomic require the class <code>atomic</code> to be added to the HTML Element you want to apply the awesomeness to.</p>
<section class="buttons">
<h3 class="section-title">Buttons</h3>
<p>If you have a screen, you need buttons. With Atomic's simple markup, you can transform any HTML button into a great Atomic Button in seconds. Complete with hover and click animations by just adding <code>class="atomic button"</code> to your HTML element and optionally, a class for the button state.</p> <p>See the example below: </p>
<button class="margin5 atomic button">Accept</button>
<button class="margin5 atomic button cancel">Cancel</button>
<button class="margin5 atomic button disabled">Disabled</button>
<pre><code class="html">
<button class="atomic button">Accept</button>
<button class="atomic button cancel">Cancel</button>
<button class="atomic button disabled">Disabled</button>
</code></pre>
</section>
<!-- <section class="timepicker">
<h3 class="section-title">Timepicker</h3>
<p>Timepicker</p>
<input id="dp" value="1/26/2015, 11:45 PM" class="atomic timepicker" placeholder="Select a Date"></input>
</section> -->
<section class="dropdown">
<h3 class="section-title">Dropdown</h3>
<p>Dropdowns are not usually easy to get right. With Atomic, you just put an old fashioned list within a container with <code>class="atomic dropdown"</code> add an attribute for the placeholder text with <code>data-placeholder="Example"</code> and let Atomic do its magic. You'll get a fully featured dropdown filled with eye candy. <p>See the example below: </p>
<div class="margin5 atomic dropdown" data-placeholder="Choose your Favorite">
<ul>
<li>Pizza</li>
<li>Hamburgers</li>
<li>Mac & Cheese</li>
</ul>
</div>
<pre>
<code><div class="atomic dropdown" data-placeholder="Choose Your Favorite">
<ul>
<li>Pizza</li>
<li>Hamburgers</li>
<li>Mac & Cheese</li>
</ul>
</div></code></pre>
<p>
Setting the controller's width is entirely optional, as the dropdown will resize to any content you add to it. If you set the width manually, the content will wrap as needed.</p>
</section>
<h3 class="section-title">Text Inputs</h3>
<p>Atomic Text Inputs with Validation for Incomplete fields or invalid emails</p>
<section class="textinput">
<input class="atomic text" type="text" placeholder="Enter your Name">
<input class="atomic text" type="email" placeholder="Enter your Email" data-validate="email">
<input class="atomic text" type="password" placeholder="Enter your Password">
<pre><code class="html">
<input class="atomic text" type="text" placeholder="Enter your Name">
<input class="atomic text" type="email" placeholder="Enter your Email" data-validate="email">
<input class="atomic text" type="password" placeholder="Enter your Password">
</code></pre>
</section>
<h3 class="section-title">Toggle Switches</h3>
<p>Atomic Switches</p>
<section class="switches">
<input class="atomic switch" type="checkbox" checked>
<input class="atomic switch" type="checkbox">
<pre><code class="html">
<input class="atomic switch" type="checkbox" checked>
<input class="atomic switch" type="checkbox">
</code></pre>
</section>
<h3 class="section-title">Checkbox</h3>
<p>Atomic Checkboxes</p>
<section class="switches">
<label>
<input class="atomic checkbox" type="checkbox" name="atomic" checked>
Atomic Checkbox 1
</label>
<label>
<input class="atomic checkbox" type="checkbox" name="atomic">
Atomic Checkbox 2
</label>
<label>
<input class="atomic checkbox" type="checkbox" name="atomic" checked>
Atomic Checkbox 3
</label>
<pre><code class="html">
<label>
<input class="atomic checkbox" type="checkbox" name="atomic" checked>
Atomic Checkbox 1
</label>
<label>
<input class="atomic checkbox" type="checkbox" name="atomic">
Atomic Checkbox 2
</label>
<label>
<input class="atomic checkbox" type="checkbox" name="atomic" checked>
Atomic Checkbox 3
</label>
</code></pre>
</section>
<h3 class="section-title">Radio Buttons</h3>
<p>Atomic Radio Buttons</p>
<section class="switches">
<label>
<input class="atomic radio" type="radio" name="atomic" checked>
Atomic radio 1
</label>
<label>
<input class="atomic radio" type="radio" name="atomic">
Atomic radio 2
</label>
<label>
<input class="atomic radio" type="radio" name="atomic" >
Atomic radio 3
</label>
<pre><code class="html">
<label>
<input class="atomic radio" type="radio" name="atomic-radio" checked>
Atomic radio 1
</label>
<label>
<input class="atomic radio" type="radio" name="atomic-radio">
Atomic radio 2
</label>
<label>
<input class="atomic radio" type="radio" name="atomic-radio" checked >
Atomic radio 3
</label>
</code></pre>
</section>
</div>
</div>
<!-- /.main -->
<div class="footer">
<div class="content">
</div>
</div>
<!-- /.footer -->
</body>
<script type="text/javascript" src="js/jquery-1.10.1.min.js"></script>
<script type="text/javascript" src="js/jquery.easing.min.js"></script>
<script type="text/javascript" src="js/jquery.firefly-0.3.js"></script>
<script type="text/javascript">
// $('.header').mousemove(function(e){
// var amountMovedX = (e.pageX * -1 / 8);
// var amountMovedY = (e.pageY * -1 / 8);
// $('.header').css('background-position', amountMovedX + 'px ' + amountMovedY + 'px');
// });
$.firefly({
color: '#e75151',
minPixel: 1,
maxPixel: 2,
total : 70,
on: '.header'
});
</script>
<script type="text/javascript" src="vendor/highlight/highlight.pack.js"></script>
<script type="text/javascript">
function htmlEntities(str) {
return str.replace(/&/g,'&').replace(/</g,'<').replace(/>/g,'>') ;
}
function reindent(str){
return str.replace(/^\s+/mg, "")
}
$(document).ready(function($) {
$.each($('code.html'), function(index, val) {
$(this)[0].innerHTML = reindent($(this)[0].innerHTML);
$(this).html(htmlEntities($(this).html()));
});
hljs.initHighlightingOnLoad();
});
</script>
<script type="text/javascript" src="js/atomic.js"></script>
</html>
<div class="credits">
<div>Icon made by <a href="http://www.freepik.com" title="Freepik">Freepik</a> from <a href="http://www.flaticon.com" title="Flaticon">www.flaticon.com</a> is licensed under <a href="http://creativecommons.org/licenses/by/3.0/" title="Creative Commons BY 3.0">CC BY 3.0</a></div>
</div>
<!-- /.credits -->