From 92a64d3e0e02b101a1f16da59d72d7b49d1e181c Mon Sep 17 00:00:00 2001 From: Gabriel Diniz Date: Sun, 7 Apr 2024 13:51:10 -0400 Subject: [PATCH 1/3] [Update] contact section to match figma --- src/components/sections/Contact.section.tsx | 121 ++++++++++---------- 1 file changed, 61 insertions(+), 60 deletions(-) diff --git a/src/components/sections/Contact.section.tsx b/src/components/sections/Contact.section.tsx index 00e3b89b..d6bbfe00 100644 --- a/src/components/sections/Contact.section.tsx +++ b/src/components/sections/Contact.section.tsx @@ -3,68 +3,69 @@ import { TopBorder, BottomBorder, MiddleBody, Hawk, BirdParts } from '@assets'; import { Button, SocialIcons } from '@components'; const ContactSection: React.FC = () => { - const openInNewTab = (url: string) => { - const newWindow = window.open(url, '_blank', 'noopener,noreferrer'); - if (newWindow) newWindow.opener = null; - }; + const openInNewTab = (url: string) => { + const newWindow = window.open(url, '_blank', 'noopener,noreferrer'); + if (newWindow) newWindow.opener = null; + }; - const handleSubmit = (e: React.MouseEvent) => { - e.preventDefault(); // Prevent default form submission behavior - openInNewTab('http://eepurl.com/hDHf8b'); - }; + const handleSubmit = (e: React.MouseEvent) => { + e.preventDefault(); // Prevent default form submission behavior + openInNewTab('http://eepurl.com/hDHf8b'); + }; - return ( -
- - - -
-
-

- CONTACT US -

-

- Reach out at hello@hawkhacks.ca for any help or - support, and please be sure to join the{' '} - HawkHacks Discord community! -

-
-
-
-
- + return ( +
+ + + + {/* absolute inset-x-0 z-10 ml-0 px-4 pt-10 sm:pt-16 md:mx-32 md:px-8 md:pt-20 lg:px-12 lg:pt-32 xl:pt-32 */} +
+
+

+ CONTACT US +

+

+ Reach out at hello@hawkhacks.ca for any help or + support, and please be sure to join the{' '} + HawkHacks Discord community! +

+
+
+
+
+ +
+
+ +
+
+
-
- -
-
-
-
- - -
- ); + + + + ); }; -export { ContactSection }; \ No newline at end of file +export { ContactSection }; From ce7dc9d2de57262879d33880151385c55186e2f1 Mon Sep 17 00:00:00 2001 From: Gabriel Diniz Date: Sun, 7 Apr 2024 13:55:34 -0400 Subject: [PATCH 2/3] [Update] Small fixes --- src/components/sections/Contact.section.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/components/sections/Contact.section.tsx b/src/components/sections/Contact.section.tsx index d6bbfe00..4ab4a16b 100644 --- a/src/components/sections/Contact.section.tsx +++ b/src/components/sections/Contact.section.tsx @@ -24,8 +24,7 @@ const ContactSection: React.FC = () => { src={BirdParts} className="absolute right-0 top-0 z-50 flex w-full max-w-5xl -translate-y-[42.5%] xl:right-10 2xl:right-52" /> - {/* absolute inset-x-0 z-10 ml-0 px-4 pt-10 sm:pt-16 md:mx-32 md:px-8 md:pt-20 lg:px-12 lg:pt-32 xl:pt-32 */} -
+

{ analyticsEvent="subscribe_button_click" className="relative block h-16 w-fit rounded-r-lg bg-gradient-to-b from-tbrand to-tbrand-hover font-medium before:absolute before:inset-0 before:bg-white before:opacity-0 before:transition before:duration-300 before:hover:opacity-10 sm:mx-0" > - + Sign up for our newsletter! From 2d10576d50752b181f7362856d27f29633cb1035 Mon Sep 17 00:00:00 2001 From: Gabriel Diniz Date: Sun, 7 Apr 2024 16:07:02 -0400 Subject: [PATCH 3/3] [Update] add w-full --- src/components/sections/Contact.section.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/sections/Contact.section.tsx b/src/components/sections/Contact.section.tsx index 4ab4a16b..ba5c4039 100644 --- a/src/components/sections/Contact.section.tsx +++ b/src/components/sections/Contact.section.tsx @@ -62,7 +62,7 @@ const ContactSection: React.FC = () => { src={MiddleBody} className="z-0 h-[300px] w-full object-cover sm:h-[350px] md:h-[400px] lg:h-[700px]" /> - + ); };