-
Notifications
You must be signed in to change notification settings - Fork 0
/
example.html
78 lines (68 loc) · 1.93 KB
/
example.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
<!DOCTYPE html>
<html lang="en">
<head>
<title>React Font Awesome</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Bootstrap -->
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css">
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap-theme.min.css">
<!-- Font Awesome -->
<link href="//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css" rel="stylesheet">
<!-- React JS -->
<script src="//cdnjs.cloudflare.com/ajax/libs/react/0.10.0/JSXTransformer.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/react/0.10.0/react-with-addons.js"></script>
<!-- React Font Awesome -->
<script src="src/FAIcons.js" type="text/jsx"></script>
<!-- Start the Example -->
<script type="text/jsx">
/** @jsx React.DOM */
var Playing = React.createClass({
render:function(){
return(
<FAAnimate interval="800">
<FAVolumeOff />
<FAVolumeDown />
<FAVolumeUp />
</FAAnimate>
);
}
})
var FAIconExample = React.createClass({
render: function() {
return (
<span>
<FAIcon type="volume-up" />
<br />
<a className="btn btn-danger" href="#"><FATrashO size="lg" /> Delete</a>
<br />
<FAStack size="lg">
<FASquareO stack="2x"/>
<FATwitter stack="1x"/>
</FAStack>
<br />
<FAStack size="5x">
<FACamera stack="1x"/>
<FABan stack="2x" className="text-danger"/>
</FAStack>
<br />
<br />
<FAArrowLeft fw="true" spin="true" border="true" rotate="90" flip="vertical" />
<br />
<FAUl>
<li><FAChevronRight li="true"/> Line 1</li>
<li><FAChevronRight li="true"/> Line 2</li>
<li><FAChevronRight li="true"/> Line 3</li>
</FAUl>
<br />
FAAnimate:
<Playing />
</span>
);
}
});
React.renderComponent(<FAIconExample />, document.body);
</script>
</head>
<body></body>
</html>