From f6207e1de514c37c01db451352cf0343ebaa17f7 Mon Sep 17 00:00:00 2001 From: avenmia Date: Wed, 22 Nov 2023 19:56:31 -1000 Subject: [PATCH] Fixing polis survey styling --- src/pages/polis.tsx | 32 ++++++++++++++++++++------------ 1 file changed, 20 insertions(+), 12 deletions(-) diff --git a/src/pages/polis.tsx b/src/pages/polis.tsx index 88e4796..9558ab8 100644 --- a/src/pages/polis.tsx +++ b/src/pages/polis.tsx @@ -1,6 +1,6 @@ import { type NextPage } from "next"; -import { NextPageButtonLink } from "../UI/NextPageButtonLink"; import ProgressBar from "../components/ProgressBar"; +import Link from "next/link"; interface PolisSurvey { id: string; @@ -14,29 +14,37 @@ const Polis: NextPage = () => { process.env.NEXT_PUBLIC_POLIS_SURVEYS ?? "" ); + const gridItemStyle = surveys.length > 2 ? "grid-cols-3" : "grid-cols-1"; return (
-
+

Step 5: Please select the Pol.is survey you wish to complete.

-
+
{surveys?.map(({ id, title }, index) => { return (
- +
+ + + +
); })}