Skip to content
This repository has been archived by the owner on May 7, 2021. It is now read-only.

Commit

Permalink
Move out onboarding (major)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jorge Cuadra committed Sep 21, 2018
1 parent 7ada768 commit 08cd93e
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 63 deletions.
65 changes: 2 additions & 63 deletions pages/index.js
Original file line number Diff line number Diff line change
@@ -1,68 +1,7 @@
import Link from 'next/link';
import { Button } from 'rmwc/Button';
import { Typography, ListDivider } from 'rmwc';
import { TextField } from 'rmwc/TextField';
import Plan from '../src/plan/Plan';

const IndexPage = () => {
return (
<div>
<Typography use="headline4" tag="div" className="mx-4 my-4">
Installation
</Typography>
<Typography use="body1" tag="div" className="mx-4">
Minimal. This is a web app. Which means you can save it at your
homescreen or bookmark it. Nothing else required.
</Typography>

<Typography use="headline4" tag="div" className="mx-4 my-4">
Usage
</Typography>

<Typography use="subtitle1" tag="div" className="mx-4">
How to use this app
</Typography>

<Typography use="body1" tag="div" className="mx-4">
<ol>
<li>
Set your macro targets in{' '}
<Link href="/calculator">
<Button>Calculator</Button>
</Link>{' '}
</li>
<li>
In{' '}
<Link href="/recipes">
<Button theme="secondary">Recipes</Button>
</Link>{' '}
add 10 or more food recipes that you normally eat
</li>
<li>
In{' '}
<Link href="/plan">
<Button>Meal Plan</Button>
</Link>{' '}
Click the generate button to randomly generate combinations of your
recipes to hit your calories and macro goals per day
</li>
</ol>
</Typography>

<ListDivider />

<Typography use="headline5" tag="div" className="m-4">
Thoughts or suggestions?
</Typography>
<TextField
className="mx-4"
label="Suggestions"
name="suggestions"
defaultValue=""
textarea
rows="1"
/>
</div>
);
return <Plan />;
};

export default IndexPage;
53 changes: 53 additions & 0 deletions src/onboarding/Onboarding.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
import Link from 'next/link';
import { Button } from 'rmwc/Button';
import { Typography } from 'rmwc';

const Onboarding = () => {
return (
<div>
<Typography use="headline4" tag="div" className="mx-4 my-4">
Installation
</Typography>
<Typography use="body1" tag="div" className="mx-4">
Minimal. This is a web app. Which means you can save it at your
homescreen or bookmark it. Nothing else required.
</Typography>

<Typography use="headline4" tag="div" className="mx-4 my-4">
Usage
</Typography>

<Typography use="subtitle1" tag="div" className="mx-4">
How to use this app
</Typography>

<Typography use="body1" tag="div" className="mx-4">
<ol>
<li>
Set your macro targets in{' '}
<Link href="/calculator">
<Button>Calculator</Button>
</Link>{' '}
</li>
<li>
In{' '}
<Link href="/recipes">
<Button theme="secondary">Recipes</Button>
</Link>{' '}
add 10 or more food recipes that you normally eat
</li>
<li>
In{' '}
<Link href="/plan">
<Button>Meal Plan</Button>
</Link>{' '}
Click the generate button to randomly generate combinations of your
recipes to hit your calories and macro goals per day
</li>
</ol>
</Typography>
</div>
);
};

export default Onboarding;

0 comments on commit 08cd93e

Please sign in to comment.