From 76049db9d90213dd212bb40c5003f8dddf012e8a Mon Sep 17 00:00:00 2001 From: Nima Izadi Date: Mon, 14 Oct 2024 13:17:33 -0400 Subject: [PATCH] Add discount code and tweak copy --- .../SponsoredConference.tsx | 27 +++++++++++++++++++ .../SponsoredConference/sponsors.json | 6 +++-- 2 files changed, 31 insertions(+), 2 deletions(-) diff --git a/src/components/SponsoredConference/SponsoredConference.tsx b/src/components/SponsoredConference/SponsoredConference.tsx index a0376ba7..ee1e9264 100644 --- a/src/components/SponsoredConference/SponsoredConference.tsx +++ b/src/components/SponsoredConference/SponsoredConference.tsx @@ -13,6 +13,8 @@ export interface SponsoredConf { imgDark: string url: string tagline: string + discountText?: string + discountUrl?: string sponsorDateStart: string sponsorDateEnd: string } @@ -49,6 +51,10 @@ const SponsoredConference = () => {

{sponsorConference.conferenceDate}

{sponsorConference.tagline}

+ sponsored @@ -58,4 +64,25 @@ const SponsoredConference = () => { ) } +interface DiscountProps { + text?: string + url?: string +} +const DiscountText = ({ text, url }: DiscountProps) => { + if (!text) { + return null + } + if (url) { + return ( +

+ + {text} + +

+ ) + } else { + return

{text}

+ } +} + export default SponsoredConference diff --git a/src/components/SponsoredConference/sponsors.json b/src/components/SponsoredConference/sponsors.json index 1ae98d77..56492fc4 100644 --- a/src/components/SponsoredConference/sponsors.json +++ b/src/components/SponsoredConference/sponsors.json @@ -75,11 +75,13 @@ }, { "name": "JSNation US", - "conferenceDate": "November 18 (hybrid in New York) & November 21 (remote), 2024", + "conferenceDate": "November 18 & 21, 2024 | New York & Online", "img": "/sponsors/jsnation.png", "imgDark": "/sponsors/jsnation-dark.png", "url": "https://jsnation.us?utm_source=website&utm_medium=confstech", - "tagline": "The main JS conference in the US - 50+ stellar thinkers, shaping JS’s future - 700 explorers, immersed in dev discovery 10K devs, connected worldwide", + "tagline": "Join 800+ developers in the biggest US Planetarium with 50+ JavaScript stars. Connect with industry leaders and explore emerging trends.", + "discountText": "Discount Code: CONFSTECH10 for 10% off!", + "discountUrl": "https://ti.to/gitnation/jsnation-us-edition/discount/CONFSTECH10", "sponsorDateStart": "2024-10-01", "sponsorDateEnd": "2024-11-01" },