From 1fc90584f492b033bcd6579cf2536970e4d7d469 Mon Sep 17 00:00:00 2001 From: Baitinq Date: Tue, 2 Jul 2024 11:52:34 +0200 Subject: Home: Start styling layout --- src/components/Sidebar/Sidebar.tsx | 2 +- src/components/TimePicker/TimePicker.tsx | 11 +++++++++++ src/pages/Home.tsx | 28 ++++++++++++++++++++++------ 3 files changed, 34 insertions(+), 7 deletions(-) create mode 100644 src/components/TimePicker/TimePicker.tsx (limited to 'src') diff --git a/src/components/Sidebar/Sidebar.tsx b/src/components/Sidebar/Sidebar.tsx index 409636b..28ae9a2 100644 --- a/src/components/Sidebar/Sidebar.tsx +++ b/src/components/Sidebar/Sidebar.tsx @@ -3,7 +3,7 @@ import SidebarButton from "./SidebarButton"; export default function SideBar() { return (
+ className="relative flex h-full w-full max-w-[20rem] flex-col rounded-xl bg-white bg-clip-border p-4 text-gray-700 shadow-xl shadow-blue-gray-900/5">
fs-tracer diff --git a/src/components/TimePicker/TimePicker.tsx b/src/components/TimePicker/TimePicker.tsx new file mode 100644 index 0000000..b20b1f6 --- /dev/null +++ b/src/components/TimePicker/TimePicker.tsx @@ -0,0 +1,11 @@ +//import { DateRangePicker } from 'react-date-range'; + +export default function TimePicker() { + // + + return ( + <> +

TODO

+ + ) +} diff --git a/src/pages/Home.tsx b/src/pages/Home.tsx index 37cc7cc..32edf5d 100644 --- a/src/pages/Home.tsx +++ b/src/pages/Home.tsx @@ -3,6 +3,7 @@ import { useEffect, useState, useCallback } from "react" import { useNavigate } from "react-router-dom" import SideBar from "../components/Sidebar/Sidebar" import LineGraph from "../components/Graphs/LineGraph" +import TimePicker from "../components/TimePicker/TimePicker" export default function Home(props: any) { const navigate = useNavigate() @@ -36,12 +37,27 @@ export default function Home(props: any) { <>
-
-
- -
-
- +
+
+
+
+ +
+
+
+
+
+
+ +
+
+
+
+ +
+
+
+
-- cgit 1.4.1