Skip to content

Commit

Permalink
πŸ’… style: 헀더 μ»΄ν¬λ„ŒνŠΈ λ ˆμ΄μ•„μ›ƒ 상단 고정을 μœ„ν•΄ μŠ€νƒ€μΌ μˆ˜μ • #15
Browse files Browse the repository at this point in the history
  • Loading branch information
froggy1014 committed Aug 4, 2024
1 parent 989c7cd commit 5fb3089
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 14 deletions.
2 changes: 1 addition & 1 deletion src/layout/Mobile/MobileHeader/MobileHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ interface Props {

const MobileHeader: FC<Props> = ({ label, onClick }) => {
return (
<header className="flex h-[44px] w-full items-center justify-between bg-gray-scale-0 px-[10px] text-gray-900">
<header className="fixed top-0 flex h-[44px] w-full max-w-none items-center justify-between bg-gray-scale-0 px-[10px] text-gray-900 lg:max-w-[450px]">
<button type="button" onClick={onClick}>
<ArrowLeftSmallIcon width={24} height={24} />
</button>
Expand Down
4 changes: 3 additions & 1 deletion src/layout/Mobile/MobileHeader/MobileHomeHeader.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
"use client";

import { FC } from "react";

import { AlarmIcon, CameraIcon, SearchIcon } from "../../../components/icons";
Expand All @@ -6,7 +8,7 @@ interface Props {}

const MobileHomeHeader: FC<Props> = ({}) => {
return (
<header className="flex h-[44px] w-full items-center justify-between bg-gray-scale-0 px-[10px] text-gray-900">
<header className="fixed top-0 flex h-[44px] w-full max-w-none items-center justify-between bg-gray-scale-0 px-[10px] text-gray-900 lg:max-w-[450px]">
<button type="button" onClick={() => {}}>
<CameraIcon width={24} height={24} />
</button>
Expand Down
12 changes: 2 additions & 10 deletions src/layout/Mobile/MobileHeader/MobileSearchHeader.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,7 @@ const meta: Meta<typeof MobileSearchHeader> = {
layout: "centered",
},

argTypes: {
label: {
control: {
type: "text",
},
},
},
argTypes: {},
};

export default meta;
Expand All @@ -28,7 +22,5 @@ export const Default: Story = {
<MobileSearchHeader {...args} />
</div>
),
args: {
label: "TEXT",
},
args: {},
};
6 changes: 4 additions & 2 deletions src/layout/Mobile/MobileHeader/MobileSearchHeader.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
"use client";

import Link from "next/link";
import React, { FC } from "react";

import SearchInput from "@/components/common/Input/SearchInput";
import SearchInput from "@/components/core/Input/SearchInput";

import { ArrowLeftSmallIcon } from "../../../components/icons";

interface Props {}

const MobileSearchHeader: FC<Props> = ({}) => {
return (
<header className="flex h-[60px] w-full items-center justify-between bg-gray-scale-0 px-[10px] text-gray-900">
<header className="fixed top-0 flex h-[60px] w-full max-w-none items-center justify-between bg-gray-scale-0 px-[10px] text-gray-900 lg:max-w-[450px]">
<Link href="/" className="pr-[8px]">
<ArrowLeftSmallIcon width={24} height={24} />
</Link>
Expand Down

0 comments on commit 5fb3089

Please sign in to comment.