mirror of
https://github.com/hazemKrimi/personal-website.git
synced 2026-05-01 18:00:26 +00:00
Update folder structure for pages and some components
This commit is contained in:
+1
-61
@@ -2,71 +2,11 @@ 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 { Wrapper } from './styles/about';
|
||||
import Image from 'next/image';
|
||||
import Input from '../components/Input';
|
||||
import MDXButton from '../components/MDXButton';
|
||||
|
||||
const Wrapper = styled.div<{ dark: boolean }>`
|
||||
padding: 1rem 0rem;
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, 1fr);
|
||||
column-gap: 2rem;
|
||||
|
||||
@media (max-width: 768px) {
|
||||
padding: 0rem;
|
||||
grid-template-columns: auto;
|
||||
column-gap: 0rem;
|
||||
row-gap: 1rem;
|
||||
}
|
||||
|
||||
.photo {
|
||||
order: initial;
|
||||
|
||||
@media (max-width: 768px) {
|
||||
order: -1;
|
||||
}
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 1.7rem;
|
||||
}
|
||||
|
||||
.content {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.about,
|
||||
.contact {
|
||||
margin: 1rem 0rem;
|
||||
|
||||
@media (max-width: 768px) {
|
||||
margin: 1rem 0rem;
|
||||
}
|
||||
}
|
||||
|
||||
.success {
|
||||
color: #73d26b;
|
||||
align-self: center;
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
.contact {
|
||||
display: grid;
|
||||
grid-template-columns: auto;
|
||||
row-gap: 1.5rem;
|
||||
|
||||
.error {
|
||||
color: #d75050;
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
row-gap: 0.5rem;
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
const About: FC = () => {
|
||||
const { dark } = useContext(DarkModeContext);
|
||||
const [form, setForm] = useState<{ name: string; email: string; message: string }>({
|
||||
|
||||
Reference in New Issue
Block a user