-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add
ProjectThumbnail
Astro component (#685)
- Loading branch information
1 parent
966de0a
commit a1ad90d
Showing
5 changed files
with
40 additions
and
83 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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
--- | ||
export interface Props { | ||
description: string, | ||
env: string, | ||
img: string, | ||
repo: string | ||
} | ||
const { description, env, img, repo } = Astro.props; | ||
--- | ||
|
||
<div class="card w-full bg-base-100 xs:shadow-xl mb-12 xs:mb-0 not-prose"> | ||
<div class="card-body p-0 xs:p-8 list-none"> | ||
<div class="flex justify-between"> | ||
<h2 class="card-title text-xl xs:text-4xl text-base-content"> | ||
<a href=`https://github.com/${env}/${repo}` class="stretched-link hover:underline font-normal break-all"> | ||
<span class="max-w-[50px]">{env}/</span> | ||
<br/> | ||
<strong class="font-bold max-w-[50px]">{repo}</strong> | ||
</a> | ||
</h2> | ||
<img src=`https://avatars.githubusercontent.com/u/${img}?v=4` aria-hidden="true" class="w-[50px] h-[50px] xs:w-[100px] xs:h-[100px] rounded-xl" /> | ||
</div> | ||
{description && <p>{description}</p>} | ||
</div> | ||
</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
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
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
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