about summary refs log tree commit diff
path: root/src/pages/Home.tsx
diff options
context:
space:
mode:
authorBaitinq <manuelpalenzuelamerino@gmail.com>2024-07-02 11:52:34 +0200
committerBaitinq <manuelpalenzuelamerino@gmail.com>2024-07-02 11:52:34 +0200
commit1fc90584f492b033bcd6579cf2536970e4d7d469 (patch)
treeec3a7c7a5b5988fc374354ccd9a3a4e0ecf50e29 /src/pages/Home.tsx
parentPages: Add Recents page (diff)
downloadfs-tracer-frontend-1fc90584f492b033bcd6579cf2536970e4d7d469.tar.gz
fs-tracer-frontend-1fc90584f492b033bcd6579cf2536970e4d7d469.tar.bz2
fs-tracer-frontend-1fc90584f492b033bcd6579cf2536970e4d7d469.zip
Home: Start styling layout
Diffstat (limited to '')
-rw-r--r--src/pages/Home.tsx28
1 files changed, 22 insertions, 6 deletions
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) {
     <>
       <div className="flex h-screen">
         <SideBar />
-        <main className="flex-1 overflow-y-auto">
-          <div className="w-3/12">
-            <LineGraph />
-          </div>
-          <div className="w-3/12">
-            <LineGraph />
+        <main className="overflow-y-auto flex flex-col flex-1 mx-5">
+          <div className="flex flex-col w-full gap-7 flex-grow">
+            <div className="flex flex-row gap-7 flex-grow">
+              <div className="ml-auto">
+                <TimePicker />
+              </div>
+            </div>
+            <div className="flex flex-row gap-7 flex-grow">
+              <div className="w-1/2 block bg-white border border-gray-200 rounded-lg shadow">
+              </div>
+              <div className="w-1/2 ml-auto">
+                <LineGraph />
+              </div>
+            </div>
+            <div className="flex flex-row gap-7 mb-5 flex-grow">
+              <div className="w-1/2 mr-auto">
+                <LineGraph />
+              </div>
+              <div className="w-1/2 block bg-white-500 border border-gray-200 rounded-lg shadow">
+              </div>
+            </div>
           </div>
         </main>
       </div>