Skip to content

Commit

Permalink
๐Ÿš‘ fix: ์ด๋ฆ„์ˆ˜์ •, ์‹œ๊ฐ„๊ณ„์‚ฐ ์ˆ˜์ •
Browse files Browse the repository at this point in the history
  • Loading branch information
HaeJungg committed Nov 24, 2024
1 parent 7c42a0d commit a6dfef8
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/app/(auth)/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export default function AuthLayout({
<div className="flex h-full w-full flex-col items-center bg-white p-6 md:w-1/2 md:justify-center md:p-8 lg:p-20">
<div className="text-xl font-semibold md:text-2xl lg:text-3xl">Welcome,</div>
<div className="text-center text-xl font-semibold md:text-2xl lg:text-3xl">
ํฌ๋ฃจ์— ์˜ค์‹  ๊ฒƒ์„ ํ™˜์˜ํ•ฉ๋‹ˆ๋‹ค ๐Ÿ™Œ
ํฌ๋ฃจํฌ๋ฃจ์— ์˜ค์‹  ๊ฒƒ์„ ํ™˜์˜ํ•ฉ๋‹ˆ๋‹ค ๐Ÿ™Œ
</div>
<div className="mt-4 text-center text-sm font-semibold lg:text-base">
ํ•จ๊ป˜ํ•  ์‚ฌ๋žŒ์ด์—†๋‚˜์š”? ์ง€๊ธˆ ํฌ๋ฃจ์— ์ฐธ์—ฌํ•ด๋ณด์„ธ์š”
Expand Down
2 changes: 1 addition & 1 deletion src/app/(auth)/login/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export default function LoginPage() {
<div>
<LoginForm formMethods={formMethods} onSubmit={handleSubmit} />
<div className="mt-6 flex justify-center space-x-1 text-sm font-medium">
<div>ํฌ๋ฃจ๊ฐ€ ์ฒ˜์Œ์ด์‹ ๊ฐ€์š”?</div>
<div>ํฌ๋ฃจํฌ๋ฃจ๊ฐ€ ์ฒ˜์Œ์ด์‹ ๊ฐ€์š”?</div>
<Link
href={redirect !== '/' ? `/signup?redirect=${redirect}` : '/signup'}
className="text-blue-500 underline"
Expand Down
7 changes: 3 additions & 4 deletions src/components/common/gathering-card/container.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,8 @@ export default function GatheringCard({
const today = new Date();
const isPast = gatheringDate < today;

// 24์‹œ๊ฐ„ ์ด๋‚ด์ธ์ง€ ํ™•์ธ
const timeDifference = gatheringDate.getTime() - today.getTime();
const isWithin24Hours = timeDifference > 0 && timeDifference <= 24 * 60 * 60 * 1000;
// ์˜ค๋Š˜ ์ด๋‚ธ์ง€ ํ™•์ธ
const isToday = gatheringDate.toDateString() === today.toDateString();

// ๋งˆ๊ฐ ์‹œ๊ฐ„ ๋ฌธ์ž์—ด ์ƒ์„ฑ
const deadlineMessage = `์˜ค๋Š˜ ${gatheringDate.getHours()}์‹œ ๋งˆ๊ฐ`;
Expand Down Expand Up @@ -87,7 +86,7 @@ export default function GatheringCard({
id={id}
isPast={isPast}
deadlineMessage={deadlineMessage}
isWithin24Hours={isWithin24Hours}
isToday={isToday}
title={title}
dateTime={dateTime}
location={location}
Expand Down
6 changes: 3 additions & 3 deletions src/components/common/gathering-card/presenter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export interface GatheringCardPresenterProps {
onLikeToggle: () => void;
onClick: () => void;
isPast: boolean;
isWithin24Hours?: boolean;
isToday?: boolean;
deadlineMessage?: string;
className?: string;
}
Expand All @@ -36,7 +36,7 @@ export default function GatheringCardPresenter({
onLikeToggle,
onClick,
isPast,
isWithin24Hours,
isToday,
deadlineMessage,
className,
}: GatheringCardPresenterProps) {
Expand Down Expand Up @@ -64,7 +64,7 @@ export default function GatheringCardPresenter({
/>
</div>

{isWithin24Hours && (
{isToday && (
<div className="absolute right-0 top-0 flex items-center space-x-1 bg-blue-600 px-4 py-2 text-white">
<Image src={IcoTimer} alt="timer icon" width={16} height={16} />
<p className="text-base font-medium">{deadlineMessage}</p>
Expand Down

0 comments on commit a6dfef8

Please sign in to comment.