Skip to content

Commit

Permalink
Merge pull request #702 from Kernel360/design-home-fab-icon
Browse files Browse the repository at this point in the history
홈페이지 FAB 아이콘 변경
  • Loading branch information
hatchling13 authored Mar 28, 2024
2 parents 99a890e + 07db1a8 commit 81f0574
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 7 deletions.
4 changes: 2 additions & 2 deletions frontend/public/icons/edit.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 5 additions & 2 deletions frontend/src/app/(with-header)/(home)/HomeFAB.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,16 @@ import { homePopOverData } from '@/app/_components/ui/popover/constants';
import FloatingActionButton from '@/app/_components/FloatingActionButton';

import PlusIcon from '@/../public/icons/plus.svg';
import EditIcon from '@/../public/icons/edit.svg';

function OpenedFABIcon() {
return <PlusIcon className="w-9 h-9 rotate-45 duration-200 z-30" />;
return <PlusIcon className="w-9 h-9 rotate-45 z-30" />;
}

function ClosedFABIcon() {
return <PlusIcon className="w-9 h-9 rotate-0 duration-200" />;
return (
<EditIcon className="w-12 h-12 fill-none stroke-white stroke-[1.5px]" />
);
}

export default function HomeFAB() {
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/app/_components/FloatingActionButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ export default function FloatingActionButton({
return (
<div className="w-min absolute right-24">
<button
className={`fixed bottom-20 w-16 h-16 rounded-full flex justify-center items-center ${
isModalOpened ? 'bg-black cursor-auto' : 'bg-blue-600'
className={`fixed bottom-20 w-16 h-16 rounded-full flex justify-center items-center bg-black ${
isModalOpened ? 'cursor-auto' : ''
}`}
onClick={() => setIsModalOpened(!isModalOpened)}
>
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/app/_components/reaction/MoreButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export default function MoreButton({
popOverData.push(
{
label: '수정하기',
icon: <EditIcon className="w-6 h-6 fill-none" />,
icon: <EditIcon className="w-6 h-6 fill-none stroke-black" />,
onClick: () => {
setEditOrDelete('수정');
},
Expand Down

0 comments on commit 81f0574

Please sign in to comment.