-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c31ef6e
commit fbd65e4
Showing
2 changed files
with
20 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,24 @@ | ||
--- | ||
import Badge from "./Badge.astro"; | ||
interface Props { | ||
title: string; | ||
description: string; | ||
url: string; | ||
index: number; | ||
} | ||
const { title, description, url } = Astro.props; | ||
const { title, description, url, index } = Astro.props; | ||
--- | ||
|
||
<div class="hover:bg-neutral-100 dark:hover:bg-[#242424] px-2 py-4 rounded-md"> | ||
<a href={url}> | ||
<h2 class="text-lg font-semibold"> | ||
{title} | ||
</h2> | ||
<div class="flex items-center gap-4"> | ||
<h2 class="text-lg font-semibold"> | ||
{title} | ||
</h2> | ||
{index === 0 && <Badge>new!</Badge>} | ||
</div> | ||
<p>{description}</p> | ||
</a> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters