-
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.
refactor: add cta-slot to grant-item component
completes JOB-689
- Loading branch information
Showing
9 changed files
with
82 additions
and
46 deletions.
There are no files selected for viewing
This file was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
interface Props { | ||
id: string; | ||
} | ||
|
||
export const GrantCard = ({ id }: Props) => { | ||
// TODO: JOB-678 | ||
return ( | ||
<div className="flex flex-col gap-3 rounded-lg bg-gradient-to-l from-[#0D0D0D] to-primary p-6 py-16 transition-all duration-300 hover:bg-white/10"> | ||
<span className="font-bold">{`Grant Program ${id}`}</span> | ||
</div> | ||
); | ||
}; | ||
|
||
// TODO: Extract to cta-slot for grant-item component | ||
{ | ||
/* <div className="flex flex-col gap-3"> | ||
<div className="flex size-32 items-center justify-center bg-white/5"> | ||
<span>LOGO HERE: {logo}</span> | ||
</div> | ||
<div className="flex items-center gap-3"> | ||
{url && ( | ||
<Button size="sm" as={Link} href={url} isIconOnly> | ||
<WebIcon /> | ||
</Button> | ||
)} | ||
{discord && ( | ||
<Button size="sm" as={Link} href={discord} isIconOnly> | ||
<DiscordIcon /> | ||
</Button> | ||
)} | ||
{twitter && ( | ||
<Button size="sm" as={Link} href={twitter} isIconOnly> | ||
<TwitterIcon /> | ||
</Button> | ||
)} | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export * from './grant-card'; |
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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import { Button } from '@nextui-org/react'; | ||
|
||
const CaretRightIcon = () => ( | ||
<svg | ||
width="32" | ||
height="33" | ||
viewBox="0 0 32 33" | ||
fill="none" | ||
xmlns="http://www.w3.org/2000/svg" | ||
> | ||
<path | ||
fillRule="evenodd" | ||
clipRule="evenodd" | ||
d="M12.2929 10.7929C12.6834 10.4024 13.3166 10.4024 13.7071 10.7929L18.7071 15.7929C19.0976 16.1834 19.0976 16.8166 18.7071 17.2071L13.7071 22.2071C13.3166 22.5976 12.6834 22.5976 12.2929 22.2071C11.9024 21.8166 11.9024 21.1834 12.2929 20.7929L16.5858 16.5L12.2929 12.2071C11.9024 11.8166 11.9024 11.1834 12.2929 10.7929Z" | ||
fill="#F9FAFB" | ||
/> | ||
</svg> | ||
); | ||
|
||
export const GrantListCTA = () => { | ||
return ( | ||
<div className="flex size-40 items-center justify-center"> | ||
<div className="flex items-center gap-4"> | ||
<Button color="primary"> | ||
<span>Apply</span> | ||
</Button> | ||
<CaretRightIcon /> | ||
</div> | ||
</div> | ||
); | ||
}; |
6 changes: 4 additions & 2 deletions
6
src/grants/components/grant-list.tsx → ...ants/components/grant-list/grant-list.tsx
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 @@ | ||
export * from './grant-list'; |
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