forked from sjoerdapp/styleguide2
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsplash.js
More file actions
39 lines (34 loc) · 1.4 KB
/
Copy pathsplash.js
File metadata and controls
39 lines (34 loc) · 1.4 KB
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
import React, {Component} from 'react';
import {Button} from '../../src/index';
import styles from '../index.styl';
import classNames from 'classnames/bind';
import charming from 'charming';
const cx = classNames.bind(styles);
export default React.createClass({
componentDidMount: function() {
var element = document.querySelectorAll('.letjs')[0];
charming(element);
var element2 = document.querySelectorAll('.letjs')[1];
charming(element2);
},
render: function() {
return (
<div data-group="splash" className={cx("splash", "active")}>
<div className={cx("splash", "theme-dark")}>
<div className={cx("splash-intro")}>
<div className={cx("lines")}>
<span className={cx("line-1")} />
<span className={cx("line-2")} />
<span className={cx("line-3")} />
<span className={cx("line-4")} />
</div>
<h1 className={cx("lettering-js", 'letjs')}>Styleguide Boilerplate</h1>
<p className={cx("lettering-js", 'letjs')}>Professional frontend styleguide made in ReactJS to improve the development of web applications.</p>
<Button className={cx("btn", "btn-success")} size="large" type="primary">Get Started</Button>
<Button className={cx("btn", "btn-default")} size="large">Fork from github</Button>
</div>
</div>
</div>
);
}
});