generated from satnaing/astro-paper
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #100 from calimania/feat/product-hunt
Fixes to product and checkout modal
- Loading branch information
Showing
17 changed files
with
6,018 additions
and
7,714 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
Large diffs are not rendered by default.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
import type { FC } from 'react'; | ||
|
||
interface Props { | ||
href: string; | ||
title: string; | ||
description: string; | ||
icon?: string; | ||
} | ||
|
||
const PageCard: FC<Props> = ({ href, title, description, icon = "📄" }) => { | ||
return ( | ||
<li className="w-full mb-4"> | ||
<a | ||
href={href} | ||
className="block p-6 bg-white dark:bg-gray-800 rounded-lg border border-gray-200 dark:border-gray-700 hover:border-accent-500 dark:hover:border-accent-500 transition-all duration-300" | ||
> | ||
<div className="flex items-start space-x-4"> | ||
<span className="text-2xl" role="img" aria-label="page icon"> | ||
{icon} | ||
</span> | ||
<div className="flex-1"> | ||
<h3 className="text-xl font-semibold text-gray-900 dark:text-white mb-2 group-hover:text-accent-500"> | ||
{title} | ||
</h3> | ||
<p className="text-gray-600 dark:text-gray-300"> | ||
{description} | ||
</p> | ||
</div> | ||
<div className="text-accent-500 dark:text-accent-400"> | ||
<svg className="w-6 h-6" fill="none" viewBox="0 0 24 24" stroke="currentColor"> | ||
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M9 5l7 7-7 7" /> | ||
</svg> | ||
</div> | ||
</div> | ||
</a> | ||
</li> | ||
); | ||
} | ||
|
||
export default PageCard; |
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
Oops, something went wrong.