trying out netlify forms with contact

main
Midnight 3 years ago
parent bebf4099c8
commit a6f30a8985

@ -7,7 +7,7 @@ export default function Footer() {
<h2>Learn more</h2> <h2>Learn more</h2>
<div> <div>
<Link href="/about">About</Link> <Link href="/about">About</Link>
<Link href="">Contact</Link> <Link href="/contact">Contact</Link>
<a href="https://twitter.com/DubbelNull" target="_blank" rel="noreferrer">Twitter</a> <a href="https://twitter.com/DubbelNull" target="_blank" rel="noreferrer">Twitter</a>
<a href="https://gitlab.com/dubbelnull" target="_blank" rel="noreferrer">GitLab</a> <a href="https://gitlab.com/dubbelnull" target="_blank" rel="noreferrer">GitLab</a>
<a href="https://discord.gg/976Xskh8Dd" target="_blank" rel="noreferrer">Discord</a> <a href="https://discord.gg/976Xskh8Dd" target="_blank" rel="noreferrer">Discord</a>

@ -14,6 +14,9 @@ export default function StyledButton(props: any) {
font-size: 1em; font-size: 1em;
border-radius: 8px; border-radius: 8px;
transition-duration: 0.2s; transition-duration: 0.2s;
gap: var(--padding-sm);
color: unset;
text-decoration: unset;
} }
a:hover { a:hover {
background-color: var(--background-color-dark); background-color: var(--background-color-dark);

@ -15,6 +15,9 @@ export default function StyledButton(props: any) {
border-radius: 8px; border-radius: 8px;
background-color: var(--background-color-dark); background-color: var(--background-color-dark);
transition-duration: 0.2s; transition-duration: 0.2s;
gap: var(--padding-sm);
color: unset;
text-decoration: unset;
} }
a:hover { a:hover {
background-color: var(--theme-color-500); background-color: var(--theme-color-500);

@ -20,7 +20,7 @@ export default function Menu() {
<div className={styles.disabled}><Link href="">Blog</Link></div> <div className={styles.disabled}><Link href="">Blog</Link></div>
<div className={styles.disabled}><Link href="">Showcase</Link></div> <div className={styles.disabled}><Link href="">Showcase</Link></div>
<div className={styles.disabled}><Link href="">Services</Link></div> <div className={styles.disabled}><Link href="">Services</Link></div>
<div className={styles.disabled}><Link href="">Contact</Link></div> <Link href="/contact">Contact</Link>
<ThemeToggle /> <ThemeToggle />
</div> </div>
</div> </div>

@ -8,7 +8,7 @@ import SmallStyledButton from '../components/elements/smallstyledbutton';
import pascal from '../public/img/mid.png' import pascal from '../public/img/mid.png'
import marco from '../public/img/marco.png' import marco from '../public/img/marco.png'
export default function Index() { export default function About() {
return ( return (
<div className={"page " + styles.about}> <div className={"page " + styles.about}>
<Head> <Head>

@ -0,0 +1,73 @@
import Head from 'next/head';
import Image from 'next/image';
import styles from '../styles/Contact.module.css';
import Link from 'next/link';
import StyledButton from '../components/elements/styledbutton';
import SmallStyledButton from '../components/elements/smallstyledbutton';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
import { faTwitter } from '@fortawesome/free-brands-svg-icons'
import { faDiscord } from '@fortawesome/free-brands-svg-icons'
export default function Contact() {
return (
<div className={"page " + styles.about}>
<Head>
<title>{process.env.NEXT_PUBLIC_NAME} | About</title>
</Head>
<section className="container">
<article className="content">
<style jsx>{`
.content {
gap: 0;
}
section {
display: grid;
grid-auto-flow: row;
grid-template-columns: 50% 50%;
gap: var(--padding-lg);
}
`}</style>
<h2>{"📬 Contact us"}</h2>
<hr/>
<section>
<div>
<h4>{"📨 Shoot us an email"}</h4>
<form netlify>
<div>
<label>Name</label>
<input type="text" />
</div>
<div>
<label>Email</label>
<input type="email" />
</div>
<div>
<label>Message</label>
<textarea></textarea>
</div>
</form>
</div>
<div>
<h4>{"💬 Other contact methods"}</h4>
<div style={{display: "flex", flexWrap: "wrap", gap: "var(--padding-sm)", justifyContent: "flex-start", flexDirection: "column"}}>
<SmallStyledButton href="https://discord.gg/976Xskh8Dd" rel="noreferrer" target="_blank"><FontAwesomeIcon icon={faDiscord}></FontAwesomeIcon> Message us on our Discord server</SmallStyledButton>
<SmallStyledButton href="https://discord.gg/976Xskh8Dd" rel="noreferrer" target="_blank"><FontAwesomeIcon icon={faTwitter}></FontAwesomeIcon> Send a DM to our Twitter account</SmallStyledButton>
</div>
<p>
{"📵 We don't have a public phone number for contact"}
</p>
</div>
</section>
</article>
</section>
</div>
)
}

@ -132,6 +132,33 @@ hr {
} }
/* form defaults */
form {
display: flex;
flex-direction: column;
gap: var(--padding);
}
form > div {
display: flex;
flex-direction: column;
gap: var(--padding-sm);
}
textarea {
max-width: 100%;
min-width: 100%;
}
form input, form textarea {
border-radius: var(--padding-sm);
font-size: 1rem;
border: unset;
background-color: var(--background-color-body);
padding: 0.3em 0.4em;
}
/* mobile */ /* mobile */
@media(max-aspect-ratio: 5/4) { @media(max-aspect-ratio: 5/4) {
.content { .content {

Loading…
Cancel
Save