basic checkout page prototype
This commit is contained in:
parent
7e3704b3a2
commit
1fa3ce4e50
5 changed files with 35 additions and 0 deletions
|
@ -35,6 +35,7 @@ import TopPage from 'page/top';
|
||||||
import Welcome from 'page/welcome';
|
import Welcome from 'page/welcome';
|
||||||
import CreatorDashboard from 'page/creatorDashboard';
|
import CreatorDashboard from 'page/creatorDashboard';
|
||||||
import RewardsVerifyPage from 'page/rewardsVerify';
|
import RewardsVerifyPage from 'page/rewardsVerify';
|
||||||
|
import CheckoutPage from 'page/checkoutPage';
|
||||||
import { parseURI } from 'lbry-redux';
|
import { parseURI } from 'lbry-redux';
|
||||||
import { SITE_TITLE, WELCOME_VERSION } from 'config';
|
import { SITE_TITLE, WELCOME_VERSION } from 'config';
|
||||||
|
|
||||||
|
@ -174,6 +175,7 @@ function AppRouter(props: Props) {
|
||||||
<Route path={`/$/${PAGES.TOP}`} exact component={TopPage} />
|
<Route path={`/$/${PAGES.TOP}`} exact component={TopPage} />
|
||||||
<Route path={`/$/${PAGES.SETTINGS}`} exact component={SettingsPage} />
|
<Route path={`/$/${PAGES.SETTINGS}`} exact component={SettingsPage} />
|
||||||
<Route path={`/$/${PAGES.INVITE}/:referrer`} exact component={InvitedPage} />
|
<Route path={`/$/${PAGES.INVITE}/:referrer`} exact component={InvitedPage} />
|
||||||
|
<Route path={`/$/${PAGES.CHECKOUT}`} exact component={CheckoutPage} />
|
||||||
|
|
||||||
<PrivateRoute {...props} path={`/$/${PAGES.INVITE}`} component={InvitePage} />
|
<PrivateRoute {...props} path={`/$/${PAGES.INVITE}`} component={InvitePage} />
|
||||||
<PrivateRoute {...props} path={`/$/${PAGES.PUBLISHED}`} component={FileListPublished} />
|
<PrivateRoute {...props} path={`/$/${PAGES.PUBLISHED}`} component={FileListPublished} />
|
||||||
|
|
|
@ -35,3 +35,4 @@ exports.EMBED = 'embed';
|
||||||
exports.TOP = 'top';
|
exports.TOP = 'top';
|
||||||
exports.WELCOME = 'welcome';
|
exports.WELCOME = 'welcome';
|
||||||
exports.CREATOR_DASHBOARD = 'dashboard';
|
exports.CREATOR_DASHBOARD = 'dashboard';
|
||||||
|
exports.CHECKOUT = 'checkout';
|
||||||
|
|
2
ui/page/checkoutPage/index.js
Normal file
2
ui/page/checkoutPage/index.js
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
import CheckoutPage from './view';
|
||||||
|
export default CheckoutPage;
|
26
ui/page/checkoutPage/view.jsx
Normal file
26
ui/page/checkoutPage/view.jsx
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
// @flow
|
||||||
|
import * as React from 'react';
|
||||||
|
import Page from 'component/page';
|
||||||
|
import Button from 'component/button';
|
||||||
|
import Card from 'component/common/card';
|
||||||
|
|
||||||
|
export default function CheckoutPage() {
|
||||||
|
return (
|
||||||
|
<Page authPage className="main--auth-page">
|
||||||
|
<Card
|
||||||
|
title={__('Checkout')}
|
||||||
|
subtitle={__('Your card contains 1 item.')}
|
||||||
|
body={
|
||||||
|
<div className="card--inline card--section card--highlighted">
|
||||||
|
<strong>{__('lbry.tv Premium - 1 month')}</strong>
|
||||||
|
</div>
|
||||||
|
}
|
||||||
|
actions={
|
||||||
|
<div className="section__actions">
|
||||||
|
<Button button="primary" label={__('Checkout')} />
|
||||||
|
</div>
|
||||||
|
}
|
||||||
|
/>
|
||||||
|
</Page>
|
||||||
|
);
|
||||||
|
}
|
|
@ -38,6 +38,10 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.card--highlighted {
|
||||||
|
background-color: var(--color-card-background-highlighted);
|
||||||
|
}
|
||||||
|
|
||||||
.card--claim-preview-wrap {
|
.card--claim-preview-wrap {
|
||||||
@extend .card;
|
@extend .card;
|
||||||
margin: var(--spacing-xlarge) 0;
|
margin: var(--spacing-xlarge) 0;
|
||||||
|
|
Loading…
Reference in a new issue