diff --git a/src/universal/partials/Welcome/PartialCards.js b/src/universal/partials/Welcome/PartialCards.js
new file mode 100644
index 0000000..b679102
--- /dev/null
+++ b/src/universal/partials/Welcome/PartialCards.js
@@ -0,0 +1,70 @@
+import React from 'react';
+import groupBy from 'lodash/groupBy';
+import ReactDOMServer from 'react-dom/server';
+import { ServerStyleSheet } from 'styled-components';
+
+import partials from './partials';
+const STATUS_COLOR = {
+ live: '#8dc63f',
+ dev: '#FF6000',
+ page: '#00abff',
+ 1: '#9b59b6',
+ 2: '#c0392b',
+ 3: '#16a085'
+};
+
+const sheet = new ServerStyleSheet();
+
+const Welcome = () => {
+ const { live = [], dev = [], page = [], ...others } = groupBy(partials, item => item.status);
+
+ const renderItem = ({ item, status, title }) => (
+
+
+
+
{item.name}
+
+ {status === 'page' ? 'Multiple partials' : 'Single partial'}
+
+
+
+
+ );
+
+ const renderGroup = ({ title, data, status }) => {
+ return (
+
+
+
+ {title.toUpperCase()} ({data.length})
+
+
+
{data.map(item => renderItem({ item, status, title }))}
+
+ );
+ };
+
+ return (
+
+ {page.length > 0 && renderGroup({ title: 'page', data: page, status: 'page' })}
+ {live.length > 0 && renderGroup({ title: 'live', data: live, status: 'live' })}
+ {dev.length > 0 && renderGroup({ title: 'dev', data: dev, status: 'dev' })}
+ {Object.entries(others).map((entity, index) => {
+ const [key, data] = entity;
+ return renderGroup({ title: key, data, status: index + 1 });
+ })}
+
+ );
+};
+export default ReactDOMServer.renderToString(sheet.collectStyles());
+const styleTags = sheet.getStyleTags();
+
+export { styleTags };
diff --git a/src/universal/partials/Welcome/PartialList.js b/src/universal/partials/Welcome/PartialList.js
deleted file mode 100644
index fd90e8b..0000000
--- a/src/universal/partials/Welcome/PartialList.js
+++ /dev/null
@@ -1,52 +0,0 @@
-import React from 'react';
-import groupBy from 'lodash/groupBy';
-import ReactDOMServer from 'react-dom/server';
-import { ServerStyleSheet } from 'styled-components';
-
-import { List, ListItem, Name, Url, Footer, Label, Dot, Link, HeaderName } from './styled';
-import partials from './partials';
-
-const sheet = new ServerStyleSheet();
-
-const Welcome = () => {
- const { live = [], dev = [], page = [], ...others } = groupBy(partials, item => item.status);
-
- const renderItem = ({ item, status }) => (
-
-
- {item.name}
- {item.url}
-
-
-
- );
-
- const renderGroup = ({ title, value, status }) => {
- return (
- <>
- {title}
- {value.map(item => renderItem({ item, status }))}
- >
- );
- };
-
- return (
-
- {page.length > 0 && renderGroup({ title: 'page', value: page, status: 'page' })}
- {live.length > 0 && renderGroup({ title: 'live', value: live, status: 'live' })}
- {dev.length > 0 && renderGroup({ title: 'dev', value: dev, status: 'dev' })}
- {Object.entries(others).map((entity, index) => {
- const [key, value] = entity;
- return renderGroup({ title: key, value, status: index + 1 });
- })}
-
- );
-};
-export default ReactDOMServer.renderToString(sheet.collectStyles());
-const styleTags = sheet.getStyleTags();
-
-export { styleTags };
diff --git a/src/universal/partials/Welcome/Welcome.js b/src/universal/partials/Welcome/Welcome.js
index 173aff5..97413c4 100644
--- a/src/universal/partials/Welcome/Welcome.js
+++ b/src/universal/partials/Welcome/Welcome.js
@@ -1,4 +1,7 @@
-import PartialList, { styleTags } from './PartialList';
+import PartialCards from './PartialCards';
+import welcomeStyle from './welcomeStyle';
+
+import voltranConfig from '../../../../voltran.config';
export default () => {
return `
@@ -6,23 +9,69 @@ export default () => {
Welcome
-
- ${styleTags}
+ ${welcomeStyle()}
- ${PartialList}
+
+
+
+