Dashboard with cards

This commit is contained in:
2025-08-27 23:19:17 +02:00
committed by Arif Hasanic
parent 97737def29
commit 97d9a04b29
8 changed files with 61 additions and 15 deletions

View File

@@ -1,14 +1,11 @@
import "@/App.css"; import "@/App.css";
import Flatastic from "@/components/Flatastic/Flatastic";
import HomeAssistant from "@/components/HomeAssistant/HomeAssistant"; import Dashboard from "@/components/Dashboard/Dashboard";
import Timetable from "@/components/Timetable/Timetable";
function App() { function App() {
return ( return (
<> <>
<Timetable /> <Dashboard />
<Flatastic />
<HomeAssistant />
</> </>
); );
} }

View File

@@ -0,0 +1,25 @@
import Flatastic from "@/components/Flatastic/Flatastic";
import HomeAssistant from "@/components/HomeAssistant/HomeAssistant";
import Timetable from "@/components/Timetable/Timetable";
import style from "./style.module.css";
export default function Dashboard() {
return (
<div className={style.dashboard}>
<div className={style.cardWrapper}>
<div className={style.card}>
<Timetable />
</div>
<div className={style.card}>
<Flatastic />
</div>
<div className={style.card}>
<HomeAssistant />
</div>
</div>
<div className={style.footer}></div>
</div>
);
}

View File

@@ -0,0 +1,18 @@
.dashboard {
}
.cardWrapper {
}
.card {
border-radius: 10px;
padding: 1px 100px 30px 100px;
margin-bottom: 20px;
border: 1px solid rgba(220, 220, 220, 0.4);
box-shadow: 5px 5px 7px rgba(220, 220, 220, 0.5);
}
.footer {
background-color: red;
}

View File

@@ -58,7 +58,9 @@ export default function DepartureList(props: {
return ( return (
<div className={style.container}> <div className={style.container}>
<h2>{name} Departures</h2> <div className={style.heading}>
<h2>{name}</h2>
</div>
<div className={style.departureLists}> <div className={style.departureLists}>
{departureTables(left)} {departureTables(left)}
{departureTables(right)} {departureTables(right)}

View File

@@ -1,7 +1,12 @@
.container { .container {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: center; align-items: stretch;
border: 1px solid rgba(220, 220, 220, 0.4);
box-shadow: 5px 5px 7px rgba(220, 220, 220, 0.5);
border-radius: 10px;
padding: 0 10px 10px 10px;
margin-bottom: 20px;
} }
.departureLists { .departureLists {
@@ -9,4 +14,9 @@
flex-direction: row; flex-direction: row;
justify-content: space-between; justify-content: space-between;
width: 100%; width: 100%;
gap: 120px;
}
.heading {
text-align: left;
} }

View File

@@ -19,7 +19,7 @@ export default function Timetable() {
return ( return (
<div className={style.wrapper}> <div className={style.wrapper}>
<h1>Timetable</h1> <h1>Timetable 🚉</h1>
<DepartureList departures={pStreet.departureList} name="P-Street" /> <DepartureList departures={pStreet.departureList} name="P-Street" />
<DepartureList departures={hStreet.departureList} name="H-Street" /> <DepartureList departures={hStreet.departureList} name="H-Street" />
</div> </div>

View File

@@ -1,5 +0,0 @@
.wrapper {
border-radius: 10px;
padding: 1px 100px 30px 100px;
box-shadow: 5px 5px 10px #aeaeae;
}

View File

@@ -8,7 +8,6 @@ td {
.departureTime { .departureTime {
font-weight: 600; font-weight: 600;
/* background-color: rgba(180, 180, 180, 0.1); */
} }
.lineNumber { .lineNumber {