Refactor: components 클래스 코드 스타일 수정

This commit is contained in:
정현조 2024-08-28 10:30:44 +09:00
parent e746491e44
commit 198042108e
5 changed files with 13 additions and 13 deletions

View File

@ -12,13 +12,13 @@ export default function Footer({ className, ...props }: FooterProps) {
<div className="container py-10">
<div className="flex flex-col items-start gap-5">
<div className="relative">
<div className="text-lg text-gray-600 font-heading md:text-xl">WorLabel</div>
<p className="mt-2 text-gray-500 font-body-small">Copyright © 2024 WorLabel All rights reserved</p>
<div className="font-heading text-lg text-gray-600 md:text-xl">WorLabel</div>
<p className="font-body-small mt-2 text-gray-500">Copyright © 2024 WorLabel All rights reserved</p>
</div>
<div className="inline-flex items-center gap-4">
<div className="text-gray-500 font-body-small"> </div>
<div className="w-px h-4 bg-gray-400" />
<div className="text-gray-500 font-body-small"> </div>
<div className="font-body-small text-gray-500"> </div>
<div className="h-4 w-px bg-gray-400" />
<div className="font-body-small text-gray-500"> </div>
</div>
</div>
</div>

View File

@ -22,7 +22,7 @@ export default function Header({ className, ...props }: HeaderProps) {
>
WorLabel
</div>
<nav className="items-center hidden gap-5 md:flex">
<nav className="hidden items-center gap-5 md:flex">
<div className={cn('text-color-text-default-default', 'font-body-strong', 'text-sm sm:text-base md:text-lg')}>
workspace
</div>
@ -33,12 +33,12 @@ export default function Header({ className, ...props }: HeaderProps) {
</div>
<div className="flex items-center gap-4 md:gap-5">
<img
className="w-4 h-4 sm:h-5 sm:w-5"
className="h-4 w-4 sm:h-5 sm:w-5"
src={bellIcon}
alt="Bell Icon"
/>
<img
className="w-4 h-4 sm:h-5 sm:w-5"
className="h-4 w-4 sm:h-5 sm:w-5"
src={userIcon}
alt="User Icon"
/>

View File

@ -25,7 +25,7 @@ export default function Button({ isActive, text, onClick, progress = 0 }: Button
>
<span className="relative z-10 font-sans text-base font-bold leading-6">{buttonText}</span>
<div
className="absolute top-0 left-0 z-0 h-full duration-300 bg-white transition-width bg-opacity-20"
className="transition-width absolute left-0 top-0 z-0 h-full bg-white bg-opacity-20 duration-300"
style={{ width: `var(--progress-width, 0%)` }}
></div>
</button>

View File

@ -8,8 +8,8 @@ interface FileListProps {
export default function FileList({ files, onRemoveFile }: FileListProps): JSX.Element {
return (
<div className="max-w-full overflow-x-hidden overflow-y-auto max-h-52">
<ul className="p-0 m-0 list-none">
<div className="max-h-52 max-w-full overflow-y-auto overflow-x-hidden">
<ul className="m-0 list-none p-0">
{files.map((file, index) => (
<li
key={index}

View File

@ -69,7 +69,7 @@ export default function ImageUploadModal({ title, buttonText, onClose }: ImageUp
<header className="flex items-center justify-between">
<h1 className="small-title">{title}</h1>
<button
className="flex items-center justify-center w-8 h-8"
className="flex h-8 w-8 items-center justify-center"
onClick={handleClose}
>
<CloseButton />
@ -87,7 +87,7 @@ export default function ImageUploadModal({ title, buttonText, onClose }: ImageUp
<input
type="file"
multiple
className="absolute inset-0 w-full h-full opacity-0 cursor-pointer"
className="absolute inset-0 h-full w-full cursor-pointer opacity-0"
onChange={handleFilesUpload}
/>
<p className="font-sans text-base font-normal leading-relaxed text-gray-500">