-
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.
- Loading branch information
1 parent
6404970
commit 4ab4ce5
Showing
11 changed files
with
338 additions
and
12 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,3 +1,11 @@ | ||
.contact-section { | ||
@apply flex flex-col w-full place-items-center; | ||
} | ||
|
||
.contact-container { | ||
@apply md:w-1/2 lg:w-1/3 p-4; | ||
} | ||
|
||
form { | ||
@apply flex flex-col text-center gap-4; | ||
} |
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,3 @@ | ||
.events { | ||
@apply flex flex-col place-items-center px-4 py-20 font-sans gap-6 lg:w-2/3; | ||
} |
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
Large diffs are not rendered by default.
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,55 @@ | ||
import './SubscribeForm.css'; | ||
import siteProperties from '../customizations/siteproperties.json'; | ||
import SiteProperties from '../types/siteproperties'; | ||
import { useEffect, useState } from 'react'; | ||
|
||
const SubscribeForm = () => { | ||
const properties: SiteProperties = siteProperties; | ||
const FORM_ID = properties.convertKitFormId; | ||
const DATA_UID = properties.convertKitDataUid; | ||
const [message, setMessage] = useState(''); | ||
|
||
useEffect(() => { | ||
const searchParams = new URLSearchParams(window.location.search); | ||
const status = searchParams.get('status'); | ||
if (status === 'success') { | ||
setMessage('Success! Now check your email to confirm your subscription.'); | ||
} else if (status === 'failure') { | ||
setMessage('There was an issue with your subscription. Please try again.'); | ||
} | ||
}, []); | ||
|
||
return( | ||
<div className='convertkit-form' id="subscribe"> | ||
<p>Subscribe to our newsletter to get notified about new events!</p> | ||
<script src="https://f.convertkit.com/ckjs/ck.5.js"></script> | ||
<form action={`https://app.convertkit.com/forms/${FORM_ID}/subscriptions`} className="seva-form formkit-form" method="post" data-sv-form={FORM_ID} data-uid={DATA_UID} data-format="inline" data-version="5" data-options="{"settings":{"after_subscribe":{"action":"message","success_message":"Success! Now check your email to confirm your subscription.","redirect_url":""},"analytics":{"google":null,"fathom":null,"facebook":null,"segment":null,"pinterest":null,"sparkloop":null,"googletagmanager":null},"modal":{"trigger":"timer","scroll_percentage":null,"timer":5,"devices":"all","show_once_every":15},"powered_by":{"show":true,"url":"https://convertkit.com/features/forms?utm_campaign=poweredby&utm_content=form&utm_medium=referral&utm_source=dynamic"},"recaptcha":{"enabled":false},"return_visitor":{"action":"show","custom_content":""},"slide_in":{"display_in":"bottom_right","trigger":"timer","scroll_percentage":null,"timer":5,"devices":"all","show_once_every":15},"sticky_bar":{"display_in":"top","trigger":"timer","scroll_percentage":null,"timer":5,"devices":"all","show_once_every":15}},"version":"5"}" min-width="400 500 600 700 800"> | ||
<div data-style="clean"> | ||
<ul className="formkit-alert formkit-alert-error" data-element="errors" data-group="alert"> | ||
</ul> | ||
<div data-element="fields" data-stacked="false" className="seva-fields formkit-fields"> | ||
<div className="formkit-field"> | ||
<input className="formkit-input" name="fields[name]" aria-label="Name" placeholder="Name" type="text" /> | ||
</div> | ||
<div className="formkit-flow-control"> | ||
<div className="formkit-field"> | ||
<input className="formkit-input" name="email_address" aria-label="Email Address" placeholder="Email Address" required type="email" /> | ||
</div> | ||
<button data-element="submit" className="button"> | ||
<div className="formkit-spinner"> | ||
<div></div> | ||
<div></div> | ||
<div></div> | ||
</div> | ||
<span>Subscribe</span> | ||
</button> | ||
</div> | ||
{message && <div>{message}</div>} | ||
</div> | ||
</div> | ||
</form> | ||
</div> | ||
); | ||
}; | ||
|
||
export default SubscribeForm; |
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