Skip to content

Commit

Permalink
오류 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
ipcgrdn committed Dec 5, 2024
1 parent c5573ef commit dff75eb
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 28 deletions.
60 changes: 34 additions & 26 deletions src/app/watch/[watchId]/mobileWatchPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,19 +40,35 @@ export default function MobileWatchPage() {
</div>

<div className="relative flex flex-col items-center gap-y-2 w-full mt-16">
<div className="bg-gradient-to-br from-[#FFFFFF33] to-[#99999933] aspect-square rounded-3xl mb-4 w-full overflow-y-auto max-h-96">
{view === "main" && (
<div className="p-6 flex items-center justify-center">
<Image
src="/images/albumcover.png"
alt="albumcover"
width={300}
height={300}
className="rounded-full"
/>
{view === "main" && (
<>
<div className="bg-gradient-to-br from-[#FFFFFF33] to-[#99999933] aspect-square rounded-3xl mb-4 w-full overflow-y-auto max-h-96">
<div className="p-6 flex items-center justify-center">
<Image
src="/images/albumcover.png"
alt="albumcover"
width={300}
height={300}
className="rounded-full"
/>
</div>
</div>
)}
{view === "lyrics" && (
<div className="text-3xl font-bold text-white truncate">
WHIPLASH
</div>
<div className="text-2xl font-bold text-neutral-300 flex items-center gap-x-2">
<Link href="/user/123" className="hover:underline truncate">
에스파
</Link>
<span>·</span>
<Link href="/album/123" className="hover:underline truncate">
WHIPLASH
</Link>
</div>
</>
)}
{view === "lyrics" && (
<div className="bg-gradient-to-br from-[#FFFFFF33] to-[#99999933] aspect-square rounded-3xl mb-4 w-full overflow-y-auto h-[468px]">
<div className="flex whitespace-pre-line p-4 items-center justify-center text-lg truncate leading-loose text-white">
Fancy 이건 참 화려해
<br />
Expand Down Expand Up @@ -84,23 +100,15 @@ export default function MobileWatchPage() {
<br />
외면해도 소용없지 don&apos;t you blow it?
</div>
)}
{view === "nowPlaying" && (
</div>
)}
{view === "nowPlaying" && (
<div className="bg-gradient-to-br from-[#FFFFFF33] to-[#99999933] aspect-square rounded-3xl mb-4 w-full overflow-y-auto h-[468px]">
<div className="p-4 w-full">
<WatchNowPlaying />
</div>
)}
</div>
<div className="text-3xl font-bold text-white truncate">WHIPLASH</div>
<div className="text-2xl font-bold text-neutral-300 flex items-center gap-x-2">
<Link href="/user/123" className="hover:underline truncate">
에스파
</Link>
<span>·</span>
<Link href="/album/123" className="hover:underline truncate">
WHIPLASH
</Link>
</div>
</div>
)}
</div>

<div className="relative flex flex-col items-center justify-center w-full py-4 mt-12">
Expand Down
4 changes: 3 additions & 1 deletion src/components/container/rectangle-container.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,16 @@ const RectangleContainer = ({
duration,
}: RectangleContainerProps) => {
return (
<div className="flex text-black items-center gap-x-4 p-2 mb-2 rounded-lg hover:bg-white/30 transition-colors">
<div className="flex text-black w-full items-center gap-x-4 p-2 mb-2 rounded-lg hover:bg-white/30 transition-colors">
<div className="flex">
<Image
src={cover}
alt="cover"
width={44}
height={44}
className="rounded-lg"
/>
</div>
<div className="flex-1 min-w-0">
<h3 className="font-semibold text-lg truncate">{name}</h3>
<p className="text-sm text-neutral-700 truncate">
Expand Down
2 changes: 1 addition & 1 deletion src/features/watch/watch-nowPlaying.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ const WatchNowPlaying = () => {
},
]
return (
<div className="flex flex-col h-full w-full items-center justify-center truncate">
<div className="flex flex-col h-full w-full items-center justify-center">
{dummy.map((item) => (
<RectangleContainer
key={item.id}
Expand Down

0 comments on commit dff75eb

Please sign in to comment.