Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/about-us/components/about-us.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { h } from 'react-hyperscript-helpers';

import { PageContainer } from '@ktp/ui';

export const AboutPage = () => h(PageContainer, ['About Us']);
1 change: 1 addition & 0 deletions src/about-us/components/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './about-us';
1 change: 1 addition & 0 deletions src/about-us/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './components';
4 changes: 3 additions & 1 deletion src/about-us/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,7 @@
},
"author": "",
"license": "GPL-3.0",
"dependencies": {}
"dependencies": {
"@ktp/ui": "1.0.0"
}
}
1 change: 1 addition & 0 deletions src/app/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ require('es6-promise').polyfill();

const App = () => {
const store = configureStore();
window.store = store;

return h(Provider, { store }, [h(RouterConn)]);
};
Expand Down
12 changes: 12 additions & 0 deletions src/app/components/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import { Route, Switch } from 'react-router';

import { routes } from '../constants';
import { HomePage } from '@ktp/home';
import { AboutPage } from '@ktp/about-us';
import { ProDevPage } from '@ktp/pro-dev';
import { Login, Logout } from '@ktp/auth';

export const Routes = () =>
Expand All @@ -12,6 +14,16 @@ export const Routes = () =>
path: routes.HOME,
component: HomePage,
}),
h(Route, {
exact: true,
path: routes.ABOUT,
component: AboutPage,
}),
h(Route, {
exact: true,
path: routes.PRODEV,
component: ProDevPage,
}),
h(Route, {
exact: true,
path: routes.LOGIN,
Expand Down
1 change: 1 addition & 0 deletions src/app/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ export const routes = {
CONTACT: '/contact',
LOGIN: '/login',
LOGOUT: '/logout',
PRODEV: '/professional-development',
};
4 changes: 3 additions & 1 deletion src/app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
"@ktp/theme": "1.0.0",
"@ktp/user": "1.0.0",
"@ktp/home": "1.0.0",
"@ktp/auth": "1.0.0"
"@ktp/auth": "1.0.0",
"@ktp/about-us": "1.0.0",
"@ktp/pro-dev": "1.0.0"
}
}
1 change: 1 addition & 0 deletions src/pro-dev/components/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './pro-dev';
20 changes: 20 additions & 0 deletions src/pro-dev/components/pro-dev.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import { h } from 'react-hyperscript-helpers';
import { connect } from 'react-redux';

import { PageContainer, PageHeading } from '@ktp/ui';
import { getTheme } from '@ktp/theme';

export const ProDevPageBase = ({ theme }) =>
h(PageContainer, [
h(PageHeading, {
color: theme.lavender,
title: 'Professional Development',
subtitle: 'Be more professional',
}),
]);

const mapStateToProps = (state) => ({
theme: getTheme(state),
});

export const ProDevPage = connect(mapStateToProps)(ProDevPageBase);
1 change: 1 addition & 0 deletions src/pro-dev/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './components';
5 changes: 4 additions & 1 deletion src/pro-dev/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,8 @@
},
"author": "",
"license": "GPL-3.0",
"dependencies": {}
"dependencies": {
"@ktp/ui": "1.0.0",
"@ktp/theme": "1.0.0"
}
}