Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
116 commits
Select commit Hold shift + click to select a range
bb2d21c
wishlist form
pettinarip Sep 22, 2025
fa97c29
add url segment for wishlist items
pettinarip Sep 22, 2025
3de524e
rfp form
pettinarip Sep 22, 2025
d1f3027
refactor: extract reusable form sections and create BaseGrantForm to …
pettinarip Sep 22, 2025
05ab7a1
cleanup wishlist item selection
pettinarip Sep 23, 2025
ff0682b
convert wishlist items into buttons
pettinarip Sep 23, 2025
296e78d
refactor rfp application items
pettinarip Sep 23, 2025
bffa8c8
cleanup
pettinarip Sep 23, 2025
36924e8
fetch grant initiatives from sf
pettinarip Sep 23, 2025
d590893
merge item selection step to the landing page
pettinarip Sep 25, 2025
ef72ba3
cleanup schemas
pettinarip Sep 25, 2025
118aab9
use native input for hidden input to avoid inheriting required prop f…
pettinarip Sep 25, 2025
362966c
replace deprecated motion() with motion.create()
pettinarip Sep 25, 2025
2dcf9e9
fix submission for multipart form data and adjust file validation
pettinarip Sep 25, 2025
8beedb6
adjust thank you pages
pettinarip Sep 25, 2025
55a4d79
add rfp api handler
pettinarip Sep 25, 2025
3cf8f12
convert referral field to a text area
pettinarip Sep 25, 2025
074e2fe
focus error on submission
pettinarip Sep 25, 2025
e222bc5
set max width to grid items
pettinarip Sep 25, 2025
1a7cc49
fix types
pettinarip Sep 25, 2025
22c8f0f
setup sf submission for wishlists and rfps
pettinarip Sep 25, 2025
a7b1190
refactor: merge sf code
pettinarip Sep 25, 2025
f7ac15f
update record ids
pettinarip Sep 25, 2025
d7215ec
feat: add composition pattern to BaseGrantForm for flexible field lay…
pettinarip Sep 29, 2025
88ab20c
make fileupload field optional for the wishlist form
pettinarip Sep 29, 2025
99b0737
separate wishlist and rfp schemas
pettinarip Sep 29, 2025
26edb5d
read initiatives from sf
pettinarip Sep 29, 2025
980c177
fix integration with sf
pettinarip Sep 29, 2025
7a79766
upload files for wishlists and rfps
pettinarip Sep 29, 2025
c34683b
direct-grant form
pettinarip Sep 29, 2025
c333327
move direct grant to /form-direct
pettinarip Sep 30, 2025
c76becd
change referral copy for direct-grant form field
pettinarip Sep 30, 2025
0d10931
refactor sections to make it more flexible
pettinarip Sep 30, 2025
bc4a9ce
update office hours fields
pettinarip Sep 30, 2025
a76e1a6
homepage content
corwintines Oct 9, 2025
c75b6f3
applicants page copy changes
corwintines Oct 10, 2025
8c491f8
fix applicants sidebar
corwintines Oct 10, 2025
a2c7dbf
office hours content update
corwintines Oct 10, 2025
8d7ddd7
wishlist copy update
corwintines Oct 10, 2025
aaf012e
rfp copy changes
corwintines Oct 10, 2025
7ea896f
about content
corwintines Oct 11, 2025
4f2c5eb
homepage ecodev
corwintines Oct 11, 2025
b1c7658
pdf upload
corwintines Oct 13, 2025
40bbcff
updates schemas to require file upload
corwintines Oct 13, 2025
6b357bb
Updated record time and Status__c
corwintines Oct 13, 2025
333bbf6
remove wishlist redirect
corwintines Oct 14, 2025
bca6b57
feat: implement new other teams section
minimalsm Oct 16, 2025
15bfa93
feat: add all wishlist mappings from salesforce
minimalsm Oct 16, 2025
a2ce579
Adjust fields
minimalsm Oct 16, 2025
f3e43c0
Remove expected deliverables from grant initative field
minimalsm Oct 16, 2025
e967f49
Remove hard requirements
minimalsm Oct 16, 2025
581859b
Remove unnecessary imports
minimalsm Oct 16, 2025
896c301
implement RFP UI and fields
minimalsm Oct 16, 2025
952f596
Fix typo
minimalsm Oct 16, 2025
f177127
Update fields
minimalsm Oct 16, 2025
8e900c3
Test without rfp fields
minimalsm Oct 16, 2025
71ae1fe
Readd hard requirements
minimalsm Oct 16, 2025
8c85cf5
A comma
minimalsm Oct 16, 2025
38cd110
Update new mapping
minimalsm Oct 16, 2025
73d1317
Add other sections
minimalsm Oct 16, 2025
6058bb8
Update data files
minimalsm Oct 16, 2025
c981ebc
Fix broken
minimalsm Oct 16, 2025
578a108
add revalidation
minimalsm Oct 16, 2025
d749837
Use ecosystem support logo
minimalsm Oct 16, 2025
97aeee4
Homepage copy
minimalsm Oct 16, 2025
0508123
Update applicants copy
minimalsm Oct 16, 2025
41dc84c
Update wishlist copy
minimalsm Oct 16, 2025
658048d
Update applicants copy and about copy
minimalsm Oct 16, 2025
ada6909
Merge pull request #462 from minimalsm/esp-revamp-forms-homepage-content
minimalsm Oct 17, 2025
9d01894
Merge pull request #465 from minimalsm/esp-revamp-forms-rfpfields
minimalsm Oct 17, 2025
7a2f91d
Merge pull request #467 from minimalsm/esp-revamp-logo
minimalsm Oct 17, 2025
86bd222
Merge pull request #466 from minimalsm/esp-revamp-forms-revalidation
minimalsm Oct 17, 2025
5f7f33d
Custom budget errors
minimalsm Oct 17, 2025
2edf4ac
Remove 500 char min from funding, impact, and community feedback
minimalsm Oct 17, 2025
f2d3346
Make additional information three rows
minimalsm Oct 17, 2025
1464018
Update PDF proposal helper text
minimalsm Oct 17, 2025
19b783e
Add license dropdown
minimalsm Oct 17, 2025
9dbd220
Make referral optional on RFP and wishlist forms
minimalsm Oct 17, 2025
c3deb0f
Update thank you pages
minimalsm Oct 17, 2025
5fc90df
Update OSS field
minimalsm Oct 17, 2025
aaa4d8f
Update picklist OSS
minimalsm Oct 17, 2025
9b8e711
Merge pull request #469 from minimalsm/esp-revamp-forms-applicaiton-f…
corwintines Oct 17, 2025
5094eef
Merge pull request #468 from minimalsm/esp-revamp-copy
corwintines Oct 17, 2025
2113167
fix lint
corwintines Oct 17, 2025
fc94143
abstract SupportTeamCards
corwintines Oct 17, 2025
08ff4aa
Images on /about
corwintines Oct 17, 2025
57cb929
move support teams
corwintines Oct 17, 2025
e6f0f07
Add dropdown filter
corwintines Oct 17, 2025
7d12730
table and list view
corwintines Oct 17, 2025
b4158b3
change requests
corwintines Oct 22, 2025
8d5ad6e
Implement URL parsing utility and enhance RFP/Wishlist selection comp…
corwintines Oct 23, 2025
a5e394d
filter functionality updates
corwintines Oct 23, 2025
3e15ea2
switch logos on about page
corwintines Oct 23, 2025
e7f5c23
remove description on apply page, and add more details in FromBlocks
corwintines Oct 23, 2025
8b54f45
query params
corwintines Oct 23, 2025
97262e5
Add RFP and Wishlist item pages
corwintines Oct 23, 2025
e12a32f
office hours application Lead to Application__c
corwintines Oct 23, 2025
1d693e4
fix file upload
corwintines Oct 24, 2025
fad9683
different router experience
corwintines Oct 24, 2025
0abad90
update office hours fields mapping
pettinarip Oct 24, 2025
3794a52
setup Custom_URL_Slug__c and setup Link for GridItem and ListItem
corwintines Oct 27, 2025
6b78f8e
team backgrounds
corwintines Oct 27, 2025
b7d1e3e
Move applicantProfile question
corwintines Oct 27, 2025
54d682c
Budget header
corwintines Oct 27, 2025
9c78598
Change requests
corwintines Oct 29, 2025
b5a8dab
survey form
pettinarip Oct 29, 2025
5c759c1
add jwt token for csat survey submission
pettinarip Oct 29, 2025
ad9a211
use max text area length constant
pettinarip Oct 29, 2025
0253a5f
fix applicantProfile field validation
pettinarip Oct 29, 2025
9f2254a
leave only toast message for the success feedback
pettinarip Oct 29, 2025
2cc75b5
button width and link
corwintines Oct 29, 2025
185b238
reset captcha token after successful submission
pettinarip Oct 30, 2025
ac864bc
remove Selected text from wishlist and rfp item pages
pettinarip Oct 30, 2025
8756cfd
add pre-line styles to item description
pettinarip Oct 30, 2025
d133ab8
content updates
corwintines Oct 30, 2025
e446e51
Merge branch 'master' into esp-revamp-forms
corwintines Oct 30, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .env.local.example
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,7 @@ HCAPTCHA_SECRET=0x0000000000000000000000000000000000000000

