forked from Objectivco/component-library
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
309 lines (102 loc) · 13.9 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
297
298
299
300
301
302
303
304
305
306
307
308
309
<!DOCTYPE html>
<html lang="en-us">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1">
<link rel="shortcut icon" href="/component-library/assets/img/favicon.ico" type="image/x-icon">
<link rel="apple-touch-icon" href="/component-library/assets/img/apple-touch-icon.ico" type="image/x-icon">
<title>Objectiv Component Library</title>
<link rel="stylesheet" href="/component-library/assets/css/main.css">
<link rel="stylesheet" href="//fonts.googleapis.com/css?family=PT+Sans:400,700,400italic,700italic|PT+Mono&subset=latin,cyrillic">
<script type="text/javascript" src="//use.typekit.net/xqd0gpb.js"></script>
<script type="text/javascript">try{Typekit.load();}catch(e){}</script>
<!-- Google Analytics to go here -->
</head>
<body class="page-default">
<div class="SiteContainer">
<nav class="SiteNav">
<div class="Logo">
<a href="/component-library/">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 288 69.08"><defs><style>.a{fill:#fff;}</style></defs><title>objectiv-wordmark-white-fill</title><path class="a" d="M81.5,17.31a19.44,19.44,0,0,0-8.06-1.86c-4.27,0-8.14,1.17-11.1,4.34V4H50.89V55h11V50.95H62c2,3.72,7,5.38,11,5.38,11.93,0,19.3-9.17,19.3-20.68C92.25,27.72,88.87,20.75,81.5,17.31ZM71.22,45.64c-5.58,0-9.31-4.41-9.31-9.86a9.45,9.45,0,1,1,18.89.07A9.52,9.52,0,0,1,71.22,45.64Z"/><path class="a" d="M98.81,53.74c0,3-.21,5.79-4.07,5.79H93.22v9.55h2.83c11.17,0,14.2-4.34,14.2-14.89V16.75H98.81Z"/><path class="a" d="M137.07,15.44C125.83,15.44,117,24.89,117,36a20.3,20.3,0,0,0,20.27,20.27c8.62,0,15.37-5.58,18.68-13.24H144.24a8.21,8.21,0,0,1-7,3.59c-4.48,0-8.27-2.69-9-7.24H157a15,15,0,0,0,.28-3C157.27,24.82,148.79,15.44,137.07,15.44Zm-8.62,16.2c.9-4.14,4.55-6.55,8.69-6.55s7.79,2.41,8.69,6.55Z"/><path class="a" d="M182.37,45.57c-5.58,0-9.1-4.34-9.1-9.72,0-5.17,3.31-9.72,8.82-9.72a8.81,8.81,0,0,1,8.55,5.38h11.58c-2-9.72-10.48-16.06-20.27-16.06a20.08,20.08,0,0,0-20.2,20.34,20.55,20.55,0,0,0,40.54,4.69H190.64A8.8,8.8,0,0,1,182.37,45.57Z"/><polygon class="a" points="222.29 4 210.85 4 210.85 16.75 205.2 16.75 205.2 25.76 210.85 25.76 210.85 55.02 222.29 55.02 222.29 25.76 227.81 25.76 227.81 16.75 222.29 16.75 222.29 4"/><rect class="a" x="232.78" y="16.75" width="11.44" height="38.26"/><polygon class="a" points="276.14 16.75 268.83 40.61 268.7 40.61 261.39 16.75 249.53 16.75 263.25 55.02 274.21 55.02 288 16.75 276.14 16.75"/><circle class="a" cx="104.53" cy="6.45" r="6.45"/><circle class="a" cx="238.5" cy="6.45" r="6.45"/><path class="a" d="M18.72,3A26.39,26.39,0,0,0,0,10.79l8.39,8.39A14.6,14.6,0,1,1,29,39.83l8.39,8.39A26.47,26.47,0,0,0,18.72,3Z"/><path class="a" d="M4.12,29.51A14.6,14.6,0,0,0,29,39.83L8.39,19.18A14.56,14.56,0,0,0,4.12,29.51Z"/></svg>
</a>
</div>
<h1 class="screen-reader-text">Objectiv Component Library</h1>
<aside>
<div class="CategoryLinks">
<div class="CategoryLink">
<h4>UI</h4>
<ul class="ComponentList">
<li class="ComponentList-item"><a href="/component-library/component/accordion/index.html">Accordion</a></li>
<li class="ComponentList-item"><a href="/component-library/component/tabs/index.html">Tabs</a></li>
</ul>
</div>
<div class="CategoryLink">
<h4>Navigation</h4>
<ul class="ComponentList">
<li class="ComponentList-item"><a href="/component-library/component/mobile-menu/index.html">Mobile Menu</a></li>
</ul>
</div>
<div class="CategoryLink">
<h4>Content</h4>
<ul class="ComponentList">
<li class="ComponentList-item"><a href="/component-library/component/blogpost/index.html">Blog Post</a></li>
<li class="ComponentList-item"><a href="/component-library/component/blogroll/index.html">Blog Roll</a></li>
<li class="ComponentList-item"><a href="/component-library/component/book/index.html">Book</a></li>
<li class="ComponentList-item"><a href="/component-library/component/person/index.html">Person</a></li>
<li class="ComponentList-item"><a href="/component-library/component/property/index.html">Property</a></li>
<li class="ComponentList-item"><a href="/component-library/component/testimonial/index.html">Testimonial</a></li>
</ul>
</div>
<div class="CategoryLink">
<h4>Twig</h4>
<ul class="ComponentList">
<li class="ComponentList-item"><a href="/component-library/component/macros/index.html">Macros</a></li>
</ul>
</div>
</aside>
</nav>
<main class="SiteContent">
<h1 id="site-components">Site Components</h1>
<p>We were so inspired by 10up’s Component library that we decided to build our own. Since 10up opensourced their component library, we’ve taken the parts about it that we love and incorporated it to work really well with our new starter theme.</p>
<h3 id="our-setup">Our setup</h3>
<p>Our setup is most likely different from yours, so there will be some difference in how we handle some things from what you might prefer. We have tried to implement an overall structure that can be utilized within different formats. For example, we are switching to working primarily with <a href="https://www.upstatement.com/timber/">Timber</a> and <a href="https://twig.sensiolabs.org/">Twig</a> for building our these. You will see markup snippets for each component with Twig samples.</p>
<p>We also use <a href="http://advancedcustomfields.com">Advanced Custom Fields (ACF)</a> for handling all of our custom fields. For components that might require some ACF fields, we will be providing the field IDs that will work with the code snippets and the types of fields that we recommend.</p>
<p>One other thing that you might notice that is strange is the way we write our classes. We have been following the <a href="https://suitcss.github.io/">Suit CSS</a> methodology. We find it more readable and follows the component structure found in many new Javascript libraries.</p>
<div class="Categories">
<div class="Category">
<h2>UI</h2>
<ul class="ComponentList">
<li class="ComponentList-item"><a href="/component-library/component/accordion/index.html">Accordion</a></li>
<li class="ComponentList-item"><a href="/component-library/component/tabs/index.html">Tabs</a></li>
</ul>
</div>
<div class="Category">
<h2>Navigation</h2>
<ul class="ComponentList">
<li class="ComponentList-item"><a href="/component-library/component/mobile-menu/index.html">Mobile Menu</a></li>
</ul>
</div>
<div class="Category">
<h2>Content</h2>
<ul class="ComponentList">
<li class="ComponentList-item"><a href="/component-library/component/blogpost/index.html">Blog Post</a></li>
<li class="ComponentList-item"><a href="/component-library/component/blogroll/index.html">Blog Roll</a></li>
<li class="ComponentList-item"><a href="/component-library/component/book/index.html">Book</a></li>
<li class="ComponentList-item"><a href="/component-library/component/person/index.html">Person</a></li>
<li class="ComponentList-item"><a href="/component-library/component/property/index.html">Property</a></li>
<li class="ComponentList-item"><a href="/component-library/component/testimonial/index.html">Testimonial</a></li>
</ul>
</div>
<div class="Category">
<h2>Twig</h2>
<ul class="ComponentList">
<li class="ComponentList-item"><a href="/component-library/component/macros/index.html">Macros</a></li>
</ul>
</div>
</div>
</main>
</div>
<script src="/component-library/assets/js/main.js"></script>
</body>
</html>