Skip to content

Commit

Permalink
componetize homepage (#121)
Browse files Browse the repository at this point in the history
  • Loading branch information
jbolda authored Aug 23, 2019
1 parent 47fb78a commit efd8747
Showing 1 changed file with 60 additions and 53 deletions.
113 changes: 60 additions & 53 deletions src/pages/homepage/index.js
Original file line number Diff line number Diff line change
@@ -1,65 +1,72 @@
import React from 'react';
import { Link } from '@reach/router';
import { State } from '../../state';
import { Box, Flex, Heading, Text } from 'rebass';

const Homepage = () => (
<State.Consumer>
{model => (
<React.Fragment>
<section className="hero is-large is-primary is-bold">
<div className="hero-body">
<div className="container">
<h1 className="title">finatr</h1>
<h2 className="subtitle">
helping you analyze your future cash flows
</h2>
<Box
sx={{
maxWidth: 512,
mx: 'auto',
px: 5
}}
>
<Heading fontSize={[5, 6, 7]} color="primary">
finatr
</Heading>
<Text fontSize={[3, 4, 5]} color="primary">
helping you analyze your future cash flows
</Text>
</Box>
<Flex>
<Box p={5} width={1 / 2}>
<aside className="menu">
<Text fontSize={[3, 4, 5]} color="primary">
Pages
</Text>
<ul>
<li>
<Link to="examples">Examples</Link>
</li>
<li>
<Link to="flow">Cash Flow</Link>
</li>
<li>
<Link to="accounts">Accounts (Cash Flow Breakdown)</Link>
</li>
<li>
<Link to="import">Import (Bring Data In, Take It Out)</Link>
</li>
<li>
<Link to="taxes">Taxes (in alpha)</Link>
</li>
</ul>
</aside>
</Box>
<Box p={5} width={1 / 2}>
<Text fontSize={[3, 4, 5]} color="primary">
About
</Text>
<div className="content">
Most apps track your historical information and help you set up a
budget. Argueably, budgets don't work for everyone. Even if you
maintain a budget, it is still of great value to look to the
future. The first version focuses on the near future checking that
the inflows and outflows in your accounts are satisfactory.
Essentially, will my accounts stay above zero with the planned
expenditures. Tied into that, we need to understand a deal with
variable debt payments (see credit cards) as future flows are more
involved then a simple monthly payment you might see with a
mortgage or a student loan payment. The next step from this is
returning information regarding these flows such as a daily income
and daily expenses. This type of information can be built upon
going forward to forecast considerations like FI(RE).
</div>
</div>
</section>
<section className="section">
<div className="columns is-centered">
<div className="column is-one-quarter">
<aside className="menu">
<p className="menu-label">Pages</p>
<ul className="menu-list">
<li>
<Link to="examples">Examples</Link>
</li>
<li>
<Link to="flow">Cash Flow</Link>
</li>
<li>
<Link to="accounts">Accounts (Cash Flow Breakdown)</Link>
</li>
<li>
<Link to="import">Import (Bring Data In, Take It Out)</Link>
</li>
<li>
<Link to="taxes">Taxes (in alpha)</Link>
</li>
</ul>
</aside>
</div>
<div className="column is-half">
<p className="title">About</p>
<div className="content">
Most apps track your historical information and help you set up
a budget. Argueably, budgets don't work for everyone. Even if
you maintain a budget, it is still of great value to look to the
future. The first version focuses on the near future checking
that the inflows and outflows in your accounts are satisfactory.
Essentially, will my accounts stay above zero with the planned
expenditures. Tied into that, we need to understand a deal with
variable debt payments (see credit cards) as future flows are
more involved then a simple monthly payment you might see with a
mortgage or a student loan payment. The next step from this is
returning information regarding these flows such as a daily
income and daily expenses. This type of information can be built
upon going forward to forecast considerations like FI(RE).
</div>
</div>
</div>
</section>
</Box>
</Flex>
</React.Fragment>
)}
</State.Consumer>
Expand Down

0 comments on commit efd8747

Please sign in to comment.