Skip to content

Commit 2f1c86c

Browse files
authored
Merge pull request #64 from JECT-Study/chore/63-layout-390
chore: mobile 레이아웃 추가, 설정 (#63)
2 parents 72be3e4 + 7d64ee3 commit 2f1c86c

4 files changed

Lines changed: 6 additions & 3 deletions

File tree

src/app/layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export default function RootLayout({
3737
return (
3838
<html lang="en" className={`${pretendard.className} ${alata.variable} h-full antialiased`}>
3939
{/* <body className="flex min-h-full flex-col"> */}
40-
<body className="mx-auto min-h-screen w-full max-w-97.5 bg-white">
40+
<body className="mobile:w-97.5 mx-auto min-h-screen w-full bg-white">
4141
<Providers>{children}</Providers>
4242
<Suspense fallback={null}>
4343
<ScrollManager />

src/app/mypage/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ function Badge({ children, size = "medium" }: BadgeProps) {
8686
function MypageHeader() {
8787
return (
8888
<>
89-
<header className="bg-bg-primary fixed top-0 right-0 left-0 z-10 flex h-14 w-full items-center justify-between px-5">
89+
<header className="bg-bg-primary mobile:w-97.5 fixed top-0 left-1/2 z-10 flex h-14 w-full -translate-x-1/2 items-center justify-between px-5">
9090
<h1 className="text-headline-1 text-text-primary font-semibold">마이페이지</h1>
9191
<Link
9292
href="/mypage/settings"

src/app/mypage/settings/profile/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ export default function MyPageProfileSettingsPage() {
219219
<Header title="회원정보 변경" showBack />
220220

221221
<section className="fixed top-15 right-0 bottom-[82px] left-0 overflow-y-auto">
222-
<div className="flex w-full flex-col gap-6 px-5 py-6">
222+
<div className="mobile:w-97.5 mx-auto flex w-full flex-col gap-6 px-5 py-6">
223223
<ProfileImageInput
224224
initialImageUrl={meQuery.data?.profileImageUrl}
225225
onChange={file => {

tailwind.config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ const config: Config = {
3939
pretendard: ["var(--font-pretendard)", "sans-serif"],
4040
alata: ["var(--font-alata)", "sans-serif"],
4141
},
42+
screens: {
43+
mobile: "430px",
44+
},
4245
},
4346
},
4447
plugins: [],

0 commit comments

Comments
 (0)