Available Sensor Datasets
+ ++ {ds.name} +
+{ds.desc}
+From 3727fc0f303802fe631fb09587b3721c8fa0d544 Mon Sep 17 00:00:00 2001 From: Sukunadot <85873221+Sukunadot@users.noreply.github.com> Date: Thu, 21 Aug 2025 17:51:59 +1000 Subject: [PATCH 1/8] Add files via upload Signed-off-by: Sukunadot <85873221+Sukunadot@users.noreply.github.com> --- new-frontend/frontend/postcss.config.js | 6 ++++++ new-frontend/frontend/tailwind.config.js | 6 ++++++ 2 files changed, 12 insertions(+) create mode 100644 new-frontend/frontend/postcss.config.js create mode 100644 new-frontend/frontend/tailwind.config.js diff --git a/new-frontend/frontend/postcss.config.js b/new-frontend/frontend/postcss.config.js new file mode 100644 index 0000000..1e8e944 --- /dev/null +++ b/new-frontend/frontend/postcss.config.js @@ -0,0 +1,6 @@ +// postcss.config.js +export default { + plugins: { + '@tailwindcss/postcss': {}, + }, +} \ No newline at end of file diff --git a/new-frontend/frontend/tailwind.config.js b/new-frontend/frontend/tailwind.config.js new file mode 100644 index 0000000..76ab992 --- /dev/null +++ b/new-frontend/frontend/tailwind.config.js @@ -0,0 +1,6 @@ +/** @type {import('tailwindcss').Config} */ +export default { + content: ['./index.html', './src/**/*.{js,ts,jsx,tsx}'], + theme: { extend: {} }, + plugins: [], +} From b6bc5d8f85f5430e454bc35f0d58f6a826af84f1 Mon Sep 17 00:00:00 2001 From: Sukunadot <85873221+Sukunadot@users.noreply.github.com> Date: Thu, 21 Aug 2025 17:52:39 +1000 Subject: [PATCH 2/8] Add files via upload Signed-off-by: Sukunadot <85873221+Sukunadot@users.noreply.github.com> --- new-frontend/frontend/src/index.css | 69 +---------------------------- 1 file changed, 1 insertion(+), 68 deletions(-) diff --git a/new-frontend/frontend/src/index.css b/new-frontend/frontend/src/index.css index 08a3ac9..a461c50 100644 --- a/new-frontend/frontend/src/index.css +++ b/new-frontend/frontend/src/index.css @@ -1,68 +1 @@ -:root { - font-family: system-ui, Avenir, Helvetica, Arial, sans-serif; - line-height: 1.5; - font-weight: 400; - - color-scheme: light dark; - color: rgba(255, 255, 255, 0.87); - background-color: #242424; - - font-synthesis: none; - text-rendering: optimizeLegibility; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; -} - -a { - font-weight: 500; - color: #646cff; - text-decoration: inherit; -} -a:hover { - color: #535bf2; -} - -body { - margin: 0; - display: flex; - place-items: center; - min-width: 320px; - min-height: 100vh; -} - -h1 { - font-size: 3.2em; - line-height: 1.1; -} - -button { - border-radius: 8px; - border: 1px solid transparent; - padding: 0.6em 1.2em; - font-size: 1em; - font-weight: 500; - font-family: inherit; - background-color: #1a1a1a; - cursor: pointer; - transition: border-color 0.25s; -} -button:hover { - border-color: #646cff; -} -button:focus, -button:focus-visible { - outline: 4px auto -webkit-focus-ring-color; -} - -@media (prefers-color-scheme: light) { - :root { - color: #213547; - background-color: #ffffff; - } - a:hover { - color: #747bff; - } - button { - background-color: #f9f9f9; - } -} +@import "tailwindcss"; \ No newline at end of file From 0aae8a5116786756789f7898bfc85854f71148f8 Mon Sep 17 00:00:00 2001 From: Sukunadot <85873221+Sukunadot@users.noreply.github.com> Date: Thu, 21 Aug 2025 17:53:06 +1000 Subject: [PATCH 3/8] Add files via upload Signed-off-by: Sukunadot <85873221+Sukunadot@users.noreply.github.com> --- new-frontend/frontend/src/pages/HomePage.jsx | 179 +++++++++++++++++-- 1 file changed, 162 insertions(+), 17 deletions(-) diff --git a/new-frontend/frontend/src/pages/HomePage.jsx b/new-frontend/frontend/src/pages/HomePage.jsx index cc3f45e..91889d2 100644 --- a/new-frontend/frontend/src/pages/HomePage.jsx +++ b/new-frontend/frontend/src/pages/HomePage.jsx @@ -1,22 +1,167 @@ -import { Link } from 'react-router-dom'; +import { Link } from "react-router-dom"; + +const ThermometerIcon = (props) => ( + +); +const DropletIcon = (props) => ( + +); +const AirIcon = (props) => ( + +); const datasets = [ - { id: 'sensor1', name: 'Sensor 1' }, - { id: 'sensor2', name: 'Sensor 2' }, - { id: 'sensor3', name: 'Sensor 3' }, + { + id: "sensor1", + name: "Sensor 1", + desc: "Temperature readings", + gradient: "from-teal-600 to-teal-500", + icon: ThermometerIcon, + status: "live", + anomalies24h: 2, + }, + { + id: "sensor2", + name: "Sensor 2", + desc: "Humidity monitoring", + gradient: "from-orange-600 to-amber-500", + icon: DropletIcon, + status: "live", + anomalies24h: 0, + }, + { + id: "sensor3", + name: "Sensor 3", + desc: "Air quality index", + gradient: "from-violet-600 to-fuchsia-500", + icon: AirIcon, + status: "offline", + anomalies24h: 5, + }, ]; -const HomePage = () => ( -
+ Time-series data, anomaly awareness, and correlation insights — all in one place. +
+{ds.desc}
+{description}
+Time-series data, anomaly awareness, and correlation insights — all in one place.
-{ds.desc}
-{description}
+{description}