Skip to content

Commit

Permalink
Merge remote-tracking branch 'refs/remotes/origin/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
leeminhee119 committed Dec 2, 2023
2 parents f0d33c9 + b627abd commit 2d91617
Show file tree
Hide file tree
Showing 14 changed files with 84 additions and 45 deletions.
6 changes: 6 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@
content="upgrade-insecure-requests"
/>
<title>이력, 써 resume.me</title>
<link
rel="stylesheet"
as="style"
crossorigin
href="https://cdn.jsdelivr.net/gh/orioncactus/[email protected]/dist/web/variable/pretendardvariable.min.css"
/>
</head>
<body>
<div id="root"></div>
Expand Down
Binary file removed public/fonts/PretendardVariable.woff2
Binary file not shown.
2 changes: 0 additions & 2 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import CONSTANTS from './constants/index';
import { ResumeMeErrorResponse } from './types/errorResponse';
import router from '~/routes/router';
import theme from '~/theme';
import Fonts from '~/theme/typography/fonts';

const { toast } = createStandaloneToast({ theme });

Expand Down Expand Up @@ -48,7 +47,6 @@ const App = () => {
theme={theme}
toastOptions={{ defaultOptions: { position: 'top', duration: 2000 } }}
>
<Fonts />
<RouterProvider router={router} />
</ChakraProvider>
</QueryClientProvider>
Expand Down
6 changes: 6 additions & 0 deletions src/components/atoms/Button/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ const Button = forwardRef<ButtonProps, 'button'>(
size={size}
{...props}
ref={ref}
_hover={{
opacity: '80%',
}}
_groupHover={{
opacity: '80%',
}}
>
{children}
</ChakraButton>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ const CategoryAddHeader = ({ categoryTitle, onAddItem }: CategoryAddHeaderProps)
borderRadius={'1.22rem'}
bg={'none'}
onClick={onAddItem}
_hover={{
bg: 'primary.100',
}}
>
<AddIcon color={'primary.900'} />
</Button>
Expand Down
4 changes: 4 additions & 0 deletions src/components/molecules/EventGridItem/EventGridItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ const EventGridItem = ({ event: { info, mentorInfo } }: { event: EventListItem }
overflow={'hidden'}
role="group"
position={'relative'}
_hover={{
boxShadow: '1px 2px 5px 0 rgba(0, 0, 0, 0.2)',
transition: '.5s',
}}
>
<Box
overflow={'hidden'}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Box, Flex, Icon, Link, Spacer, Text, Tooltip, useToast } from '@chakra-ui/react';
import { BiCommentError } from 'react-icons/bi';
import { FiFileText } from 'react-icons/fi';
import { useNavigate } from 'react-router-dom';
import { Link as ReactRouterLink } from 'react-router-dom';
Expand Down Expand Up @@ -158,7 +159,7 @@ const FeedbackManagementItem = ({
gap={'0.69rem'}
>
<Icon
as={FiFileText}
as={!isReject ? FiFileText : BiCommentError}
color={!isReject ? 'gray.600' : 'red.600'}
boxSize={'1rem'}
/>
Expand All @@ -178,7 +179,7 @@ const FeedbackManagementItem = ({
noOfLines={1}
color={!isReject ? 'gray.600' : 'red.600'}
>
{!isReject ? resumeTitle : rejectMessage}
{!isReject ? resumeTitle : `반려 메시지: ${rejectMessage}`}
</Text>
</Tooltip>
<Spacer />
Expand Down
9 changes: 0 additions & 9 deletions src/components/organisms/Profile/EventItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -109,15 +109,6 @@ const EventItem = ({
{title}
</Text>
</Tooltip>

{/* <Text
fontSize={'1.25rem'}
fontWeight={600}
color={'gray.800'}
noOfLines={1}
>
{title}
</Text> */}
</Link>
</Flex>
<Flex direction={'column'}>
Expand Down
34 changes: 26 additions & 8 deletions src/components/organisms/ResumeCategoryCareer/CareerForm.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { AddIcon, DeleteIcon } from '@chakra-ui/icons';
import { AddIcon } from '@chakra-ui/icons';
import {
VStack,
Text,
Expand All @@ -8,6 +8,7 @@ import {
Flex,
Tooltip,
Box,
Icon,
} from '@chakra-ui/react';
import React, { useEffect } from 'react';
import {
Expand All @@ -19,6 +20,7 @@ import {
useForm,
useWatch,
} from 'react-hook-form';
import { LuDelete } from 'react-icons/lu';
import { useParams } from 'react-router-dom';
import { postResumeCareer } from '~/api/resume/create/postResumeCareer';
import { patchResumeCareer } from '~/api/resume/edit/patchResumeCareer';
Expand Down Expand Up @@ -299,14 +301,30 @@ const DutyForm = ({
m={'1.5rem'}
borderColor={'gray.300'}
/>
<ChakraButton
w={0}
h={0}
alignSelf={'self-end'}
onClick={() => remove(index)}
<Tooltip
placement="left-end"
label="삭제하기"
bg={'gray.800'}
color={'gray.100'}
hasArrow
>
<DeleteIcon />
</ChakraButton>
<ChakraButton
w={'fit-content'}
minW={'fit-content'}
h={'fit-content'}
_hover={{
bg: 'gray.200',
}}
p={0}
alignSelf={'self-end'}
onClick={() => remove(index)}
>
<Icon
as={LuDelete}
boxSize={6}
/>
</ChakraButton>
</Tooltip>
<FormControl isInvalid={Boolean(errors.duties && errors.duties[index]?.title)}>
<FormLabel
htmlFor="dutyTitle"
Expand Down
11 changes: 9 additions & 2 deletions src/components/organisms/ResumeDetails/CareerDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,14 @@ const CareerDetails = ({
))}
</Flex>
)}
{careerContent && <Text mt={5}>{careerContent}</Text>}
{careerContent && (
<Text
mt={5}
whiteSpace={'pre-line'}
>
{careerContent}
</Text>
)}
</Flex>
</Flex>
{duties?.map((duty) => (
Expand All @@ -133,7 +140,7 @@ const CareerDetails = ({
>
{duty.startDate} - {duty.endDate}
</Text>
<Text>{duty.description}</Text>
<Text whiteSpace={'pre-line'}>{duty.description}</Text>
</Flex>
</Flex>
</Box>
Expand Down
23 changes: 23 additions & 0 deletions src/theme/components/checkbox.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import { checkboxAnatomy } from '@chakra-ui/anatomy';
import { createMultiStyleConfigHelpers } from '@chakra-ui/react';

const { definePartsStyle, defineMultiStyleConfig } = createMultiStyleConfigHelpers(
checkboxAnatomy.keys,
);

const baseStyle = definePartsStyle({
control: {
_checked: {
bg: 'primary.700',
borderColor: 'primary.700',
_hover: {
bg: 'primary.900',
borderColor: 'primary.900',
},
},
},
});

const Checkbox = defineMultiStyleConfig({ baseStyle });

export { Checkbox };
3 changes: 2 additions & 1 deletion src/theme/components/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { Avatar } from './avatar';
import { Button } from './button';
import { Checkbox } from './checkbox';
import { Input } from './input';
import { Textarea } from './textarea';

export { Input, Button, Avatar, Textarea };
export { Input, Button, Avatar, Textarea, Checkbox };
4 changes: 2 additions & 2 deletions src/theme/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* eslint-disable */

import { StyleFunctionProps, extendTheme } from '@chakra-ui/react';
import { Input, Button, Avatar, Textarea } from '~/theme/components';
import { Input, Button, Avatar, Textarea, Checkbox } from '~/theme/components';

const theme = extendTheme({
breakpoints: {
Expand Down Expand Up @@ -79,7 +79,7 @@ const theme = extendTheme({
'8xl': '6rem',
'9xl': '8rem',
},
components: { Input, Button, Avatar, Textarea },
components: { Input, Button, Avatar, Textarea, Checkbox },
});

export default theme;
19 changes: 0 additions & 19 deletions src/theme/typography/fonts.tsx

This file was deleted.

0 comments on commit 2d91617

Please sign in to comment.