From c99e971aefbd190ad19c87772830d72cd0def2a0 Mon Sep 17 00:00:00 2001 From: Mike Parkhill Date: Wed, 24 Apr 2024 14:10:44 -0400 Subject: [PATCH 01/28] add clarity partners logo to QR remove default values on Urbanscape form --- components/qrcode/qr-generator.jsx | 2 ++ pages/org/urbanscape/index.jsx | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/components/qrcode/qr-generator.jsx b/components/qrcode/qr-generator.jsx index 5cda1f3..012cb95 100644 --- a/components/qrcode/qr-generator.jsx +++ b/components/qrcode/qr-generator.jsx @@ -1,4 +1,5 @@ import { useQRCode } from 'next-qrcode'; +import Image from 'next/image'; export const QRCodeGenerator = ({ url }) => { const { Canvas } = useQRCode(); @@ -19,6 +20,7 @@ export const QRCodeGenerator = ({ url }) => { } }} /> + clarity_partners ); }; diff --git a/pages/org/urbanscape/index.jsx b/pages/org/urbanscape/index.jsx index 905b589..0746fb5 100644 --- a/pages/org/urbanscape/index.jsx +++ b/pages/org/urbanscape/index.jsx @@ -28,9 +28,9 @@ const DEFAULT_FORM_VALUES = { issueState: 'CA', streetAddress: '', suite: '', - zipCode: '01234', - city: 'Sacramento', - state: 'California', + zipCode: '', + city: '', + state: '', email: 'euanmiller@email.com', phoneNumber: '12312312321', occupants: [ From 87c1e4a1ec6d98d425caaf8820c1dfc734d3081e Mon Sep 17 00:00:00 2001 From: Mike Parkhill Date: Wed, 24 Apr 2024 17:02:30 -0400 Subject: [PATCH 02/28] added get wallet page --- components/org/quotient/quotient-success.jsx | 2 +- pages/api/getwallet.js | 13 +++++++ pages/index.js | 2 +- pages/wallet.js | 39 ++++++++++++++++++++ 4 files changed, 54 insertions(+), 2 deletions(-) create mode 100644 pages/api/getwallet.js create mode 100644 pages/wallet.js diff --git a/components/org/quotient/quotient-success.jsx b/components/org/quotient/quotient-success.jsx index 85e86aa..3b74d9e 100644 --- a/components/org/quotient/quotient-success.jsx +++ b/components/org/quotient/quotient-success.jsx @@ -46,7 +46,7 @@ const QuotientSuccess = ({ title, proofTemplateId, showQrcode = true }) => { {textFields.benefits}

- Download the Quotient Mobile App by clicking + Download the Quotient Mobile App by clicking this link diff --git a/pages/api/getwallet.js b/pages/api/getwallet.js new file mode 100644 index 0000000..904d6c9 --- /dev/null +++ b/pages/api/getwallet.js @@ -0,0 +1,13 @@ +const IOS_WALLET_URL = 'https://apps.apple.com/ca/app/quotient-wallet/id6473549219'; +const ANDROID_WALLET_URL = 'https://play.google.com/store/apps/details?id=labs.dock.quotient'; + +export default function handler(req, res) { + const userAgent = req.headers['user-agent']; + const isIOS = /(iPhone|iPad|iOS)/i.test(userAgent) || false; + + let redirectUrl = ANDROID_WALLET_URL; + if (isIOS) { + redirectUrl = IOS_WALLET_URL; + } + res.redirect(301, redirectUrl); +} diff --git a/pages/index.js b/pages/index.js index 1728d9f..5d0c60b 100644 --- a/pages/index.js +++ b/pages/index.js @@ -29,7 +29,7 @@ export default function Home() { {org.name === 'Quotient' && (

- +