From 49b519b015b2fe140da9f750aa85eb3f1c7e7bf9 Mon Sep 17 00:00:00 2001 From: Guusvanmeerveld Date: Tue, 9 Mar 2021 18:34:15 +0000 Subject: [PATCH] Added a thank-you-page when user submits form --- components/Contact.tsx | 10 +++++++- components/Footer.tsx | 51 ++++++++++++++++++++++------------------- components/Navbar.tsx | 4 ++-- components/Page.tsx | 2 +- pages/_app.tsx | 1 + pages/index.tsx | 22 +++++++++--------- pages/thanks.tsx | 20 ++++++++++++++++ styles/sass/thanks.scss | 26 +++++++++++++++++++++ 8 files changed, 97 insertions(+), 39 deletions(-) create mode 100644 pages/thanks.tsx create mode 100644 styles/sass/thanks.scss diff --git a/components/Contact.tsx b/components/Contact.tsx index 784b193..6c5c7f5 100644 --- a/components/Contact.tsx +++ b/components/Contact.tsx @@ -4,7 +4,15 @@ const Contact = () => (
Contact
-
+
diff --git a/components/Footer.tsx b/components/Footer.tsx index 2905800..296d2c9 100644 --- a/components/Footer.tsx +++ b/components/Footer.tsx @@ -1,27 +1,30 @@ -const Footer = () => ( -
-
- -
- Guus van Meerveld
- © 2021 +const Footer = () => { + const year = new Date().getFullYear(); + return ( +
-
-); + + ); +}; export default Footer; diff --git a/components/Navbar.tsx b/components/Navbar.tsx index 01fe949..fdf5524 100644 --- a/components/Navbar.tsx +++ b/components/Navbar.tsx @@ -3,8 +3,8 @@ const Navbar = () => (
Portfolio
- Projects - Contact + Projects + Contact
diff --git a/components/Page.tsx b/components/Page.tsx index 2850f71..dc22690 100644 --- a/components/Page.tsx +++ b/components/Page.tsx @@ -14,7 +14,7 @@ const Page = ({ - Portfolio | {title} + G-VM | {title} diff --git a/pages/_app.tsx b/pages/_app.tsx index da89d1e..56a2c1f 100644 --- a/pages/_app.tsx +++ b/pages/_app.tsx @@ -1,6 +1,7 @@ import "../styles/milligram.min.css"; import "../styles/raleway.css"; import "../styles/sass/index.scss"; +import "../styles/sass/thanks.scss"; function App({ Component, pageProps }) { return ; diff --git a/pages/index.tsx b/pages/index.tsx index c85edcb..5a7c591 100644 --- a/pages/index.tsx +++ b/pages/index.tsx @@ -5,14 +5,14 @@ import Projects from "../components/Projects"; import Contact from "../components/Contact"; import Footer from "../components/Footer"; -export default function Home() { - return ( - - - - - -