diff --git a/src/App.tsx b/src/App.tsx index cfe54d4..1d554ad 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1,14 +1,11 @@ import "@/App.css"; -import Flatastic from "@/components/Flatastic/Flatastic"; -import HomeAssistant from "@/components/HomeAssistant/HomeAssistant"; -import Timetable from "@/components/Timetable/Timetable"; + +import Dashboard from "@/components/Dashboard/Dashboard"; function App() { return ( <> - - - + ); } diff --git a/src/components/Dashboard/Dashboard.tsx b/src/components/Dashboard/Dashboard.tsx new file mode 100644 index 0000000..7ffe448 --- /dev/null +++ b/src/components/Dashboard/Dashboard.tsx @@ -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 ( +
+
+
+ +
+
+ +
+
+ +
+
+ +
+
+ ); +} diff --git a/src/components/Dashboard/style.module.css b/src/components/Dashboard/style.module.css new file mode 100644 index 0000000..d231a20 --- /dev/null +++ b/src/components/Dashboard/style.module.css @@ -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; +} diff --git a/src/components/DepartureList/DepartureList.tsx b/src/components/DepartureList/DepartureList.tsx index 376b813..5d42d1f 100644 --- a/src/components/DepartureList/DepartureList.tsx +++ b/src/components/DepartureList/DepartureList.tsx @@ -58,7 +58,9 @@ export default function DepartureList(props: { return (
-

{name} Departures

+
+

{name}

+
{departureTables(left)} {departureTables(right)} diff --git a/src/components/DepartureList/style.module.css b/src/components/DepartureList/style.module.css index cdd0d4e..ecc1717 100644 --- a/src/components/DepartureList/style.module.css +++ b/src/components/DepartureList/style.module.css @@ -1,7 +1,12 @@ .container { display: flex; 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 { @@ -9,4 +14,9 @@ flex-direction: row; justify-content: space-between; width: 100%; + gap: 120px; +} + +.heading { + text-align: left; } diff --git a/src/components/Timetable/Timetable.tsx b/src/components/Timetable/Timetable.tsx index 2a05494..ec2079f 100644 --- a/src/components/Timetable/Timetable.tsx +++ b/src/components/Timetable/Timetable.tsx @@ -19,7 +19,7 @@ export default function Timetable() { return (
-

Timetable

+

Timetable 🚉

diff --git a/src/components/Timetable/style.module.css b/src/components/Timetable/style.module.css index e1e70fd..e69de29 100644 --- a/src/components/Timetable/style.module.css +++ b/src/components/Timetable/style.module.css @@ -1,5 +0,0 @@ -.wrapper { - border-radius: 10px; - padding: 1px 100px 30px 100px; - box-shadow: 5px 5px 10px #aeaeae; -} diff --git a/src/components/TimetableRow/style.module.css b/src/components/TimetableRow/style.module.css index e5819be..098f42b 100644 --- a/src/components/TimetableRow/style.module.css +++ b/src/components/TimetableRow/style.module.css @@ -8,7 +8,6 @@ td { .departureTime { font-weight: 600; - /* background-color: rgba(180, 180, 180, 0.1); */ } .lineNumber {