From 400cbdc7923f14b2f69e41d8f91bce589d367d72 Mon Sep 17 00:00:00 2001 From: Terence Tuhinanshu Date: Wed, 13 Sep 2023 11:59:49 -0400 Subject: [PATCH 1/2] Add link to Google Form to request access To allow new users to request access, we add a link to a Google Form. Supersedes #240 --- src/app/src/pages/Login.js | 9 ++++++++- src/app/src/theme.js | 12 ++++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/src/app/src/pages/Login.js b/src/app/src/pages/Login.js index 1f6a1e51..b113390f 100644 --- a/src/app/src/pages/Login.js +++ b/src/app/src/pages/Login.js @@ -1,7 +1,7 @@ import { useEffect, useState } from 'react'; import { useDispatch, useSelector } from 'react-redux'; import { useLocation, useNavigate } from 'react-router-dom'; -import { Box, Button, Input, Text, VStack } from '@chakra-ui/react'; +import { Box, Button, Input, Link, Text, VStack } from '@chakra-ui/react'; import apiClient from '../api/client'; import { API_URLS, API_STATUSES, APP_URLS } from '../constants'; @@ -95,6 +95,13 @@ export default function Login() { + + Request access + ); diff --git a/src/app/src/theme.js b/src/app/src/theme.js index 78bc9d87..99297f16 100644 --- a/src/app/src/theme.js +++ b/src/app/src/theme.js @@ -120,6 +120,17 @@ const Input = { }, }; +const Link = { + variants: { + minimal: { + fontWeight: 400, + fontSize: 'sm', + textDecoration: 'underline', + color: 'gray.800', + }, + }, +}; + const ListItem = { baseStyle: { fontFamily: `'Inter', san-serif`, @@ -158,6 +169,7 @@ const theme = extendTheme({ Button, Heading, Input, + Link, ListItem, Tooltip, Table, From 6f66ab3f24566c67b15bff57d5347fa22c241303 Mon Sep 17 00:00:00 2001 From: Terence Tuhinanshu Date: Wed, 13 Sep 2023 12:03:53 -0400 Subject: [PATCH 2/2] [skip ci] Update CHANGELOG --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0b961207..1fcd81f1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added - Add management command to bulk import contributors [#238](https://github.com/azavea/iow-boundary-tool/pull/238) +- Add link to Google Form to request access [#241](https://github.com/azavea/iow-boundary-tool/pull/241) ### Changed