diff --git a/website/core/button.js b/website/core/button.js
new file mode 100644
index 0000000..597088d
--- /dev/null
+++ b/website/core/button.js
@@ -0,0 +1,19 @@
+const React = require('react');
+
+class Button extends React.Component {
+ render() {
+ return (
+
+ );
+ }
+}
+
+Button.defaultProps = {
+ target: '_self',
+};
+
+module.exports = Button;
diff --git a/website/core/homeSplash.js b/website/core/homeSplash.js
new file mode 100644
index 0000000..543547e
--- /dev/null
+++ b/website/core/homeSplash.js
@@ -0,0 +1,50 @@
+const React = require('react');
+const Button = require('./button');
+const utils = require('./utils');
+
+const siteConfig = require(process.cwd() + '/siteConfig.js');
+
+const SplashContainer = props => (
+
+);
+
+const ProjectTitle = () => (
+
+ {siteConfig.title}
+ {siteConfig.tagline}
+
+);
+
+const PromoSection = props => (
+
+);
+
+class HomeSplash extends React.Component {
+ render() {
+ let language = this.props.language || '';
+
+ return (
+
+ {/* */}
+
+
+
+ Try It Out
+ Live Demo
+ Docs
+
+
+
+ );
+ }
+}
+
+module.exports = HomeSplash;
diff --git a/website/core/utils/index.js b/website/core/utils/index.js
new file mode 100644
index 0000000..a1b35f6
--- /dev/null
+++ b/website/core/utils/index.js
@@ -0,0 +1,19 @@
+const siteConfig = require(process.cwd() + '/siteConfig.js');
+
+const imgUrl = (img) => {
+ return siteConfig.baseUrl + 'img/' + img;
+}
+
+const docUrl = (doc, language) => {
+ return siteConfig.baseUrl + 'docs/' + (language ? language + '/' : '') + doc;
+}
+
+const pageUrl = (page, language) => {
+ return siteConfig.baseUrl + (language ? language + '/' : '') + page;
+}
+
+module.exports = {
+ imgUrl,
+ docUrl,
+ pageUrl
+}
diff --git a/website/pages/en/index.js b/website/pages/en/index.js
index d17369b..a9046b5 100755
--- a/website/pages/en/index.js
+++ b/website/pages/en/index.js
@@ -7,116 +7,49 @@
const React = require('react');
+// Built-in library
const CompLibrary = require('../../core/CompLibrary.js');
-const MarkdownBlock = CompLibrary.MarkdownBlock; /* Used to read markdown */
const Container = CompLibrary.Container;
const GridBlock = CompLibrary.GridBlock;
-const siteConfig = require(process.cwd() + '/siteConfig.js');
-
-function imgUrl(img) {
- return siteConfig.baseUrl + 'img/' + img;
-}
-
-function docUrl(doc, language) {
- return siteConfig.baseUrl + 'docs/' + (language ? language + '/' : '') + doc;
-}
-
-function pageUrl(page, language) {
- return siteConfig.baseUrl + (language ? language + '/' : '') + page;
-}
-
-class Button extends React.Component {
- render() {
- return (
-
- );
- }
-}
-
-Button.defaultProps = {
- target: '_self',
-};
-
-const SplashContainer = props => (
-
-);
-
-const Logo = props => (
-
-
-
-);
-
-const ProjectTitle = props => (
-
- {siteConfig.title}
- {siteConfig.tagline}
-
-);
-
-const PromoSection = props => (
-
-);
-
-class HomeSplash extends React.Component {
- render() {
- let language = this.props.language || '';
- return (
-
- {/* */}
-
-
-
- Try It Out
- Live Demo
- Docs
-
-
-
- );
- }
-}
+// Customized component and utils
+const HomeSplash = require(process.cwd() + '/core/homeSplash.js');
+const utils = require(process.cwd() + '/core/utils');
+const imgUrl = utils.imgUrl;
const Block = props => (
-
+ background={props.background}
+ >
+
);
-const Features = props => (
-
+const Features = () => (
+
{[
{
content: 'Sortable, Row Selection, Cell Editor, Row Expand, Column Filter Pagination etc.',
- // image: imgUrl('docusaurus.svg'),
+ image: imgUrl('icon/bulb.svg'),
imageAlign: 'top',
title: 'Rich Functionality',
},
{
content: 'Configurable and customizable table',
- // image: imgUrl('docusaurus.svg'),
+ image: imgUrl('icon/tool.svg'),
imageAlign: 'top',
title: 'Customization',
},
{
content: 'Satisfy for Redux/Mobx or any other state management tool.',
- // image: imgUrl('docusaurus.svg'),
+ image: imgUrl('icon/store.svg'),
imageAlign: 'top',
title: 'Remote',
},
@@ -124,20 +57,11 @@ const Features = props => (
);
-// const FeatureCallout = props => (
-//
-//
Feature Callout
-// These are features of this project
-//
-// );
-
-const LearnHow = props => (
+const LearnHow = () => (
{[
{
- content: 'Intuitive to use. Compatitable for Bootstrap 3 and 4. Better than legacy react-bootstrap-table2!! ',
+ content: 'Intuitive to use. Compatible for Bootstrap 3 and 4. Better than legacy react-bootstrap-table2!! ',
image: imgUrl('react-bootstrap-table2-sample.png'),
imageAlign: 'right',
title: 'react-bootstrap-table2',
@@ -146,62 +70,6 @@ const LearnHow = props => (
);
-const TryOut = props => (
-
- {[
- {
- content: 'Talk about trying this out',
- image: imgUrl('docusaurus.svg'),
- imageAlign: 'left',
- title: 'Try it Out',
- },
- ]}
-
-);
-
-const Description = props => (
-
- {[
- {
- content: 'This is another description of how this project is useful',
- image: imgUrl('docusaurus.svg'),
- imageAlign: 'right',
- title: 'Description',
- },
- ]}
-
-);
-
-const Showcase = props => {
- if ((siteConfig.users || []).length === 0) {
- return null;
- }
- const showcase = siteConfig.users
- .filter(user => {
- return user.pinned;
- })
- .map((user, i) => {
- return (
-
-
-
- );
- });
-
- return (
-
-
{"Who's Using This?"}
-
This project is used by all these people
-
{showcase}
-
-
- );
-};
-
class Index extends React.Component {
render() {
let language = this.props.language || '';
@@ -211,11 +79,7 @@ class Index extends React.Component {
- {/* */}
- {/*
-
- */}
);
diff --git a/website/static/css/custom.css b/website/static/css/custom.css
index 220c1dd..8f7e870 100644
--- a/website/static/css/custom.css
+++ b/website/static/css/custom.css
@@ -13,4 +13,8 @@
}
@media only screen and (min-width: 1500px) {
-}
\ No newline at end of file
+}
+
+.feature-block .blockImage img {
+ width: 48px;
+}
diff --git a/website/static/img/icon/bulb.svg b/website/static/img/icon/bulb.svg
new file mode 100644
index 0000000..3861a54
--- /dev/null
+++ b/website/static/img/icon/bulb.svg
@@ -0,0 +1,4 @@
+
+
+
+
diff --git a/website/static/img/icon/store.svg b/website/static/img/icon/store.svg
new file mode 100644
index 0000000..cecd62e
--- /dev/null
+++ b/website/static/img/icon/store.svg
@@ -0,0 +1,4 @@
+
+
+
+
diff --git a/website/static/img/icon/tool.svg b/website/static/img/icon/tool.svg
new file mode 100644
index 0000000..1ee2297
--- /dev/null
+++ b/website/static/img/icon/tool.svg
@@ -0,0 +1,4 @@
+
+
+
+