-
Notifications
You must be signed in to change notification settings - Fork 11
/
index.html
134 lines (122 loc) · 4.53 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>React Tabbordion Component Demo</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css" rel="stylesheet" />
<link href="https://cdnjs.cloudflare.com/ajax/libs/normalize/3.0.3/normalize.min.css" rel="stylesheet" />
<link href="./style/index.css" rel="stylesheet" />
<link href="./demo/accordion.css" rel="stylesheet" />
<link href="./demo/option-list.css" rel="stylesheet" />
<link href="./demo/traditional-tabs.css" rel="stylesheet" />
<style>
html {
background: #4C5D6A;
color: #F1F1F1;
}
body {
margin: 2em auto;
padding: 2em 3em;
max-width: 40em;
}
a:link,
a:visited {
color: #1698CE;
text-decoration: none;
}
a:hover,
a:focus {
outline: none;
text-decoration: underline;
}
footer {
background: #253447;
border-radius: 3px;
color: #FAFAFA;
font-size: 0.875em;
font-style: italic;
margin-top: 2em;
padding: 1em;
text-align: center;
}
.about a:link,
.about a:visited,
footer a:link,
footer a:visited {
color: #5AC1ED;
}
footer .fa-stack-1x {
color: #363636;
}
footer .fa-stack-2x {
color: #FAFAFA;
}
footer .fa-download {
color: #1C720E;
}
.demo {
clear: both;
padding: 1em;
}
.about {
list-style: square;
margin: 1em 2em 2em;
}
.about__title {
display: list-item;
font-weight: bold;
}
.about__content {
margin: 0 0 2em;
padding: 0;
}
</style>
</head>
<body>
<h1>React Tabbordion Demo</h1>
<div id="app"></div>
<h2>Things to notice</h2>
<dl class="about">
<dt class="about__title">No forced default styles</dt>
<dd class="about__content">
<p><strong>You</strong> do the styles. Or you rip these demo styles and customize.</p>
</dd>
<dt class="about__title">No forced classnames</dt>
<dd class="about__content">
<p>Tabbordion defaults to <a href="https://css-tricks.com/bem-101/">BEM style</a> classes:
panel, panel__state, panel__title, panel__content, panel__animator… and does the hard work of
adding enough modifiers to make styling easy!</p>
<p>As you can see by looking at <a href="./demo/app.js">demo app.js</a> or
<a href="./demo/accordion.css">CSS files</a> these are customizable and even removable.</p>
<p>If you want to read about Tabbordion's class naming logic more there is
<a href="http://codepen.io/Merri/blog/advanced-bem-with-react-components">Advanced BEM with React
components</a> article over at CodePen.</p>
</dd>
<dt class="about__title">No dependencies</dt>
<dd class="about__content">
<p>This demo uses <a href="http://fortawesome.github.io/Font-Awesome/">Font Awesome</a> in Accordion
styles and <a href="http://necolas.github.io/normalize.css/">Normalize.css</a> to unite rendering
across browsers. Because default styles are not enforced you don't need to rip these away if you don't
happen to like or otherwise need them.</p>
</dd>
</dl>
<footer>
<nav>
<a href="https://github.com/Merri/react-tabbordion"><span class="fa-stack fa-lg">
<i class="fa fa-circle fa-stack-2x"></i><i class="fa fa-github fa-stack-1x fa-lg"></i>
</span> GitHub: react-tabbordion</a>
|
<a href="https://www.npmjs.com/package/react-tabbordion"><span class="fa-stack fa-lg">
<i class="fa fa-circle fa-stack-2x"></i><i class="fa fa-download fa-stack-1x fa-lg"></i>
</span> npm: react-tabbordion</a>
</nav>
</footer>
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/16.10.2/umd/react.production.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/react-dom/16.10.2/umd/react-dom.production.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/create-react-class.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/prop-types/15.7.2/prop-types.min.js"></script>
<script src="./dist/umd/react-tabbordion.js"></script>
<script src="./demo/app.js"></script>
</body>
</html>