Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/#182 출시이후 기능 안보이도록 수정 #183

Merged
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
feat: title 의 제목 글씨 크기 28px 로 축소
llddang committed Aug 29, 2024
commit 4d5de2356265b02de5023b9fa11fe6a10b4ca45c
17 changes: 3 additions & 14 deletions frontend/src/components/Title/index.tsx
Original file line number Diff line number Diff line change
@@ -1,22 +1,11 @@
import Link from 'next/link';

export interface TitleProps {
title: string;
description?: string;
urlText?: string;
url?: string;
}

const Title = ({ title, description, urlText, url }: TitleProps) => (
<div className="flex flex-col gap-4">
<div className="flex flex-grow justify-between">
<p className="cursor-default text-xl font-semibold">{title}</p>
{urlText && url && (
<Link href={url} className="flex items-center gap-1 text-sm text-comment">
{urlText}
</Link>
)}
</div>
const Title = ({ title, description }: TitleProps) => (
<div className="flex flex-col gap-1">
<p className="cursor-default text-[28px] font-semibold">{title}</p>
{description && <div className="text-comment">{description}</div>}
</div>
);