SCSS variables + Fixed contact form
parent
8c309699cc
commit
827e3fa21e
@ -1,66 +0,0 @@
|
||||
import ReCAPTCHA from 'react-google-recaptcha';
|
||||
import { useTheme } from 'next-themes';
|
||||
|
||||
import { FC } from 'react';
|
||||
|
||||
import styles from './Contact.module.scss';
|
||||
|
||||
const formURL = 'https://forms.guusvanmeerveld.dev/portfolio';
|
||||
|
||||
const Contact: FC = () => {
|
||||
const { theme } = useTheme();
|
||||
|
||||
return (
|
||||
<div className={styles.contact}>
|
||||
<div className="container">
|
||||
<div className={styles.header} id="contact">
|
||||
Contact
|
||||
</div>
|
||||
<form
|
||||
encType="application/x-www-form-urlencoded"
|
||||
action={formURL}
|
||||
className="content"
|
||||
method="POST"
|
||||
name="contact"
|
||||
>
|
||||
<label htmlFor="email">Email</label>
|
||||
<input
|
||||
className={styles.input}
|
||||
name="email"
|
||||
type="email"
|
||||
required
|
||||
placeholder="Your email address"
|
||||
id="email"
|
||||
/>
|
||||
|
||||
<label htmlFor="type">Message type</label>
|
||||
<select className={styles.input} name="type[]" id="type">
|
||||
<option value="bug">Bug</option>
|
||||
<option value="question">Question</option>
|
||||
<option value="suggestion">Suggestion</option>
|
||||
<option value="other">Other</option>
|
||||
</select>
|
||||
|
||||
<label htmlFor="message">Message</label>
|
||||
<textarea
|
||||
className={styles.textarea}
|
||||
required
|
||||
name="message"
|
||||
placeholder="Your message"
|
||||
></textarea>
|
||||
|
||||
<ReCAPTCHA
|
||||
theme={theme as 'light' | 'dark'}
|
||||
sitekey={process.env.NEXT_PUBLIC_CAPTCHA_KEY}
|
||||
/>
|
||||
|
||||
<button className={styles.submit + ' button'} type="submit">
|
||||
Send
|
||||
</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export default Contact;
|
@ -0,0 +1,5 @@
|
||||
$primary: var(--primary);
|
||||
$bg-primary: var(--background);
|
||||
$bg-secondary: var(--secondary);
|
||||
$borders: var(--borders);
|
||||
$text: var(--text);
|
@ -1,7 +1,7 @@
|
||||
body {
|
||||
margin: 0;
|
||||
background-color: var(--background);
|
||||
color: var(--foreground);
|
||||
background-color: $bg-primary;
|
||||
color: $text;
|
||||
|
||||
font-family: 'Raleway';
|
||||
}
|
||||
|
Loading…
Reference in new issue