-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
173 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
.bold { | ||
font-weight: bold; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,59 @@ | ||
import Link from "next/link"; | ||
import dynamic from "next/dynamic"; | ||
|
||
import Table from "@/components/charts/Table"; | ||
import Button from "@/components/elements/Button"; | ||
import TileHeader from "@/components/elements/TileHeader"; | ||
|
||
import styles from './page.module.css' | ||
|
||
|
||
const LineChart = dynamic(() => import('@/components/charts/Line'), { | ||
ssr: false, // Disable server-side rendering, more info: https://nextjs.org/docs/messages/react-hydration-error | ||
}); | ||
|
||
export default function Home() { | ||
return ( | ||
<div> | ||
Accounts page | ||
</div> | ||
<main className="mainContainer"> | ||
<div className="gridItem span4Columns"> | ||
<h1>Accounts</h1> | ||
<p>List of all transactions on your checking and savings bank accounts. Here you can import new transactions.</p> | ||
</div> | ||
|
||
<div className="gridItem span2Columns"> | ||
<Button>ING - Osobiste</Button> | ||
<Button>ING - Wspólne</Button> | ||
<Button>ING - Oszczędnościowe</Button> | ||
<Button>mBank - Osobiste</Button> | ||
<Button>Alior - Firmowe</Button> | ||
<Button>Santander - Osobiste</Button> | ||
<Button>PKO - Dziwne</Button> | ||
<Button>Millenium - Oszczędnościowe</Button> | ||
</div> | ||
<div className="gridItem span2Columns"> | ||
<TileHeader headline="ING - Osobiste"> | ||
Short summary about selected bank account | ||
</TileHeader> | ||
<p><span className={styles.bold}>Bank: </span><Link href="https://www.mbank.pl">mBank</Link></p> | ||
<p><span className={styles.bold}>Account:</span> PL 123345451232342</p> | ||
<p><span className={styles.bold}>Account name:</span> eKonto</p> | ||
<p><span className={styles.bold}>Alias:</span> Osobiste</p> | ||
<p><span className={styles.bold}>Opened at:</span> 05-12-2016</p> | ||
<p><span className={styles.bold}>ID:</span>031b2574-f8c2-4b30-be2e-24f6d8b48ac0</p> | ||
</div> | ||
|
||
<div className="gridItem span2Columns"> | ||
<TileHeader headline="Transactions"> | ||
List of all transactions for specific account. | ||
</TileHeader> | ||
<Table style={{width: "90%"}}></Table> | ||
</div> | ||
<div className="gridItem span2Columns"> | ||
<TileHeader headline="Account History"> | ||
Glance into account balance. | ||
</TileHeader> | ||
<LineChart></LineChart> | ||
</div> | ||
</main> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
|
||
.buttonWrapper { | ||
margin-right: 20px; | ||
margin-bottom: 20px; | ||
display: inline-block; | ||
} | ||
|
||
.button30 { | ||
font-family: "Open Sans", sans-serif; | ||
font-size: 16px; | ||
letter-spacing: 2px; | ||
text-decoration: none; | ||
text-transform: uppercase; | ||
color: #000; | ||
cursor: pointer; | ||
border: 3px solid; | ||
padding: 0.25em 0.5em; | ||
box-shadow: 1px 1px 0px 0px, 2px 2px 0px 0px, 3px 3px 0px 0px, 4px 4px 0px 0px, 5px 5px 0px 0px; | ||
position: relative; | ||
user-select: none; | ||
-webkit-user-select: none; | ||
touch-action: manipulation; | ||
} | ||
|
||
.button30:active { | ||
box-shadow: 0px 0px 0px 0px; | ||
top: 5px; | ||
left: 5px; | ||
} | ||
|
||
@media (min-width: 768px) { | ||
.button30 { | ||
padding: 0.25em 0.75em; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { ReactNode } from "react" | ||
import classes from "./button.module.css" | ||
|
||
export default function Button({children}: {children: ReactNode}) { | ||
return ( | ||
<div className={classes.buttonWrapper}> | ||
<button className={classes.button30} role="button">{children}</button> | ||
</div> | ||
|
||
) | ||
} |