Skip to content

Commit

Permalink
影?
Browse files Browse the repository at this point in the history
  • Loading branch information
akku1139 authored Feb 16, 2024
1 parent cd2d81d commit ea3f5f8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/components/ArticleCard.astro
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ export type Props = {
const { title, link, poster_name, poster_icon_url, tag, thumb_bg }: Props = Astro.props;
---

<a href={link} class="no-underline">
<div class="p-4">
<div class={`aspect-oblong sms:aspect-square sm:aspect-oblong rounded-t-xl relative p-0 flex items-center justify-center border border-1 border-gray-400 ${thumb_bg}`}>
<a href={link} class="no-underline shadow-xl">
<div class="p-4 border border-1 border-gray-400">
<div class={`aspect-oblong sms:aspect-square sm:aspect-oblong rounded-t-xl relative p-0 flex items-center justify-center ${thumb_bg}`}>
<slot />
{(tag !== undefined) &&
<div class={`text-xs text-center absolute left-4 top-3 py-1 px-2 font-bold rounded-full text-white ${tag.bg}`}>{tag.text}</div>
}
</div>
<div class="border border-1 border-gray-400 p-3 rounded-b-xl border-t-0 shadow-xl">
<div class="p-3 rounded-b-xl border-t-0">
<p class="text-sm font-bold line-clamp-3 h-20">{title}</p>
<div class="flex justify-right items-center mt-4">
<img src={poster_icon_url} class="w-8 rounded-full" />
Expand Down

0 comments on commit ea3f5f8

Please sign in to comment.