forked from jpedroschmitz/typescript-nextjs-starter
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathindex.tsx
37 lines (34 loc) · 1016 Bytes
/
index.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
import Head from 'next/head';
import { Table } from '@/components/Table';
import { PrimaryButton } from '@/components/PrimaryButton';
import { SelectFileContainer } from '@/containers/SelectFileContainer';
import styled from 'styled-components';
const StyledFileInput = styled.input`
border: 1px solid #979797;
border-radius: 6px;
padding: 12px 24px;
margin: 12px 0;
`;
const StyledButtonWrapper = styled.div`
display: flex;
`;
export default function Home() {
return (
<div>
<Head>
<title>Coding Challenge</title>
<link rel="icon" href="/favicon.ico" />
</Head>
<SelectFileContainer headline="Select a file">
<StyledFileInput type="file" />
<StyledButtonWrapper>
<PrimaryButton>Reset File</PrimaryButton>
<PrimaryButton>Save File</PrimaryButton>
</StyledButtonWrapper>
</SelectFileContainer>
<Table
columns={[`Filename`, `File Size`, `Last Modified`, `File Format`, ``]}
/>
</div>
);
}