From 780f25deb7f563ec5d7d33365656e3b58707a511 Mon Sep 17 00:00:00 2001 From: Corwin Smith Date: Tue, 21 Oct 2025 13:56:39 -0600 Subject: [PATCH] close Destino Devconnect Support --- netlify.toml | 8 +++ .../UI/common/BannerApplicationClosed.tsx | 10 ++-- src/pages/_app.tsx | 2 +- src/pages/devcon-grants/apply.tsx | 50 ---------------- src/pages/devcon-grants/index.tsx | 13 ++-- src/pages/devcon-grants/thank-you.tsx | 59 ------------------- 6 files changed, 19 insertions(+), 123 deletions(-) delete mode 100644 src/pages/devcon-grants/apply.tsx delete mode 100644 src/pages/devcon-grants/thank-you.tsx diff --git a/netlify.toml b/netlify.toml index d9dc3102..2664650a 100644 --- a/netlify.toml +++ b/netlify.toml @@ -278,3 +278,11 @@ from = "/data-challenge-4844/apply/" to = "/data-challenge-4844/" force = true +[[redirects]] + from = "/devcon-grants/apply/" + to = "/devcon-grants/" + force = true +[[redirects]] + from = "/devcon-grants/thank-you/" + to = "/devcon-grants/" + force = true \ No newline at end of file diff --git a/src/components/UI/common/BannerApplicationClosed.tsx b/src/components/UI/common/BannerApplicationClosed.tsx index 19d374f1..cec3feec 100644 --- a/src/components/UI/common/BannerApplicationClosed.tsx +++ b/src/components/UI/common/BannerApplicationClosed.tsx @@ -9,9 +9,10 @@ interface Props extends ChakraProps { children?: React.ReactNode; title?: React.ReactNode; description?: React.ReactNode; + hideDescription?: boolean; } -export const BannerApplicationClosed: FC = ({ children, title, description, ...props }) => { +export const BannerApplicationClosed: FC = ({ children, title, description, hideDescription, ...props }) => { return ( = ({ children, title, descriptio borderRadius='xl' flexDirection='column' textAlign='center' + gap={2} {...props} > - + {title || 'Applications for this grant wave are closed.'} - {description || ( + {!hideDescription && (description || ( <> If you're still interested in pursuing grants for a project, you can still go through our{' '} @@ -41,7 +43,7 @@ export const BannerApplicationClosed: FC = ({ children, title, descriptio . - )} + ))} {children} diff --git a/src/pages/_app.tsx b/src/pages/_app.tsx index 0bdf3ce5..89fb7d99 100644 --- a/src/pages/_app.tsx +++ b/src/pages/_app.tsx @@ -43,7 +43,7 @@ function MyApp({ Component, pageProps }: AppProps) { - + {/* */} { - return ( - <> - - - - -
- - Apply for Destino Devconnect Support - - - - If you have questions before submitting an application for financial or non-financial - support, you may contact us at{' '} - - {DEVCON_GRANTS_EMAIL_ADDRESS} - - . - -
-
-
- - ); -}; - -export default DevconGrantsApply; diff --git a/src/pages/devcon-grants/index.tsx b/src/pages/devcon-grants/index.tsx index f5797436..8066a701 100644 --- a/src/pages/devcon-grants/index.tsx +++ b/src/pages/devcon-grants/index.tsx @@ -10,7 +10,8 @@ import { PageText, PageMetadata, OrderedList, - ReadyToApply + ReadyToApply, + BannerApplicationClosed } from '../../components/UI'; import { @@ -29,7 +30,6 @@ const DevconGrants: NextPage = () => { const [ref4, inView4] = useInView({ threshold: 0.5, initialInView: false }); const [ref5, inView5] = useInView({ threshold: 0.3, initialInView: false }); const [ref6, inView6] = useInView({ threshold: 0.5, initialInView: false }); - const [ref7, inView7] = useInView({ threshold: 0.5, initialInView: false }); return ( <> { inView4, inView5, inView6, - inView7, ]} /> + +
What is Destino Devconnect Support? @@ -187,12 +188,6 @@ const DevconGrants: NextPage = () => { .
- -
- - - -
diff --git a/src/pages/devcon-grants/thank-you.tsx b/src/pages/devcon-grants/thank-you.tsx deleted file mode 100644 index 4ddc0c4a..00000000 --- a/src/pages/devcon-grants/thank-you.tsx +++ /dev/null @@ -1,59 +0,0 @@ -import { Box, Heading, Link, Stack } from '@chakra-ui/react'; -import type { NextPage } from 'next'; -import Head from 'next/head'; - -import { PageMetadata, PageSubheading, PageText } from '../../components/UI'; -import { DEVCON_GRANTS_EMAIL_ADDRESS } from '../../constants'; - -const DevconGrantsThankYou: NextPage = () => { - return ( - <> - - - - - - - -
- - Thank you! - - - - for applying to Destino Devconnect Support - - - - You should receive a confirmation email from us soon. If you have any questions in the - meantime, you can reach us at{' '} - - {DEVCON_GRANTS_EMAIL_ADDRESS} - - . - -
-
-
- - ); -}; - -export default DevconGrantsThankYou;