Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions app/components/common/FilterButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,10 @@ export default function FilterButton({
}: FilterButtonProps) {
return (
<button
className={`flex items-center w-fit h-7 pl-3 pr-1.5 rounded-full border transition-colors cursor-pointer text-[14px] font-Pretendard ${
isActive
? "border-core-3 text-core-1 bg-core-2 font-medium"
: "border-core-2 text-text-gray2 bg-white text-title3"
} ${className}`}
className={`flex items-center w-fit h-7 pl-3 pr-1.5 rounded-full border transition-colors cursor-pointer text-title3 ${isActive
? "border-core-3 text-core-1 bg-core-70"
: "border-core-2 text-text-gray2 bg-white"
} ${className}`}
{...props}
>
{truncateLabel(label)}
Expand Down
2 changes: 1 addition & 1 deletion app/components/common/Tabs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export default function Tabs({ tabs, activeTab, onTabChange, className = "" }: T
>
{({ isActive }) => (
<div
className={`py-4 text-title-1 text-center relative transition-colors cursor-pointer ${isActive ? 'text-core-1' : 'text-text-gray3'
className={`py-4 text-title-2 text-center relative transition-colors cursor-pointer ${isActive ? 'text-core-1' : 'text-text-gray3'
}`}
>
{tab.label}
Expand Down
31 changes: 9 additions & 22 deletions app/routes/business/calendar/calendar-content.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import MatchingCard from "../components/MatchingCard";
import MatchingTabSection from "../components/MatchingTabSection";
import EmptyState from "../components/EmptyState";
import LoadingSpinner from "../../../components/common/LoadingSpinner";
import Tabs from "../../../components/common/Tabs";

export default function CalendarContent() {
const navigate = useNavigate();
Expand Down Expand Up @@ -142,28 +143,14 @@ export default function CalendarContent() {

return (
<div className="flex flex-col w-full min-h-screen bg-bluegray-1">
<div className="flex w-full bg-bg-w border-text-gray5">
<button
onClick={() => setMainTab("collaboration")}
className={`flex-1 py-4 text-[16px] font-medium text-[16px] relative transition-colors ${mainTab === "collaboration" ? "text-core-1" : "text-text-gray3"
}`}
>
협업 현황
{mainTab === "collaboration" && (
<div className="absolute bottom-0 left-1/2 -translate-x-1/2 w-[120px] h-[2px] bg-core-1" />
)}
</button>
<button
onClick={() => setMainTab("matching")}
className={`flex-1 py-4 text-[16px] font-medium text-[16px] relative transition-colors ${mainTab === "matching" ? "text-core-1" : "text-text-gray3"
}`}
>
매칭 현황
{mainTab === "matching" && (
<div className="absolute bottom-0 left-1/2 -translate-x-1/2 w-[120px] h-[2px] bg-core-1" />
)}
</button>
</div>
<Tabs
tabs={[
{ label: "협업 현황", value: "collaboration" },
{ label: "매칭 현황", value: "matching" },
]}
activeTab={mainTab}
onTabChange={(value) => setMainTab(value as "collaboration" | "matching")}
/>

<main className="flex flex-col flex-1">
{mainTab === "collaboration" ? (
Expand Down
4 changes: 2 additions & 2 deletions app/routes/matching/brand/components/BrandFilterBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default function BrandFilterBar({ category, onCategoryChange, searchKeywo
<div className="flex gap-2 shrink-0">
<button
className={cn(
"px-[12px] py-[8px] h-10 text-title2 rounded-[8px] whitespace-nowrap cursor-pointer transition-colors font-semibold",
"px-[12px] py-[8px] h-10 text-title2 rounded-[8px] whitespace-nowrap cursor-pointer transition-colors",
category === "BEAUTY"
? "bg-core-1 text-white"
: "bg-white text-text-gray3 border border-gray-100"
Expand All @@ -27,7 +27,7 @@ export default function BrandFilterBar({ category, onCategoryChange, searchKeywo
</button>
<button
className={cn(
"px-[12px] py-[8px] h-10 text-title2 rounded-[8px] whitespace-nowrap cursor-pointer transition-colors font-semibold",
"px-[12px] py-[8px] h-10 text-title2 rounded-[8px] whitespace-nowrap cursor-pointer transition-colors",
category === "FASHION"
? "bg-core-1 text-white"
: "bg-white text-text-gray3 border border-gray-100"
Expand Down
21 changes: 5 additions & 16 deletions app/routes/matching/components/MatchingFilter.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { useState } from "react";
import { cn } from "../../../lib/utils";
import FilterChip from "../../../components/common/FilterChip";
import SelectChip from "../test/components/SelectChip";
import {
SORT_OPTIONS,
Expand Down Expand Up @@ -82,7 +81,7 @@ export default function MatchingFilter({
<button
type="button"
className={cn(
"text-title3 font-semibold cursor-pointer transition-colors",
"text-title3 cursor-pointer transition-colors",
mainTab === "정렬 필터" ? "text-text-black" : "text-text-gray3",
)}
onClick={() => setMainTab("정렬 필터")}
Expand All @@ -94,7 +93,7 @@ export default function MatchingFilter({
<button
type="button"
className={cn(
"text-title3 font-semibold cursor-pointer transition-colors",
"text-title3 cursor-pointer transition-colors",
mainTab === filterTabName ? "text-text-black" : "text-text-gray3",
)}
onClick={() => setMainTab(filterTabName)}
Expand Down Expand Up @@ -162,22 +161,12 @@ export default function MatchingFilter({
</button>
{(filterData[subTab as keyof typeof filterData] as readonly string[]).map((tag) => {
const selected = currentTags.includes(tag);
if (filterType === "BEAUTY") {
return (
<SelectChip
key={tag}
label={tag}
isSelected={selected}
onToggle={() => toggleTag(tag)}
/>
);
}
return (
<FilterChip
<SelectChip
key={tag}
label={tag}
selected={selected}
onClick={() => toggleTag(tag)}
isSelected={selected}
onToggle={() => toggleTag(tag)}
/>
);
})}
Expand Down
3 changes: 1 addition & 2 deletions app/routes/matching/test/components/SelectChip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,10 @@ export default function SelectChip({
disabled={disabled}
className={[
"flex items-center justify-center",
"h-[28px] px-[10px] py-1",
"h-[28px] px-2.5 py-1",
"rounded-[20px]",
"border",
"text-body1",
"shadow-[0_1px_3px_0_var(--color-text-gray4)]",
"transition-colors",
disabled ? "opacity-50 cursor-not-allowed" : "active:opacity-90",
isSelected
Expand Down
2 changes: 1 addition & 1 deletion app/routes/matching/test/step1/step1-content.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export default function MatchingTestContent({
<div className="w-full mx-auto h-full bg-white flex flex-col">
<MatchingTestTopBar step={1} totalSteps={3} onBack={onBack} />

<main className="flex-1 px-6 pb-6">
<main className="flex-1 px-6 pb-6 bg-white">
<h1 className="text-title leading-8 text-text-black">
관심 있는 <span className="text-core-1">뷰티 특성</span>을
<br />
Expand Down
Loading