File tree Expand file tree Collapse file tree 3 files changed +37
-49
lines changed Expand file tree Collapse file tree 3 files changed +37
-49
lines changed Original file line number Diff line number Diff line change 1+ /* === FAT-EIBL Theme === */
2+ body {
3+ margin : 0 ;
4+ padding : 0 ;
5+ background-color : # f8fbff ;
6+ font-family : "Segoe UI" , Arial, sans-serif;
7+ color : # 0d1b2a ;
8+ }
9+
10+ h1 , h2 , h3 {
11+ color : # 0047AB ;
12+ }
13+
14+ button {
15+ background-color : # 0047AB ;
16+ color : # fff ;
17+ border : none;
18+ border-radius : 6px ;
19+ padding : 10px 16px ;
20+ cursor : pointer;
21+ }
22+
23+ button : hover {
24+ background-color : # 003580 ;
25+ }
Original file line number Diff line number Diff line change 1- import React , { useEffect , useState } from "react" ;
2- const API = import . meta. env . VITE_API_URL || "http://localhost:8000" ;
3-
4- export default function Dashboard ( ) {
5- const [ stats , setStats ] = useState ( { total : 0 , pending : 0 , done : 0 } ) ;
6-
7- useEffect ( ( ) => {
8- fetch ( `${ API } /tasks` ) . then ( r => r . json ( ) ) . then ( list => {
9- const total = list . length ;
10- const done = list . filter ( x => x . status === "Done" ) . length ;
11- const pending = list . filter ( x => x . status !== "Done" ) . length ;
12- setStats ( { total, done, pending } ) ;
13- } ) ;
14- } , [ ] ) ;
1+ import React from "react" ;
152
3+ export default function Dashboard ( ) {
164 return (
17- < div >
18- < h1 > Welcome to FAT-EIBL</ h1 >
19- < p className = "muted" > Finance Audit Tracker – Edme Insurance Brokers Limited</ p >
20- < div style = { { display :"grid" , gridTemplateColumns :"repeat(3, 1fr)" , gap :12 } } >
21- < div className = "card" > < h3 > Total Tasks</ h3 > < div style = { { fontSize :30 } } > { stats . total } </ div > </ div >
22- < div className = "card" > < h3 > Pending</ h3 > < div style = { { fontSize :30 } } > { stats . pending } </ div > </ div >
23- < div className = "card" > < h3 > Done</ h3 > < div style = { { fontSize :30 } } > { stats . done } </ div > </ div >
24- </ div >
5+ < div style = { { textAlign : "center" , marginTop : "100px" } } >
6+ < h2 > Dashboard Page</ h2 >
257 </ div >
268 ) ;
279}
Original file line number Diff line number Diff line change @@ -2,33 +2,14 @@ import React from "react";
22
33export default function Login ( ) {
44 return (
5- < div className = "flex items-center justify-center h-screen bg-gray-50" >
6- < div className = "p-6 bg-white rounded-2xl shadow-lg text-center" >
7- < h1 className = "text-2xl font-bold text-blue-900 mb-2" >
8- Welcome to FAT-EIBL
9- </ h1 >
10- < p className = "text-gray-500 mb-4" >
11- Finance Audit Tracker – Edme Insurance Brokers Limited
12- </ p >
13- < form >
14- < input
15- type = "email"
16- placeholder = "Email"
17- className = "border p-2 w-64 mb-3 rounded"
18- />
19- < input
20- type = "password"
21- placeholder = "Password"
22- className = "border p-2 w-64 mb-3 rounded"
23- />
24- < button
25- type = "submit"
26- className = "bg-blue-700 text-white px-4 py-2 rounded w-64"
27- >
28- Login
29- </ button >
30- </ form >
31- </ div >
5+ < div style = { {
6+ textAlign : "center" ,
7+ marginTop : "100px" ,
8+ fontFamily : "sans-serif" ,
9+ color : "#003366"
10+ } } >
11+ < h1 > Welcome to FAT-EIBL</ h1 >
12+ < p > Finance Audit Tracker – Edme Insurance Brokers Limited</ p >
3213 </ div >
3314 ) ;
3415}
You can’t perform that action at this time.
0 commit comments