-
Notifications
You must be signed in to change notification settings - Fork 1
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
7 changed files
with
47 additions
and
47 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
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,19 @@ | ||
export function Card({ className, button, titleUrl, cardUrl, title, description, icon, children }: { className?: string, button?: React.ReactNode, titleUrl?: string, cardUrl?: string, title: string, description?: string | React.ReactNode, icon?: React.ReactNode, children?: React.ReactNode }): JSX.Element { | ||
return ( | ||
<div className={`${className} px-4 py-4 rounded-lg shadow bg-primary`}> | ||
import Link from "next/link"; | ||
|
||
<a href={titleUrl ?? undefined} target="_blank" className="flex flex-row gap-2 mb-2 shrink"> | ||
export function Card({ className, button, cardUrl, title, description, icon, children }: { className?: string, button?: React.ReactNode, cardUrl?: string, title: string, description?: string | React.ReactNode, icon?: React.ReactNode, children?: React.ReactNode }): JSX.Element { | ||
return ( | ||
<a href={cardUrl ?? undefined} target="_blank" className={`${className} px-4 py-4 rounded-lg shadow bg-primary`}> | ||
<div className="flex flex-row items-start gap-2 mb-2 shrink"> | ||
{icon} | ||
<h5 className="text-lg font-semibold place-self-center text-gray-900 dark:text-white">{title}</h5> | ||
</a> | ||
<div className="flex flex-row justify-between text-gray-500 dark:text-gray-400"> | ||
<h5 className="md:text-lg sm:text-base font-semibold place-self-center text-pretty text-gray-900 dark:text-white">{title}</h5> | ||
</div> | ||
<div className="flex flex-row items-start justify-between text-gray-500 dark:text-gray-400"> | ||
<span className="mr-[5px]"> | ||
{description} | ||
{children} | ||
</span> | ||
{button} | ||
</div> | ||
</div> | ||
</a> | ||
) | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -49,6 +49,6 @@ export default function Contact() { | |
</Button> | ||
))} | ||
</div> | ||
</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