# listmonk
LISTMONK_API_USERNAME=
LISTMONK_API_ACCESS_TOKEN=
LISTMONK_API_ACCESS_TOKEN=

# csat survey JWT secret
CSAT_JWT_SECRET=
8 changes: 0 additions & 8 deletions netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,6 @@
from = "/*/support/"
to = "/about/"
force = true
[[redirects]]
from = "/*/wishlist/"
to = "/about/"
force = true
[[redirects]]
from = "/*/projects/"
to = "/about/who-we-support/"
Expand Down Expand Up @@ -146,10 +142,6 @@
from = "/support/"
to = "/about/"
force = true
[[redirects]]
from = "/wishlist/"
to = "/about/"
force = true
[[redirects]]
from = "/projects/"
to = "/about/who-we-support/"
Expand Down
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@
"framer-motion": "^11.0.5",
"google-spreadsheet": "^3.2.0",
"jsforce": "^1.11.0",
"jsonwebtoken": "^9.0.2",
"lucide-react": "^0.546.0",
"next": "^14.1.0",
"next-sitemap": "^2.5.7",
"papaparse": "^5.3.1",
Expand All @@ -48,6 +50,7 @@
"@types/formidable": "^2.0.4",
"@types/google-spreadsheet": "^3.1.5",
"@types/jsforce": "^1.9.37",
"@types/jsonwebtoken": "^9.0.10",
"@types/mailchimp__mailchimp_marketing": "^3.0.3",
"@types/node": "17.0.0",
"@types/papaparse": "^5.3.2",
Expand Down
95 changes: 95 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added public/images/ecosystem-support-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/funding-coordination-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/grant-management-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/launchpad-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
56 changes: 41 additions & 15 deletions public/sitemap-0.xml
Original file line number Diff line number Diff line change
@@ -1,18 +1,44 @@
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:news="http://www.google.com/schemas/sitemap-news/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:mobile="http://www.google.com/schemas/sitemap-mobile/1.0" xmlns:image="http://www.google.com/schemas/sitemap-image/1.1" xmlns:video="http://www.google.com/schemas/sitemap-video/1.1">
<url><loc>https://esp.ethereum.foundation</loc><changefreq>daily</changefreq><priority>0.7</priority><lastmod>2022-06-15T19:25:49.864Z</lastmod></url>
<url><loc>https://esp.ethereum.foundation/about</loc><changefreq>daily</changefreq><priority>0.7</priority><lastmod>2022-06-15T19:25:49.864Z</lastmod></url>
<url><loc>https://esp.ethereum.foundation/about/how-we-support</loc><changefreq>daily</changefreq><priority>0.7</priority><lastmod>2022-06-15T19:25:49.864Z</lastmod></url>
<url><loc>https://esp.ethereum.foundation/about/who-we-support</loc><changefreq>daily</changefreq><priority>0.7</priority><lastmod>2022-06-15T19:25:49.864Z</lastmod></url>
<url><loc>https://esp.ethereum.foundation/academic-grants</loc><changefreq>daily</changefreq><priority>0.7</priority><lastmod>2022-06-15T19:25:49.864Z</lastmod></url>
<url><loc>https://esp.ethereum.foundation/academic-grants/apply</loc><changefreq>daily</changefreq><priority>0.7</priority><lastmod>2022-06-15T19:25:49.864Z</lastmod></url>
<url><loc>https://esp.ethereum.foundation/applicants</loc><changefreq>daily</changefreq><priority>0.7</priority><lastmod>2022-06-15T19:25:49.864Z</lastmod></url>
<url><loc>https://esp.ethereum.foundation/applicants/office-hours</loc><changefreq>daily</changefreq><priority>0.7</priority><lastmod>2022-06-15T19:25:49.864Z</lastmod></url>
<url><loc>https://esp.ethereum.foundation/applicants/office-hours/apply</loc><changefreq>daily</changefreq><priority>0.7</priority><lastmod>2022-06-15T19:25:49.864Z</lastmod></url>
<url><loc>https://esp.ethereum.foundation/applicants/project-grants</loc><changefreq>daily</changefreq><priority>0.7</priority><lastmod>2022-06-15T19:25:49.864Z</lastmod></url>
<url><loc>https://esp.ethereum.foundation/applicants/project-grants/apply</loc><changefreq>daily</changefreq><priority>0.7</priority><lastmod>2022-06-15T19:25:49.864Z</lastmod></url>
<url><loc>https://esp.ethereum.foundation/applicants/small-grants</loc><changefreq>daily</changefreq><priority>0.7</priority><lastmod>2022-06-15T19:25:49.864Z</lastmod></url>
<url><loc>https://esp.ethereum.foundation/applicants/small-grants/apply</loc><changefreq>daily</changefreq><priority>0.7</priority><lastmod>2022-06-15T19:25:49.864Z</lastmod></url>
<url><loc>https://esp.ethereum.foundation/devcon-grants</loc><changefreq>daily</changefreq><priority>0.7</priority><lastmod>2022-06-15T19:25:49.864Z</lastmod></url>
<url><loc>https://esp.ethereum.foundation/devcon-grants/apply</loc><changefreq>daily</changefreq><priority>0.7</priority><lastmod>2022-06-15T19:25:49.864Z</lastmod></url>
<url><loc>https://esp.ethereum.foundation</loc><changefreq>daily</changefreq><priority>0.7</priority><lastmod>2025-10-17T14:49:03.338Z</lastmod></url>
<url><loc>https://esp.ethereum.foundation/10-year-anniversary</loc><changefreq>daily</changefreq><priority>0.7</priority><lastmod>2025-10-17T14:49:03.339Z</lastmod></url>
<url><loc>https://esp.ethereum.foundation/about</loc><changefreq>daily</changefreq><priority>0.7</priority><lastmod>2025-10-17T14:49:03.339Z</lastmod></url>
<url><loc>https://esp.ethereum.foundation/academic-grants</loc><changefreq>daily</changefreq><priority>0.7</priority><lastmod>2025-10-17T14:49:03.339Z</lastmod></url>
<url><loc>https://esp.ethereum.foundation/academic-grants-2022</loc><changefreq>daily</changefreq><priority>0.7</priority><lastmod>2025-10-17T14:49:03.339Z</lastmod></url>
<url><loc>https://esp.ethereum.foundation/academic-grants-2023</loc><changefreq>daily</changefreq><priority>0.7</priority><lastmod>2025-10-17T14:49:03.339Z</lastmod></url>
<url><loc>https://esp.ethereum.foundation/academic-grants-2024</loc><changefreq>daily</changefreq><priority>0.7</priority><lastmod>2025-10-17T14:49:03.339Z</lastmod></url>
<url><loc>https://esp.ethereum.foundation/account-abstraction-grants</loc><changefreq>daily</changefreq><priority>0.7</priority><lastmod>2025-10-17T14:49:03.339Z</lastmod></url>
<url><loc>https://esp.ethereum.foundation/applicants</loc><changefreq>daily</changefreq><priority>0.7</priority><lastmod>2025-10-17T14:49:03.339Z</lastmod></url>
<url><loc>https://esp.ethereum.foundation/applicants/office-hours</loc><changefreq>daily</changefreq><priority>0.7</priority><lastmod>2025-10-17T14:49:03.339Z</lastmod></url>
<url><loc>https://esp.ethereum.foundation/applicants/office-hours/apply</loc><changefreq>daily</changefreq><priority>0.7</priority><lastmod>2025-10-17T14:49:03.339Z</lastmod></url>
<url><loc>https://esp.ethereum.foundation/applicants/rfp</loc><changefreq>daily</changefreq><priority>0.7</priority><lastmod>2025-10-17T14:49:03.339Z</lastmod></url>
<url><loc>https://esp.ethereum.foundation/applicants/rfp/thank-you</loc><changefreq>daily</changefreq><priority>0.7</priority><lastmod>2025-10-17T14:49:03.339Z</lastmod></url>
<url><loc>https://esp.ethereum.foundation/applicants/wishlist</loc><changefreq>daily</changefreq><priority>0.7</priority><lastmod>2025-10-17T14:49:03.339Z</lastmod></url>
<url><loc>https://esp.ethereum.foundation/applicants/wishlist/thank-you</loc><changefreq>daily</changefreq><priority>0.7</priority><lastmod>2025-10-17T14:49:03.339Z</lastmod></url>
<url><loc>https://esp.ethereum.foundation/data-challenge-4844</loc><changefreq>daily</changefreq><priority>0.7</priority><lastmod>2025-10-17T14:49:03.339Z</lastmod></url>
<url><loc>https://esp.ethereum.foundation/data-collection-grants</loc><changefreq>daily</changefreq><priority>0.7</priority><lastmod>2025-10-17T14:49:03.339Z</lastmod></url>
<url><loc>https://esp.ethereum.foundation/devcon-grants</loc><changefreq>daily</changefreq><priority>0.7</priority><lastmod>2025-10-17T14:49:03.339Z</lastmod></url>
<url><loc>https://esp.ethereum.foundation/devcon-grants/apply</loc><changefreq>daily</changefreq><priority>0.7</priority><lastmod>2025-10-17T14:49:03.339Z</lastmod></url>
<url><loc>https://esp.ethereum.foundation/epf-application/apply</loc><changefreq>daily</changefreq><priority>0.7</priority><lastmod>2025-10-17T14:49:03.339Z</lastmod></url>
<url><loc>https://esp.ethereum.foundation/epf-application/thank-you</loc><changefreq>daily</changefreq><priority>0.7</priority><lastmod>2025-10-17T14:49:03.339Z</lastmod></url>
<url><loc>https://esp.ethereum.foundation/form-10yoe/apply</loc><changefreq>daily</changefreq><priority>0.7</priority><lastmod>2025-10-17T14:49:03.339Z</lastmod></url>
<url><loc>https://esp.ethereum.foundation/form-10yoe/thank-you</loc><changefreq>daily</changefreq><priority>0.7</priority><lastmod>2025-10-17T14:49:03.339Z</lastmod></url>
<url><loc>https://esp.ethereum.foundation/form-direct/apply</loc><changefreq>daily</changefreq><priority>0.7</priority><lastmod>2025-10-17T14:49:03.339Z</lastmod></url>
<url><loc>https://esp.ethereum.foundation/form-direct/apply/thank-you</loc><changefreq>daily</changefreq><priority>0.7</priority><lastmod>2025-10-17T14:49:03.339Z</lastmod></url>
<url><loc>https://esp.ethereum.foundation/layer-2-grants</loc><changefreq>daily</changefreq><priority>0.7</priority><lastmod>2025-10-17T14:49:03.339Z</lastmod></url>
<url><loc>https://esp.ethereum.foundation/merge-data-challenge</loc><changefreq>daily</changefreq><priority>0.7</priority><lastmod>2025-10-17T14:49:03.339Z</lastmod></url>
<url><loc>https://esp.ethereum.foundation/pectra-pgr</loc><changefreq>daily</changefreq><priority>0.7</priority><lastmod>2025-10-17T14:49:03.339Z</lastmod></url>
<url><loc>https://esp.ethereum.foundation/pse-grants/apply</loc><changefreq>daily</changefreq><priority>0.7</priority><lastmod>2025-10-17T14:49:03.339Z</lastmod></url>
<url><loc>https://esp.ethereum.foundation/pse-grants/thank-you</loc><changefreq>daily</changefreq><priority>0.7</priority><lastmod>2025-10-17T14:49:03.339Z</lastmod></url>
<url><loc>https://esp.ethereum.foundation/pse-sponsorships/apply</loc><changefreq>daily</changefreq><priority>0.7</priority><lastmod>2025-10-17T14:49:03.339Z</lastmod></url>
<url><loc>https://esp.ethereum.foundation/pse-sponsorships/thank-you</loc><changefreq>daily</changefreq><priority>0.7</priority><lastmod>2025-10-17T14:49:03.339Z</lastmod></url>
<url><loc>https://esp.ethereum.foundation/run-a-node-grants</loc><changefreq>daily</changefreq><priority>0.7</priority><lastmod>2025-10-17T14:49:03.339Z</lastmod></url>
<url><loc>https://esp.ethereum.foundation/semaphore-grants</loc><changefreq>daily</changefreq><priority>0.7</priority><lastmod>2025-10-17T14:49:03.339Z</lastmod></url>
<url><loc>https://esp.ethereum.foundation/zk-grants</loc><changefreq>daily</changefreq><priority>0.7</priority><lastmod>2025-10-17T14:49:03.339Z</lastmod></url>
<url><loc>https://esp.ethereum.foundation/applicants/wishlist/a1CVj000003rawTMAQ/apply</loc><changefreq>daily</changefreq><priority>0.7</priority><lastmod>2025-10-17T14:49:03.339Z</lastmod></url>
<url><loc>https://esp.ethereum.foundation/applicants/wishlist/a1CVj000003t5VBMAY/apply</loc><changefreq>daily</changefreq><priority>0.7</priority><lastmod>2025-10-17T14:49:03.339Z</lastmod></url>
<url><loc>https://esp.ethereum.foundation/applicants/wishlist/a1CVj0000043acXMAQ/apply</loc><changefreq>daily</changefreq><priority>0.7</priority><lastmod>2025-10-17T14:49:03.339Z</lastmod></url>
<url><loc>https://esp.ethereum.foundation/applicants/rfp/a1CVj0000041nu1MAA/apply</loc><changefreq>daily</changefreq><priority>0.7</priority><lastmod>2025-10-17T14:49:03.339Z</lastmod></url>
<url><loc>https://esp.ethereum.foundation/applicants/rfp/a1CVj0000042GRNMA2/apply</loc><changefreq>daily</changefreq><priority>0.7</priority><lastmod>2025-10-17T14:49:03.339Z</lastmod></url>
<url><loc>https://esp.ethereum.foundation/applicants/rfp/a1CVj0000042GftMAE/apply</loc><changefreq>daily</changefreq><priority>0.7</priority><lastmod>2025-10-17T14:49:03.339Z</lastmod></url>
</urlset>
11 changes: 7 additions & 4 deletions src/components/ButtonLink.tsx
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
import { Box, Flex, Link } from '@chakra-ui/react';
import { motion } from 'framer-motion';
import Image from 'next/image';
import { FC } from 'react';

import { ImportantText } from './UI/headings';

import { useShadowAnimation } from '../hooks';

import planeVectorSVG from '../../public/images/plane-vector.svg';

const MotionBox = motion(Box);
const MotionFlex = motion(Flex);
const MotionBox = motion.create(Box);
const MotionFlex = motion.create(Flex);

interface Props {
label: string;
link: string;
width: string;
display?: string;
isApplyButton?: boolean;
}

export const ButtonLink = ({ label, link, width, isApplyButton }: Props) => {
export const ButtonLink = ({ label, link, width, display, isApplyButton }: Props) => {
const { shadowBoxControl, setButtonHovered } = useShadowAnimation();

return (
Expand All @@ -30,16 +30,19 @@ export const ButtonLink = ({ label, link, width, isApplyButton }: Props) => {
h='56px'
w={width}
position='absolute'
display={display || "flex"}
animate={shadowBoxControl}
/>

<MotionFlex
bg='brand.accent'
w={width}
py={4}
px={6}
justifyContent='center'
alignItems='center'
position='relative'
display={display || "flex"}
_hover={{ bg: 'brand.hover' }}
whileHover={{ x: -1.5, y: -1.5 }}
onMouseEnter={() => setButtonHovered(true)}
Expand Down
Loading