Added 404 page and Layout component

dependabot/npm_and_yarn/typescript-eslint/parser-4.33.0
Guusvanmeerveld 4 years ago
parent 902c2ae3c7
commit c4f3ae4390

@ -0,0 +1,12 @@
import Navbar from "./Navbar";
import Footer from "./Footer";
const Layout = ({ children }) => (
<>
<Navbar />
{children}
<Footer />
</>
);
export default Layout;

14
package-lock.json generated

@ -8,6 +8,7 @@
"name": "portfolio", "name": "portfolio",
"version": "0.1.0", "version": "0.1.0",
"dependencies": { "dependencies": {
"dotenv": "^8.2.0",
"next": "10.0.8", "next": "10.0.8",
"react": "17.0.1", "react": "17.0.1",
"react-dom": "17.0.1", "react-dom": "17.0.1",
@ -821,6 +822,14 @@
"npm": ">=1.2" "npm": ">=1.2"
} }
}, },
"node_modules/dotenv": {
"version": "8.2.0",
"resolved": "https://registry.npmjs.org/dotenv/-/dotenv-8.2.0.tgz",
"integrity": "sha512-8sJ78ElpbDJBHNeBzUbUVLsqKdccaa/BXF1uPTw3GrvQTBgrQrtObr2mUrE38vzYd8cEv+m/JBfDLioYcfXoaw==",
"engines": {
"node": ">=8"
}
},
"node_modules/electron-to-chromium": { "node_modules/electron-to-chromium": {
"version": "1.3.683", "version": "1.3.683",
"resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.3.683.tgz", "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.3.683.tgz",
@ -2978,6 +2987,11 @@
"resolved": "https://registry.npmjs.org/domain-browser/-/domain-browser-1.2.0.tgz", "resolved": "https://registry.npmjs.org/domain-browser/-/domain-browser-1.2.0.tgz",
"integrity": "sha512-jnjyiM6eRyZl2H+W8Q/zLMA481hzi0eszAaBUzIVnmYVDBbnLxVNnfu1HgEBvCbL+71FrxMl3E6lpKH7Ge3OXA==" "integrity": "sha512-jnjyiM6eRyZl2H+W8Q/zLMA481hzi0eszAaBUzIVnmYVDBbnLxVNnfu1HgEBvCbL+71FrxMl3E6lpKH7Ge3OXA=="
}, },
"dotenv": {
"version": "8.2.0",
"resolved": "https://registry.npmjs.org/dotenv/-/dotenv-8.2.0.tgz",
"integrity": "sha512-8sJ78ElpbDJBHNeBzUbUVLsqKdccaa/BXF1uPTw3GrvQTBgrQrtObr2mUrE38vzYd8cEv+m/JBfDLioYcfXoaw=="
},
"electron-to-chromium": { "electron-to-chromium": {
"version": "1.3.683", "version": "1.3.683",
"resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.3.683.tgz", "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.3.683.tgz",

@ -8,6 +8,7 @@
"start": "next start" "start": "next start"
}, },
"dependencies": { "dependencies": {
"dotenv": "^8.2.0",
"next": "10.0.8", "next": "10.0.8",
"react": "17.0.1", "react": "17.0.1",
"react-dom": "17.0.1", "react-dom": "17.0.1",

@ -1,10 +1,9 @@
import Page from "../components/Page"; import Page from "../components/Page";
import Navbar from "../components/Navbar"; import Layout from "../components/Layout";
import Footer from "../components/Footer";
const NotFound = () => ( const NotFound = () => (
<Page title="Page not found" description="This page either doesn't exist or has been deleted"> <Page title="Page not found" description="This page either doesn't exist or has been deleted">
<Navbar /> <Layout>
<div className="message"> <div className="message">
<div> <div>
<div className="header">Not found</div> <div className="header">Not found</div>
@ -14,7 +13,7 @@ const NotFound = () => (
</a> </a>
</div> </div>
</div> </div>
<Footer /> </Layout>
</Page> </Page>
); );

@ -4,6 +4,7 @@ import "../styles/raleway.css";
import "../styles/sass/index.scss"; import "../styles/sass/index.scss";
import "../styles/sass/thanks.scss"; import "../styles/sass/thanks.scss";
import "../styles/sass/binas.scss"; import "../styles/sass/binas.scss";
import "../styles/sass/upload.scss";
function App({ Component, pageProps }) { function App({ Component, pageProps }) {
return <Component {...pageProps} />; return <Component {...pageProps} />;

@ -1,8 +1,7 @@
import Page from "../components/Page"; import Page from "../components/Page";
import Footer from "../components/Footer";
import Navbar from "../components/Navbar";
import LazyLoad from "react-lazyload"; import LazyLoad from "react-lazyload";
import { Component } from "react"; import { Component } from "react";
import Layout from "../components/Layout";
class Binas extends Component { class Binas extends Component {
links: string[]; links: string[];
@ -23,7 +22,7 @@ class Binas extends Component {
render() { render() {
return ( return (
<Page title="Binas" description="Voor wanneer je effe de binas nodig hebt"> <Page title="Binas" description="Voor wanneer je effe de binas nodig hebt">
<Navbar /> <Layout>
<div className="binas"> <div className="binas">
{this.links.map((link) => ( {this.links.map((link) => (
<LazyLoad height={100} offset={100}> <LazyLoad height={100} offset={100}>
@ -31,7 +30,7 @@ class Binas extends Component {
</LazyLoad> </LazyLoad>
))} ))}
</div> </div>
<Footer /> </Layout>
</Page> </Page>
); );
} }

@ -1,17 +1,16 @@
import Page from "../components/Page"; import Page from "../components/Page";
import Navbar from "../components/Navbar";
import Landing from "../components/Landing"; import Landing from "../components/Landing";
import Projects from "../components/Projects"; import Projects from "../components/Projects";
import Contact from "../components/Contact"; import Contact from "../components/Contact";
import Footer from "../components/Footer"; import Layout from "../components/Layout";
const Home = () => ( const Home = () => (
<Page description="A simple portfolio website to display my projects." title="Projects"> <Page description="A simple portfolio website to display my projects." title="Projects">
<Navbar /> <Layout>
<Landing /> <Landing />
<Projects /> <Projects />
<Contact /> <Contact />
<Footer /> </Layout>
</Page> </Page>
); );

@ -1,10 +1,9 @@
import Page from "../components/Page"; import Page from "../components/Page";
import Navbar from "../components/Navbar"; import Layout from "../components/Layout";
import Footer from "../components/Footer";
const Thanks = () => ( const Thanks = () => (
<Page title="Thanks!" description="Thanks for submitting your contact form!"> <Page title="Thanks!" description="Thanks for submitting your contact form!">
<Navbar /> <Layout>
<div className="message"> <div className="message">
<div> <div>
<div className="icon"></div> <div className="icon"></div>
@ -15,7 +14,7 @@ const Thanks = () => (
</a> </a>
</div> </div>
</div> </div>
<Footer /> </Layout>
</Page> </Page>
); );

@ -0,0 +1,12 @@
import Page from "../components/Page";
import Layout from "../components/Layout";
const Upload = () => (
<Page title="Upload" description="Upload a custom file to the cdn">
<Layout>
<div className="container upload"></div>
</Layout>
</Page>
);
export default Upload;

@ -1 +1,2 @@
Disallow /binas Disallow /binas
Disallow /upload

@ -0,0 +1,3 @@
.upload {
padding-top: 6rem;
}
Loading…
Cancel
Save