Skip to content

Commit

Permalink
wip: image position
Browse files Browse the repository at this point in the history
  • Loading branch information
mtguerson committed Apr 8, 2024
1 parent 684b541 commit 655f586
Show file tree
Hide file tree
Showing 9 changed files with 45 additions and 7 deletions.
12 changes: 12 additions & 0 deletions frontend/.editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# EditorConfig is awesome: https://EditorConfig.org

# top-most EditorConfig file
root = true

[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
6 changes: 3 additions & 3 deletions frontend/index.html
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<!doctype html>
<html lang="en">
<html lang="en" class="h-full">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>fincheck</title>
</head>
<body>
<div id="root"></div>
<body class="h-full">
<div id="root" class="h-full"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>
12 changes: 9 additions & 3 deletions frontend/src/Router/index.tsx
Original file line number Diff line number Diff line change
@@ -1,17 +1,23 @@
import {Routes, Route, BrowserRouter} from 'react-router-dom';
import {AuthGuard} from './AuthGuard';
import { Dashboard } from '../view/pages/Dashboard';
import { Login } from '../view/pages/Login';
import { Register } from '../view/pages/Register';
import { AuthLayout } from '../view/layouts/AuthLayout';

export function Router() {
return (
<BrowserRouter>
<Routes>
<Route element={<AuthGuard isPrivate={false}/>}>
<Route path="/login" element={<h1>Login</h1>} />
<Route path="/register" element={<h1>Register</h1>} />
<Route element={<AuthLayout />} >
<Route path="/login" element={<Login />} />
<Route path="/register" element={<Register />} />
</Route>
</Route>

<Route element={<AuthGuard isPrivate />}>
<Route path="/" element={<h1>Dashbord</h1>} />
<Route path="/" element={<Dashboard />} />
</Route>
</Routes>
</BrowserRouter>
Expand Down
Binary file added frontend/src/assets/illustration.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 0 additions & 1 deletion frontend/src/assets/react.svg

This file was deleted.

12 changes: 12 additions & 0 deletions frontend/src/view/layouts/AuthLayout.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import illustration from '../../assets/illustration.png';

export function AuthLayout() {
return (
<div className="flex w-full h-full">
<div className="w-1/2 h-full"></div>
<div className="w-1/2 h-full flex justify-center items-center p-8">
<img src={illustration} className="object-contain w-full h-full max-w-[656px] max-h-[960px]" />
</div>
</div>
);
}
3 changes: 3 additions & 0 deletions frontend/src/view/pages/Dashboard/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export function Dashboard() {
return <h1>Dashboard</h1>
}
3 changes: 3 additions & 0 deletions frontend/src/view/pages/Login/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export function Login() {
return <h1>Login</h1>
}
3 changes: 3 additions & 0 deletions frontend/src/view/pages/Register/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export function Register() {
return <h1>Register</h1>
}

0 comments on commit 655f586

Please sign in to comment.