Skip to content

Commit 6b57492

Browse files
TIL > feat: TimelinePage 및 Layout 컴포넌트 리팩토링 및 스타일 개선 (#445)
* feat: TimelinePage 및 Layout 컴포넌트 리팩토링 및 스타일 개선 - sidebar fixed -> sticty 변경 - post-list 반응형 적용 * refactor: clean up Layout component styles by removing commented-out code
1 parent d63a540 commit 6b57492

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

fundamentals/today-i-learned/src/components/shared/layout/Layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { LayoutNavigation } from "./LayoutNavigation";
21
import { css } from "@styled-system/css";
2+
import { LayoutNavigation } from "./LayoutNavigation";
33

44
export const Layout: React.FC<{ children: React.ReactNode }> = ({
55
children

fundamentals/today-i-learned/src/pages/timeline/TimelinePage.tsx

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1+
import { css } from "@styled-system/css";
12
import * as React from "react";
23
import { useNavigate } from "react-router-dom";
3-
import { PostInput } from "./components/PostInput";
4+
import { useCreateDiscussion } from "@/api/hooks/useDiscussions";
5+
import { UnauthenticatedState } from "@/components/features/auth/UnauthenticatedState";
6+
import { WeeklyTop5 } from "@/components/features/discussions/WeeklyTop5";
7+
import { useAuth } from "@/contexts/AuthContext";
8+
import { useToast } from "@/contexts/ToastContext";
9+
import { useErrorHandler } from "@/hooks/useErrorHandler";
410
import { FilterSection } from "./components/FilterSection";
11+
import { PostInput } from "./components/PostInput";
512
import { PostList } from "./components/PostList";
6-
import { WeeklyTop5 } from "@/components/features/discussions/WeeklyTop5";
713
import { SprintChallenge } from "./components/SprintChallenge";
8-
import { UnauthenticatedState } from "@/components/features/auth/UnauthenticatedState";
9-
import { useAuth } from "@/contexts/AuthContext";
1014
import type { SortOption } from "./types";
11-
import { useCreateDiscussion } from "@/api/hooks/useDiscussions";
12-
import { useErrorHandler } from "@/hooks/useErrorHandler";
13-
import { useToast } from "@/contexts/ToastContext";
14-
import { css } from "@styled-system/css";
1515

1616
export function TimelinePage() {
1717
const { user } = useAuth();
@@ -132,12 +132,11 @@ const mainContentColumn = css({
132132
});
133133

134134
const sprintChallengeSection = css({
135-
paddingTop: "12px",
136-
paddingBottom: 0
135+
paddingY: "1rem"
137136
});
138137

139138
const postInputSection = css({
140-
paddingX: { lg: "1.5rem" }
139+
paddingX: "1rem"
141140
});
142141

143142
const filterSection = css({

fundamentals/today-i-learned/src/pages/timeline/components/PostInput.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,7 @@ const titleInputStyle = css({
205205
backgroundColor: "transparent",
206206
boxShadow: "none",
207207
paddingBottom: "0.5rem",
208+
paddingLeft: 0,
208209
_focus: {
209210
outline: "none",
210211
ring: 0

0 commit comments

Comments
 (0)