From 85269b5c88c5890e2bcefa4b2545c74ca07c3104 Mon Sep 17 00:00:00 2001 From: Daniel Palma <71732131+DanyPalma@users.noreply.github.com> Date: Tue, 22 Apr 2025 19:45:49 -0400 Subject: [PATCH] update content based on viewport size --- apps/webring/src/App.tsx | 80 ++++++++++++++++++++++----- apps/webring/src/_components/list.tsx | 2 +- apps/webring/src/_hooks/window.ts | 51 +++++++++++++++++ 3 files changed, 118 insertions(+), 15 deletions(-) create mode 100644 apps/webring/src/_hooks/window.ts diff --git a/apps/webring/src/App.tsx b/apps/webring/src/App.tsx index e353a345a..0a0932f40 100644 --- a/apps/webring/src/App.tsx +++ b/apps/webring/src/App.tsx @@ -3,27 +3,79 @@ import { useState } from "react"; import Board from "./_components/board"; import List from "./_components/list"; import Nav from "./_components/nav"; +import { useIsMedium, useIsSmall } from "./_hooks/window"; function App() { const [hoveredMember, setHoveredMember] = useState(null); + const isSmall = useIsSmall(); + const isMedium = useIsMedium(); return (
-