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 { faEnvelope } from '@fortawesome/free-solid-svg-icons'
import { faTwitter } from '@fortawesome/free-brands-svg-icons'
import { faDiscord } from '@fortawesome/free-brands-svg-icons'
import { faPhoneSlash } from '@fortawesome/free-solid-svg-icons'

export default function Contact() {
    return (
        <div className={"page " + styles.contact}>
            <Head>
                <title>{process.env.NEXT_PUBLIC_NAME} | Contact</title>
            </Head>

            <section className="container">
                <article className="content">
                    <style jsx>{`
                        section {
                            display: grid;
                            grid-auto-flow: row;
                            grid-template-columns: auto auto;
                            gap: var(--padding-lg);
                        }
                    `}</style>

                    <section style={{display: "flex", flexWrap: "wrap", gap: "var(--padding-sm)", justifyContent: "flex-start", flexDirection: "column", alignItems: "stretch"}}>
                        <h2>{"📬 Contact us"}</h2>
                        <StyledButton style={{backgroundColor: "var(--theme-color-500)"}} href="mailto:contact@dubbelnull.com"><FontAwesomeIcon icon={faEnvelope}></FontAwesomeIcon> Shoot us an email</StyledButton>
                        <StyledButton style={{backgroundColor: "var(--theme-color-500)"}} href="https://discord.gg/976Xskh8Dd" rel="noreferrer" target="_blank"><FontAwesomeIcon icon={faDiscord}></FontAwesomeIcon> Message us on our Discord server</StyledButton>
                        <StyledButton style={{backgroundColor: "var(--theme-color-500)"}} href="https://discord.gg/976Xskh8Dd" rel="noreferrer" target="_blank"><FontAwesomeIcon icon={faTwitter}></FontAwesomeIcon> Send a DM to our Twitter account</StyledButton>
                        <StyledButton style={{backgroundColor: "var(--danger)"}}><FontAwesomeIcon icon={faPhoneSlash}></FontAwesomeIcon> We have no public phone number</StyledButton>
                        <p>{"We typically respond within a few hours during business hours."}</p>
                    </section>          
                    
                </article>
            </section>

        </div>
    )
}