diff --git a/components/Button.tsx b/components/Button.tsx index b503d00..cb2baca 100644 --- a/components/Button.tsx +++ b/components/Button.tsx @@ -31,6 +31,6 @@ export function Button({variant = 'primary', className, href, ...props}: Button) return href ? ( ) : ( - - + ) } \ No newline at end of file diff --git a/components/Subscribe.tsx b/components/Subscribe.tsx index b0cf5cd..bd452fc 100644 --- a/components/Subscribe.tsx +++ b/components/Subscribe.tsx @@ -1,25 +1,37 @@ -import {Feature} from '@/components/Feature' +import {useRef, SyntheticEvent, MutableRefObject, useState} from 'react' +import {Cta} from '@/components/Cta' import {MailIcon} from '@/components/icons/MailIcon' import {Button} from '@/components/Button' export function Subscribe() { + const inputRef = useRef() as MutableRefObject + const [message, setMessage] = useState('') + + const subscribe = async (e: SyntheticEvent) => { + e.preventDefault() + + inputRef.current.value = '' + } + return ( - +

Get notified when I publish something new, and unsubscribe at any time.

-
+ {/*

Success! 🎉 You are now subscribed to the newsletter.

*/} +
-
-
+ + ) } \ No newline at end of file