Skip to content

Commit

Permalink
style: finish cleaning
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinWu098 committed Jul 30, 2024
1 parent a226bc9 commit b97ad5c
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 33 deletions.
48 changes: 18 additions & 30 deletions src/components/EditContactInformation.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import {
Flex,
VStack,
Box,
Spacer,
Card,
HStack,
Tabs,
Expand All @@ -22,6 +21,13 @@ import { useBackend } from '../contexts/BackendContext';
import { useAuth } from '../contexts/AuthContext';
import ReferenceGuide from '../components/ReferenceGuide.jsx';

const formLabelStyles = {
minWidth: '150px',
fontSize: '16px',
fontWeight: 'bold',
alignItems: 'center',
};

const EditContactInformation = () => {
const { backend } = useBackend();
const { currentUser } = useAuth();
Expand Down Expand Up @@ -185,8 +191,6 @@ const EditContactInformation = () => {
<Heading fontSize="3xl" textAlign={'left'}>
Settings
</Heading>

<Spacer />
</Box>

<Tabs colorScheme="teal">
Expand All @@ -197,12 +201,10 @@ const EditContactInformation = () => {

<TabPanels>
<TabPanel display={'flex'} flexDirection={'column'} padding={0} gap={4}>
<Card padding={3}>
<FormControl>
<Card paddingX={6} paddingY={4}>
<FormControl sx={{ display: 'flex', flexDirection: 'column', gap: 4 }}>
<HStack>
<FormLabel fontSize={'16px'} fontWeight={'bold'} alignItems={'center'}>
BUSINESS NAME
</FormLabel>
<FormLabel sx={formLabelStyles}>BUSINESS NAME</FormLabel>
<Input
type="text"
placeholder="Enter Business Name"
Expand All @@ -217,9 +219,7 @@ const EditContactInformation = () => {
/>
</HStack>
<HStack>
<FormLabel fontSize={'16px'} fontWeight={'bold'} alignItems={'center'}>
NAME
</FormLabel>
<FormLabel sx={formLabelStyles}>NAME</FormLabel>
<Input
type="text"
placeholder="Enter First Name"
Expand All @@ -236,9 +236,7 @@ const EditContactInformation = () => {
/>
</HStack>
<HStack>
<FormLabel fontSize={'16px'} fontWeight={'bold'} alignItems={'center'}>
EMAIL
</FormLabel>
<FormLabel sx={formLabelStyles}>EMAIL</FormLabel>
<Input
type="text"
placeholder="[email protected]"
Expand All @@ -248,9 +246,7 @@ const EditContactInformation = () => {
/>
</HStack>
<HStack>
<FormLabel fontSize={'16px'} fontWeight={'bold'} alignItems={'center'}>
WEBSITE
</FormLabel>
<FormLabel sx={formLabelStyles}>WEBSITE</FormLabel>
<Input
type="text"
placeholder="example.com"
Expand All @@ -260,9 +256,7 @@ const EditContactInformation = () => {
/>
</HStack>
<HStack>
<FormLabel fontSize={'16px'} fontWeight={'bold'} alignItems={'center'}>
LOCATION
</FormLabel>
<FormLabel sx={formLabelStyles}>LOCATION</FormLabel>
<Input
type="text"
placeholder="123 Address Lane"
Expand All @@ -272,9 +266,7 @@ const EditContactInformation = () => {
/>
</HStack>
<HStack>
<FormLabel fontSize={'16px'} fontWeight={'bold'} alignItems={'center'}>
CITY
</FormLabel>
<FormLabel sx={formLabelStyles}>CITY</FormLabel>
<Input
type="text"
placeholder="City"
Expand Down Expand Up @@ -310,9 +302,7 @@ const EditContactInformation = () => {
/>
</HStack>
<HStack>
<FormLabel fontSize={'16px'} fontWeight={'bold'} alignItems={'center'}>
PHONE
</FormLabel>
<FormLabel sx={formLabelStyles}>PHONE</FormLabel>
<Input
type="text"
placeholder="(xxx) xxx-xxxx"
Expand All @@ -322,9 +312,7 @@ const EditContactInformation = () => {
/>
</HStack>
<HStack>
<FormLabel fontSize={'16px'} fontWeight={'bold'} alignItems={'center'}>
BUSINESS HOURS
</FormLabel>
<FormLabel sx={formLabelStyles}>BUSINESS HOURS</FormLabel>
<Input
type="text"
placeholder="M-F 8:00 am - 10:00 pm"
Expand Down Expand Up @@ -359,7 +347,7 @@ const EditContactInformation = () => {
</Box>
</TabPanel>

<TabPanel>
<TabPanel padding={0}>
<ReferenceGuide />
</TabPanel>
</TabPanels>
Expand Down
6 changes: 3 additions & 3 deletions src/components/ReferenceGuide.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ const ReferenceGuide = () => {
return (
<Card width={'100%'}>
<CardBody>
<Text padding={'0px 0px 20px 0px'} display={'flex'}>
Refer to the following if you have any questions, otherwise contact us at
<Text pl={1} textDecoration={'underline'}>
<Text paddingBottom={5} display={'inline-block'} as={'span'}>
Refer to the following if you have any questions, otherwise contact us at&nbsp;
<Text textDecoration={'underline'} display={'inline'} as={'p'}>
[email protected]
</Text>
</Text>
Expand Down

0 comments on commit b97ad5c

Please sign in to comment.