This repository has been archived by the owner on Dec 27, 2024. It is now read-only.
-
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
Showing
3 changed files
with
64 additions
and
3 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,44 @@ | ||
import React from "react"; | ||
|
||
interface ResourceCardProps { | ||
id: number; | ||
title: string; | ||
link: string; | ||
category: string; | ||
imgSrc: string; | ||
} | ||
|
||
const ResourceCard = ({ | ||
id, | ||
title, | ||
link, | ||
category, | ||
imgSrc, | ||
}: ResourceCardProps) => { | ||
return ( | ||
<div className="max-w-sm bg-zinc-800 rounded overflow-hidden shadow-lg"> | ||
<img className="w-full" src={imgSrc} alt="Sunset in the mountains" /> | ||
<div className="px-6 py-4"> | ||
<div className="font-bold text-xl mb-2">The Coldest Sunset</div> | ||
<p className="text-gray-700 text-base"> | ||
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Voluptatibus | ||
quia, nulla! Maiores et perferendis eaque, exercitationem praesentium | ||
nihil. | ||
</p> | ||
</div> | ||
<div className="px-6 pt-4 pb-2"> | ||
<span className="inline-block bg-gray-200 rounded-full px-3 py-1 text-sm font-semibold text-gray-700 mr-2 mb-2"> | ||
#photography | ||
</span> | ||
<span className="inline-block bg-gray-200 rounded-full px-3 py-1 text-sm font-semibold text-gray-700 mr-2 mb-2"> | ||
#travel | ||
</span> | ||
<span className="inline-block bg-gray-200 rounded-full px-3 py-1 text-sm font-semibold text-gray-700 mr-2 mb-2"> | ||
#winter | ||
</span> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default ResourceCard; |
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,5 @@ | ||
--- | ||
import Layout from "../layouts/Layout.astro"; | ||
--- | ||
|
||
<Layout title="Biscuits"> Biscuits hops on commentaryu </Layout> |