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 name="contact" method="POST" data-netlify="true">
                                <div>
                                    <label>Name</label>
                                    <input type="text" name="name" />
                                </div>

                                <div>
                                    <label>Email</label>
                                    <input type="email" name="name" />
                                </div>

                                <div>
                                    <label>Message</label>
                                    <textarea name="message" rows={10}></textarea>
                                </div>

                                <div>
                                    <button type="submit">Send</button>
                                </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>
    )
}