Skip to content

Commit 4d8efb8

Browse files
committed
add csp change
1 parent c53c582 commit 4d8efb8

File tree

5 files changed

+17
-49
lines changed

5 files changed

+17
-49
lines changed

packages/backend/src/helpers/csp.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ const helmetOptions: HelmetOptions = {
3535
].filter(Boolean),
3636
imgSrc: [
3737
"'self'",
38+
'data:',
3839
'https://file.go.gov.sg',
3940
'https://www.google-analytics.com',
4041
'https://www.googletagmanager.com',
-123 KB
Binary file not shown.

packages/frontend/src/assets/plumber-logo.svg

Lines changed: 0 additions & 6 deletions
This file was deleted.

packages/frontend/src/pages/Landing/Footer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import {
1010

1111
export const Footer = () => (
1212
<RestrictedFooter
13-
appName="Plumber"
13+
appName="plumber"
1414
appLink={window.location.origin}
1515
footerLinks={[
1616
{
Lines changed: 15 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,24 @@
11
import { ReactElement } from 'react'
2-
import { Box, Center, Flex, Image, Show, Text } from '@chakra-ui/react'
2+
import { Box, Flex, Image } from '@chakra-ui/react'
33

4-
import landingImg from '@/assets/plumber-landing.png'
5-
import mainLogo from '@/assets/plumber-logo.svg'
4+
import textlogo from '@/assets/landing/textlogo.svg'
65
import LoginForm from '@/components/LoginForm'
76

87
export default function Login(): ReactElement {
98
return (
10-
<Flex flex={1} alignItems="stretch" flexDir={{ base: 'column', md: 'row' }}>
11-
{/* Left half of the page: Login graphic */}
12-
<Flex
13-
flex={1}
14-
flexDir="column"
15-
display={{ base: 'none', md: 'flex' }}
16-
bg="primary.50"
17-
color="primary.500"
18-
pt="3.75rem"
19-
gap={{ base: '3rem', lg: '4.5rem' }}
20-
>
21-
<Flex flexDir="column" gap={2} pl={11}>
22-
<Text textStyle="heavy" maxW="60%">
23-
Automate your manual and repetitive tasks
24-
</Text>
25-
<Text textStyle="body-1" maxW="80%">
26-
A no-code tool that connects multiple applications together to
27-
automate your workflows.
28-
</Text>
29-
</Flex>
30-
31-
<Show above="md">
32-
<Center pr={8}>
33-
<Image
34-
src={landingImg}
35-
w={{ base: '80%', lg: '60%', '2xl': '65%' }}
36-
maxW="26rem"
37-
/>
38-
</Center>
39-
</Show>
40-
</Flex>
41-
42-
{/* Right half of the page: Login input */}
43-
<Flex flexDir="column" flex={1} gap={12} justifyContent="center" px="5vw">
44-
<Box>
45-
<Image h={10} src={mainLogo} alt="plumber-logo" />
46-
</Box>
47-
<LoginForm />
48-
</Flex>
9+
<Flex
10+
flexDir="column"
11+
flex={1}
12+
gap={6}
13+
justifyContent="center"
14+
px="5vw"
15+
w={{ base: '90vw', sm: '80vw', lg: '50vw' }}
16+
margin="auto"
17+
>
18+
<Box>
19+
<Image h={10} src={textlogo} alt="plumber-logo" />
20+
</Box>
21+
<LoginForm />
4922
</Flex>
5023
)
5124
}

0 commit comments

Comments
 (0)