This repository has been archived by the owner on Sep 10, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
108 lines (97 loc) · 3.01 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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<link rel="shortcut icon" href="https://static.zeroturnaround.com/theme55/images/favicon.ico">
<title>ZeroTurnaround React Components</title>
<style>
body {
max-width: 800px;
margin: 0 auto;
padding: 20px;
font-family: Arial;
font-size: 12px;
}
h1 {
font-size: 2.5em;
}
h2 {
font-size: 1.75em;
}
label {
display: flex;
align-items: center;
margin-bottom: 1em;
}
.green {
color: #95c11f;
}
.zt-link, .github-link {
position: fixed;
bottom: 15px;
opacity: 0.3;
}
.zt-link:hover, .github-link:hover {
opacity: 1;
}
.zt-link {
right: 15px;
}
.github-link {
right: 60px;
}
</style>
<script src="https://unpkg.com/[email protected]/dist/react.js"></script>
<script src="https://unpkg.com/[email protected]/dist/react-dom.js"></script>
<script src="https://unpkg.com/zt-react-components@latest/dist/zt-react-components.js"></script>
<script src="dist/zt-react-components.js"></script>
<script>
function render(parent, element, props) {
ReactDOM.render(
React.createElement(element, props),
document.getElementById(parent)
);
}
</script>
</head>
<body>
<header>
<h1>
<span class="green">Zero</span>Turnaround React components
</h1>
</header>
<main>
<section>
<h2>Checkbox</h2>
<label id="unchecked-checkbox">
<script>render("unchecked-checkbox", Checkbox)</script>
Unchecked
</label>
<label id="checked-checkbox">
<script>render("checked-checkbox", Checkbox, {checked: true})</script>
Checked
</label>
<label id="error-checkbox">
<script>render("error-checkbox", Checkbox, {error: true})</script>
Error
</label>
<label id="disabled-checkbox">
<script>render("disabled-checkbox", Checkbox, {disabled: true})</script>
Disabled
</label>
<label id="large-checkbox" style="font-size: 14px">
<script>render("large-checkbox", Checkbox, {size: "large"})</script>
Large
</label>
</section>
</main>
<footer>
<a class="zt-link" href="https://zeroturnaround.com">
<img src="https://zeroturnaround.com/wp-content/uploads/2015/01/zt-ring.png" width="30" />
</a>
<a class="github-link" href="https://github.com/zeroturnaround/zt-react-components">
<img src="https://image.flaticon.com/icons/png/512/25/25231.png" width="30" />
</a>
</footer>
</body>
</html>