diff --git a/pages/about.tsx b/pages/about.tsx index ae1471a..1435ca8 100644 --- a/pages/about.tsx +++ b/pages/about.tsx @@ -1,8 +1,12 @@ -import { FC, useContext } from 'react'; +import React, { FC, useContext, useState } from 'react'; import { DarkModeContext } from '../components/DarkMode'; +import { useForm, ValidationError } from '@formspree/react'; import Head from 'next/head'; import styled from 'styled-components'; import Image from 'next/image'; +import Input from '../components/Input'; +import Button from '../components/Button'; +import MDXButton from '../components/MDXButton'; const Wrapper = styled.div<{ dark: boolean }>` padding: 1rem 0rem; @@ -32,12 +36,11 @@ const Wrapper = styled.div<{ dark: boolean }>` .content { display: flex; flex-direction: column; - justify-content: space-between; } .about, .contact { - margin-top: 1rem; + margin: 1rem 0rem; @media (max-width: 768px) { margin: 1rem 0rem; @@ -45,11 +48,27 @@ const Wrapper = styled.div<{ dark: boolean }>` } .contact { + display: grid; + grid-template-columns: auto; + row-gap: 1.5rem; + + .error { + color: #d75050; + } + + .success { + color: #73d26b; + } + + @media (max-width: 768px) { + row-gap: 0.5rem; + } } `; const About: FC = () => { const { dark } = useContext(DarkModeContext); + const [state, handleSubmit] = useForm('xoqpgyge'); return ( <> @@ -90,7 +109,30 @@ const About: FC = () => {