-
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
David Foster
committed
Apr 1, 2023
1 parent
d53a9eb
commit c46c0f0
Showing
8 changed files
with
863 additions
and
32 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,5 @@ | ||
/// <reference types="next" /> | ||
/// <reference types="next/image-types/global" /> | ||
|
||
// NOTE: This file should not be edited | ||
// see https://nextjs.org/docs/basic-features/typescript for more information. |
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,5 +1,17 @@ | ||
import '@/styles/globals.css' | ||
import '/styles/globals.css' | ||
import { Inter } from 'next/font/google' | ||
|
||
const inter = Inter({ subsets: ['latin'] }) | ||
|
||
export default function App({ Component, pageProps }) { | ||
return <Component {...pageProps} /> | ||
} | ||
return ( | ||
<> | ||
<style jsx global>{` | ||
html { | ||
font-family: ${inter.style.fontFamily}; | ||
} | ||
`}</style> | ||
<Component {...pageProps} /> | ||
</> | ||
) | ||
} |
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 |
---|---|---|
@@ -1,3 +1,37 @@ | ||
import styles from '/styles/Home.module.css' | ||
import Button from '@mui/material/Button'; | ||
import Select from '@mui/material/Select'; | ||
import FormControl from '@mui/material/FormControl'; | ||
import MenuItem from '@mui/material/MenuItem'; | ||
import TextField from '@mui/material/TextField'; | ||
import HomeIcon from '@mui/icons-material/Home'; | ||
import Link from 'next/link' | ||
import InputLabel from '@mui/material/InputLabel'; | ||
|
||
|
||
export default function Home() { | ||
|
||
return ( | ||
<> | ||
<main className={styles.main}> | ||
<Link className={styles.home} href="/"> | ||
<Button variant="contained" endIcon={<HomeIcon />}>Home | ||
</Button> | ||
</Link> | ||
|
||
|
||
<h1>Register a new analysis</h1> | ||
<div className={styles.center}> | ||
<FormControl variant="standard" sx={{ m: 1, width: 300 }} action="/register_submit" method="post"> | ||
<InputLabel id="department-label">Department</InputLabel> | ||
<Select required disabled labelId="department-label" label="Department" id="department" name="department" defaultValue="Office for National Statistics"> | ||
<MenuItem value="Office for National Statistics">Office for National Statistics</MenuItem> | ||
</Select> | ||
<TextField required label="Business area" type="text" id="area" name="area" variant="standard" /> | ||
<TextField required label="Analysis name" type="text" id="analysis" name="analysis" variant="standard" /> | ||
<Button type="submit">Register</Button> | ||
</FormControl> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{ | ||
"compilerOptions": { | ||
"lib": [ | ||
"dom", | ||
"dom.iterable", | ||
"esnext" | ||
], | ||
"allowJs": true, | ||
"skipLibCheck": true, | ||
"strict": false, | ||
"forceConsistentCasingInFileNames": true, | ||
"noEmit": true, | ||
"incremental": true, | ||
"esModuleInterop": true, | ||
"module": "esnext", | ||
"moduleResolution": "node", | ||
"resolveJsonModule": true, | ||
"isolatedModules": true, | ||
"jsx": "preserve" | ||
}, | ||
"include": [ | ||
"next-env.d.ts", | ||
"**/*.ts", | ||
"**/*.tsx" | ||
], | ||
"exclude": [ | ||
"node_modules" | ||
] | ||
} |