Skip to content

Commit 4bbfb2f

Browse files
Revert "feat: 캘린더 뷰 전환에 fade 애니메이션 추가 (#46)"
This reverts commit 31f948a.
1 parent 31f948a commit 4bbfb2f

File tree

10 files changed

+262
-430
lines changed

10 files changed

+262
-430
lines changed

frontend/src/App.css

Lines changed: 2 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -8,38 +8,9 @@ body, html, #root {
88
}
99

1010
.appLayout {
11-
--sidebar-width: 120px;
12-
display: grid;
13-
grid-template-columns: var(--sidebar-width) 1fr;
14-
min-height: 100vh;
15-
transition: grid-template-columns 0.45s ease;
16-
}
17-
18-
.appLayout.sidebar-open {
19-
--sidebar-width: 360px;
11+
display: flex;
2012
}
2113

2214
.content {
23-
width: 100%;
24-
min-width: 0;
25-
transition: margin 0.45s ease, padding 0.45s ease;
26-
}
27-
28-
.appLayout.sidebar-animating .content {
29-
opacity: 0.65;
30-
}
31-
32-
.page-transition {
33-
opacity: 0;
34-
animation: fadeIn 0.55s ease forwards;
35-
}
36-
37-
@keyframes fadeIn {
38-
from {
39-
opacity: 0;
40-
}
41-
42-
to {
43-
opacity: 1;
44-
}
15+
flex: 1;
4516
}

frontend/src/AppLayout.jsx

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Outlet, useLocation } from "react-router-dom";
1+
import { Outlet } from "react-router-dom";
22
import { useEffect, useMemo, useState } from "react";
33

44
import SidebarLeft from "./components/SidebarLeft";
@@ -13,14 +13,12 @@ import { API_BASE_URL } from "./config/api";
1313
export default function AppLayout() {
1414
// 약속 데이터 목록 상태
1515
const [sidebarEvents, setSidebarEvents] = useState([]);
16-
const [isSidebarOpen, setIsSidebarOpen] = useState(false);
1716

1817
// 에러 메시지 상태
1918
const [error, setError] = useState("");
2019

2120
// 로그인 토큰
2221
const token = useMemo(() => localStorage.getItem("access_token"), []);
23-
const location = useLocation();
2422

2523
useEffect(() => {
2624
const fetchAppointments = async () => {
@@ -60,18 +58,10 @@ export default function AppLayout() {
6058
fetchAppointments();
6159
}, [token]);
6260

63-
const layoutClass = `appLayout ${isSidebarOpen ? "sidebar-open" : "sidebar-closed"}`;
64-
6561
return (
66-
<div className={layoutClass}>
67-
<SidebarLeft
68-
events={sidebarEvents}
69-
isOpen={isSidebarOpen}
70-
onToggle={setIsSidebarOpen}
71-
/>
72-
<div key={location.pathname} className="content page-transition">
73-
<Outlet />
74-
</div>
62+
<div className="appLayout">
63+
<SidebarLeft events={sidebarEvents} />
64+
<Outlet className="content" />
7565
</div>
7666
);
7767
}

frontend/src/components/Calendar.css

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -509,24 +509,6 @@ button, .custom-header span, .fc-col-header-cell-cushion {
509509
color: inherit !important;
510510
}
511511

512-
.calendar-surface {
513-
position: relative;
514-
}
515-
516-
.fade-swap {
517-
opacity: 0;
518-
animation: calendarSoftFade 0.55s ease forwards;
519-
}
520-
521-
@keyframes calendarSoftFade {
522-
from {
523-
opacity: 0;
524-
}
525-
526-
to {
527-
opacity: 1;
528-
}
529-
}
530512

531513

532514

0 commit comments

Comments
 (0)