Skip to content

Commit

Permalink
Add launch icon to pieces title on Featured Content
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew7li committed Aug 4, 2023
1 parent 059128b commit c4d0e48
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/components/carousel/CarouselItem.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import type { Content } from "@prisma/client";
import Link from "next/link";

import LaunchIcon from "@mui/icons-material/Launch";

interface ICarouselItemProps {
content: Content;
onClick: () => void;
Expand All @@ -22,7 +24,12 @@ export default function CarouselItem({ content, onClick }: ICarouselItemProps) {
}}
/>
<Link href={`/pieces/${content.id}`}>
<p className="-webkit-box line-clamp-1 overflow-hidden text-ellipsis text-[2.5rem] font-medium text-white">
<p className="-webkit-box line-clamp-1 overflow-hidden text-ellipsis text-[2.5rem] font-medium text-white hover:text-slate-300">
<LaunchIcon
style={{
margin: "0 10px 0 0",
}}
/>
{content.title}
</p>
</Link>
Expand Down

0 comments on commit c4d0e48

Please sign in to comment.