restructured the files and created skeleton for the Login component

This commit is contained in:
Arnaud Fauconnet
2022-10-13 17:07:48 +02:00
parent 56e6e905b2
commit 5eef24187b
5 changed files with 13 additions and 3 deletions

28
src/components/App.tsx Normal file
View File

@ -0,0 +1,28 @@
import React from 'react'
import { Button, Box } from "@mui/material"
import variables from "@scss/variables.module.scss"
import "@scss/style.scss"
export default function App() {
let boxStyle = {
width: "50%",
height: "50%",
border: '1px dashed grey',
backgroundColor: variables.boxBg,
display: "flex",
alignItems: "center",
justifyContent: "center"
}
return (
<main id="root">
<h1>React with Webpack</h1>
<Button variant="contained">Hello world</Button>
<div id="container">
<Box sx={boxStyle}>
This box should be centered <br />(and also this this text)
</Box>
</div>
</main>
);
}

10
src/components/Login.tsx Normal file
View File

@ -0,0 +1,10 @@
import React from "react";
import { Card } from "@mui/material"
export default function Login(){
return (
<main id="root">
</main>
)
}