Skip to content

Commit

Permalink
feat: logo svgr로 import하도록 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
gxxrxn committed Sep 9, 2023
1 parent 979b04f commit 12a0ab2
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 16 deletions.
3 changes: 3 additions & 0 deletions public/icons/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// 로고
export { default as LogoWithText } from './logo-with-text.svg';

// 상단 Nav & Header
export { default as IconArrowLeft } from './arrow-left.svg';
export { default as IconClose } from './close.svg';
Expand Down
2 changes: 1 addition & 1 deletion public/icons/logo-with-text.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 7 additions & 11 deletions src/stories/Base/BottomSheet.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { Meta, StoryObj } from '@storybook/react';
import Image from 'next/image';

import { IconClose, IconKakao } from '@public/icons';
import { IconClose, IconKakao, LogoWithText } from '@public/icons';
import Button from '@/ui/Base/Button';
import BottomSheet from '@/ui/Base/BottomSheet';
import useDisclosure from '@/hooks/useDisclosure';
Expand Down Expand Up @@ -38,20 +37,17 @@ const LoginBottomSheet = () => {
>
<IconClose />
</div>
<div className="m-auto flex w-full max-w-[38rem] flex-col items-center gap-[2.2rem] px-[2rem] pt-[5rem]">
<Image
width="60"
height="61"
src="/icons/logo-with-text.svg"
alt="logo"
/>
<div className="m-auto flex w-full max-w-[38rem] flex-col items-center gap-[2.5rem] px-[2rem] pt-[5rem]">
<div className="h-auto w-[6rem]">
<LogoWithText />
</div>
<p className="text-lg font-bold text-black-700">
로그인이 필요한 서비스에요!
</p>
<p className=" text-center text-sm font-normal text-placeholder">
<p className="text-center text-sm font-normal text-placeholder">
간편하게 카카오로 로그인을 하고,
<br />
<span className=" text-main-900">다독다독</span>의 다양한 기능을
<span className="text-main-900">다독다독</span>의 다양한 기능을
이용해보세요.
</p>
<Button colorScheme="kakao" size="full">
Expand Down
8 changes: 4 additions & 4 deletions src/ui/Base/BottomSheet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ const BottomSheet = ({
<Dialog as="div" className="relative z-10" onClose={onClose}>
<Transition.Child
as={Fragment}
enter="ease-in-out duration-500"
enter="ease-in-out duration-300"
enterFrom="opacity-0"
enterTo="opacity-100"
leave="ease-in-out duration-500"
leave="ease-in-out duration-300"
leaveFrom="opacity-100"
leaveTo="opacity-0"
>
Expand All @@ -31,10 +31,10 @@ const BottomSheet = ({
<div className="pointer-events-none fixed bottom-0 left-1/2 flex max-w-full -translate-x-1/2">
<Transition.Child
as={Fragment}
enter="transform transition ease-in-out duration-500"
enter="transform transition ease-in-out duration-300"
enterFrom="translate-y-full"
enterTo="translate-y-0"
leave="transform transition ease-in-out duration-500"
leave="transform transition ease-in-out duration-300"
leaveFrom="translate-y-0"
leaveTo="translate-y-full"
>
Expand Down

0 comments on commit 12a0ab2

Please sign in to comment.