frontend: Mise en place de NextJS

This commit is contained in:
Divlo 2020-03-18 16:26:18 +01:00
parent 6a90fc764d
commit a82c1d8416
64 changed files with 2755 additions and 9317 deletions

10
frontend/.gitignore vendored
View File

@ -8,16 +8,18 @@
# testing # testing
/coverage /coverage
# next.js
/.next/
/out/
# production # production
/build /build
# misc # misc
.DS_Store .DS_Store
.env.local .env*
.env.development.local
.env.test.local
.env.production.local
# debug
npm-debug.log* npm-debug.log*
yarn-debug.log* yarn-debug.log*
yarn-error.log* yarn-error.log*

View File

@ -1,5 +1,3 @@
import React from 'react';
export default function Footer() { export default function Footer() {
return ( return (
<footer> <footer>

View File

@ -0,0 +1,34 @@
import Head from 'next/head';
const HeadTag = (props) => (
<Head>
<title>{props.title}</title>
<link rel="icon" type="image/png" href={props.image} />
{/* Meta Tag */}
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="description" content={props.description} />
<link rel="canonical" href="function.divlo.fr"/>
<meta name="Language" content="fr" />
<meta name="theme-color" content="#ffd800" />
{/* Open Graph Metadata */}
<meta property="og:title" content={props.title} />
<meta property="og:type" content="website" />
<meta property="og:url" content="https://function.divlo.fr/" />
<meta property="og:image" content={props.image} />
<meta property="og:description" content={props.description} />
<meta property="og:locale" content="fr_FR" />
<meta property="og:site_name" content="FunctionProject" />
{/* Twitter card Metadata */}
<meta name="twitter:card" content="summary" />
<meta name="twitter:description" content={props.description} />
<meta name="twitter:title" content={props.title} />
<meta name="twitter:site" content="@Divlo_FR" />
<meta name="twitter:image:src" content={props.image} />
<meta name="twitter:creator" content="@Divlo_FR" />
</Head>
);
export default HeadTag;

View File

@ -46,7 +46,7 @@
#brand-link__logo-small-screen { #brand-link__logo-small-screen {
display: none; display: none;
} }
@media (max-width: 480px) { @media (max-width: 496px) {
#brand-link__logo { #brand-link__logo {
display: none; display: none;
} }
@ -55,7 +55,6 @@
} }
#brand-link__logo-small-screen { #brand-link__logo-small-screen {
display: inline-block; display: inline-block;
width: 80%;
} }
} }

View File

@ -1,8 +1,6 @@
import React, { useState } from 'react'; import { useState } from 'react';
import { Link } from 'react-router-dom'; import Link from 'next/link';
import NavigationLink from './NavigationLink'; import NavigationLink from './NavigationLink';
import BrandLogo from '../../assets/images/FunctionProject_brand-logo.png';
import BrandIcon from '../../assets/images/FunctionProject_icon.png';
import './Header.css'; import './Header.css';
export default function Header() { export default function Header() {
@ -25,9 +23,11 @@ export default function Header() {
<div className="container"> <div className="container">
{/* Brand */} {/* Brand */}
<Link className="Header__brand-link" to={{ pathname: "/" }}> <Link href={"/"}>
<img id="brand-link__logo" src={BrandLogo} alt="FunctionProject" /> <a className="Header__brand-link">
<img id="brand-link__logo-small-screen" src={BrandIcon} alt="FunctionProject" /> <img id="brand-link__logo" src="/images/FunctionProject_brand-logo.png" alt="FunctionProject" />
<img id="brand-link__logo-small-screen" src="/images/FunctionProject_icon_small.png" alt="FunctionProject" />
</a>
</Link> </Link>
{/* Hamburger icon on Mobile */} {/* Hamburger icon on Mobile */}

View File

@ -0,0 +1,18 @@
import Link from 'next/link';
import { useRouter } from 'next/router';
import './Header.css';
export default function NavigationLink(props) {
const { pathname } = useRouter();
return (
<li className="navbar-item">
<Link href={props.path}>
<a className={`navbar-link ${pathname === props.path ? "navbar-link-active" : null}`}>
{props.name}
</a>
</Link>
</li>
);
}

View File

@ -0,0 +1,22 @@
/* Libraries Imports */
import { Fragment } from 'react';
/* Components Imports */
import Header from './Header/Header';
import Footer from './Footer/Footer';
/* CSS Imports */
import '../public/fonts/Montserrat/Montserrat.css';
import '../public/css/normalize.css';
import '../public/css/grid.css';
import '../public/css/general.css';
const Layout = (props) => (
<Fragment>
<Header />
<div className="content container-fluid">{props.children}</div>
<Footer />
</Fragment>
);
export default Layout;

3
frontend/next.config.js Normal file
View File

@ -0,0 +1,3 @@
const withCSS = require('@zeit/next-css');
const withFonts = require('next-fonts');
module.exports = withFonts(withCSS());

11143
frontend/package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -1,37 +1,17 @@
{ {
"name": "frontend", "name": "functionproject-next",
"version": "0.1.0", "version": "1.0.0",
"private": true,
"dependencies": {
"@testing-library/jest-dom": "^4.2.4",
"@testing-library/react": "^9.5.0",
"@testing-library/user-event": "^7.2.1",
"normalize.css": "^8.0.1",
"react": "^16.13.0",
"react-dom": "^16.13.0",
"react-router-dom": "^5.1.2",
"react-scripts": "3.4.0",
"typeface-montserrat": "0.0.75"
},
"scripts": { "scripts": {
"start": "react-scripts start", "dev": "next dev",
"build": "react-scripts build", "build": "next build",
"test": "react-scripts test", "start": "next start",
"eject": "react-scripts eject" "prod": "next export"
}, },
"eslintConfig": { "dependencies": {
"extends": "react-app" "@zeit/next-css": "^1.0.1",
}, "next": "9.3.1",
"browserslist": { "next-fonts": "^1.0.3",
"production": [ "react": "16.13.0",
">0.2%", "react-dom": "16.13.0"
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
} }
} }

View File

@ -0,0 +1,22 @@
import Document, { Html, Head, Main, NextScript } from "next/document";
class MyDocument extends Document {
static async getInitialProps(ctx) {
const initialProps = await Document.getInitialProps(ctx);
return { ...initialProps };
}
render() {
return (
<Html lang="fr">
<Head />
<body>
<Main />
<NextScript />
</body>
</Html>
);
}
}
export default MyDocument;

15
frontend/pages/index.js Normal file
View File

@ -0,0 +1,15 @@
import Layout from '../components/Layout';
import HeadTag from '../components/HeadTag';
const Home = () => (
<Layout>
<HeadTag
title="FunctionProject"
description="FunctionProject est un projet créé par Divlo qui a pour but de rassembler plein de mini-programme permettant de faire plusieurs choses comme savoir la météo, générer un nombre aléatoire, etc."
image="/images/FunctionProject_icon_small.png"
/>
<div>Home</div>
</Layout>
);
export default Home;

View File

@ -8,7 +8,10 @@
html { html {
line-height: initial; line-height: initial;
} }
#root { body {
background-color: var(--background-color);
}
#__next {
min-height: 100vh; min-height: 100vh;
display: flex; display: flex;
flex-flow: column wrap; flex-flow: column wrap;
@ -17,7 +20,7 @@ html {
font-family: 'Montserrat', sans-serif; font-family: 'Montserrat', sans-serif;
font-weight: 400; font-weight: 400;
font-size: 18px; font-size: 18px;
padding-top: 99px; padding-top: 99px; /* Height of the Header */
} }
p { p {
font-size: 18px; font-size: 18px;

349
frontend/public/css/normalize.css vendored Normal file
View File

@ -0,0 +1,349 @@
/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
/* Document
========================================================================== */
/**
* 1. Correct the line height in all browsers.
* 2. Prevent adjustments of font size after orientation changes in iOS.
*/
html {
line-height: 1.15; /* 1 */
-webkit-text-size-adjust: 100%; /* 2 */
}
/* Sections
========================================================================== */
/**
* Remove the margin in all browsers.
*/
body {
margin: 0;
}
/**
* Render the `main` element consistently in IE.
*/
main {
display: block;
}
/**
* Correct the font size and margin on `h1` elements within `section` and
* `article` contexts in Chrome, Firefox, and Safari.
*/
h1 {
font-size: 2em;
margin: 0.67em 0;
}
/* Grouping content
========================================================================== */
/**
* 1. Add the correct box sizing in Firefox.
* 2. Show the overflow in Edge and IE.
*/
hr {
box-sizing: content-box; /* 1 */
height: 0; /* 1 */
overflow: visible; /* 2 */
}
/**
* 1. Correct the inheritance and scaling of font size in all browsers.
* 2. Correct the odd `em` font sizing in all browsers.
*/
pre {
font-family: monospace, monospace; /* 1 */
font-size: 1em; /* 2 */
}
/* Text-level semantics
========================================================================== */
/**
* Remove the gray background on active links in IE 10.
*/
a {
background-color: transparent;
}
/**
* 1. Remove the bottom border in Chrome 57-
* 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
*/
abbr[title] {
border-bottom: none; /* 1 */
text-decoration: underline; /* 2 */
text-decoration: underline dotted; /* 2 */
}
/**
* Add the correct font weight in Chrome, Edge, and Safari.
*/
b,
strong {
font-weight: bolder;
}
/**
* 1. Correct the inheritance and scaling of font size in all browsers.
* 2. Correct the odd `em` font sizing in all browsers.
*/
code,
kbd,
samp {
font-family: monospace, monospace; /* 1 */
font-size: 1em; /* 2 */
}
/**
* Add the correct font size in all browsers.
*/
small {
font-size: 80%;
}
/**
* Prevent `sub` and `sup` elements from affecting the line height in
* all browsers.
*/
sub,
sup {
font-size: 75%;
line-height: 0;
position: relative;
vertical-align: baseline;
}
sub {
bottom: -0.25em;
}
sup {
top: -0.5em;
}
/* Embedded content
========================================================================== */
/**
* Remove the border on images inside links in IE 10.
*/
img {
border-style: none;
}
/* Forms
========================================================================== */
/**
* 1. Change the font styles in all browsers.
* 2. Remove the margin in Firefox and Safari.
*/
button,
input,
optgroup,
select,
textarea {
font-family: inherit; /* 1 */
font-size: 100%; /* 1 */
line-height: 1.15; /* 1 */
margin: 0; /* 2 */
}
/**
* Show the overflow in IE.
* 1. Show the overflow in Edge.
*/
button,
input { /* 1 */
overflow: visible;
}
/**
* Remove the inheritance of text transform in Edge, Firefox, and IE.
* 1. Remove the inheritance of text transform in Firefox.
*/
button,
select { /* 1 */
text-transform: none;
}
/**
* Correct the inability to style clickable types in iOS and Safari.
*/
button,
[type="button"],
[type="reset"],
[type="submit"] {
-webkit-appearance: button;
}
/**
* Remove the inner border and padding in Firefox.
*/
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
border-style: none;
padding: 0;
}
/**
* Restore the focus styles unset by the previous rule.
*/
button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
outline: 1px dotted ButtonText;
}
/**
* Correct the padding in Firefox.
*/
fieldset {
padding: 0.35em 0.75em 0.625em;
}
/**
* 1. Correct the text wrapping in Edge and IE.
* 2. Correct the color inheritance from `fieldset` elements in IE.
* 3. Remove the padding so developers are not caught out when they zero out
* `fieldset` elements in all browsers.
*/
legend {
box-sizing: border-box; /* 1 */
color: inherit; /* 2 */
display: table; /* 1 */
max-width: 100%; /* 1 */
padding: 0; /* 3 */
white-space: normal; /* 1 */
}
/**
* Add the correct vertical alignment in Chrome, Firefox, and Opera.
*/
progress {
vertical-align: baseline;
}
/**
* Remove the default vertical scrollbar in IE 10+.
*/
textarea {
overflow: auto;
}
/**
* 1. Add the correct box sizing in IE 10.
* 2. Remove the padding in IE 10.
*/
[type="checkbox"],
[type="radio"] {
box-sizing: border-box; /* 1 */
padding: 0; /* 2 */
}
/**
* Correct the cursor style of increment and decrement buttons in Chrome.
*/
[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
height: auto;
}
/**
* 1. Correct the odd appearance in Chrome and Safari.
* 2. Correct the outline style in Safari.
*/
[type="search"] {
-webkit-appearance: textfield; /* 1 */
outline-offset: -2px; /* 2 */
}
/**
* Remove the inner padding in Chrome and Safari on macOS.
*/
[type="search"]::-webkit-search-decoration {
-webkit-appearance: none;
}
/**
* 1. Correct the inability to style clickable types in iOS and Safari.
* 2. Change font properties to `inherit` in Safari.
*/
::-webkit-file-upload-button {
-webkit-appearance: button; /* 1 */
font: inherit; /* 2 */
}
/* Interactive
========================================================================== */
/*
* Add the correct display in Edge, IE 10+, and Firefox.
*/
details {
display: block;
}
/*
* Add the correct display in all browsers.
*/
summary {
display: list-item;
}
/* Misc
========================================================================== */
/**
* Add the correct display in IE 10+.
*/
template {
display: none;
}
/**
* Add the correct display in IE 10.
*/
[hidden] {
display: none;
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.1 KiB

View File

@ -0,0 +1,217 @@
/* montserrat-100normal - latin */
@font-face {
font-family: "Montserrat";
font-style: normal;
font-display: swap;
font-weight: 100;
src: local("Montserrat Thin "), local("Montserrat-Thin"),
url("/fonts/Montserrat/files/montserrat-latin-100.woff2") format("woff2"),
/* Super Modern Browsers */ url("/fonts/Montserrat/files/montserrat-latin-100.woff")
format("woff"); /* Modern Browsers */
}
/* montserrat-100italic - latin */
@font-face {
font-family: "Montserrat";
font-style: italic;
font-display: swap;
font-weight: 100;
src: local("Montserrat Thin italic"), local("Montserrat-Thinitalic"),
url("/fonts/Montserrat/files/montserrat-latin-100italic.woff2") format("woff2"),
/* Super Modern Browsers */
url("/fonts/Montserrat/files/montserrat-latin-100italic.woff") format("woff"); /* Modern Browsers */
}
/* montserrat-200normal - latin */
@font-face {
font-family: "Montserrat";
font-style: normal;
font-display: swap;
font-weight: 200;
src: local("Montserrat Extra Light "), local("Montserrat-Extra Light"),
url("/fonts/Montserrat/files/montserrat-latin-200.woff2") format("woff2"),
/* Super Modern Browsers */ url("/fonts/Montserrat/files/montserrat-latin-200.woff")
format("woff"); /* Modern Browsers */
}
/* montserrat-200italic - latin */
@font-face {
font-family: "Montserrat";
font-style: italic;
font-display: swap;
font-weight: 200;
src: local("Montserrat Extra Light italic"),
local("Montserrat-Extra Lightitalic"),
url("/fonts/Montserrat/files/montserrat-latin-200italic.woff2") format("woff2"),
/* Super Modern Browsers */
url("/fonts/Montserrat/files/montserrat-latin-200italic.woff") format("woff"); /* Modern Browsers */
}
/* montserrat-300normal - latin */
@font-face {
font-family: "Montserrat";
font-style: normal;
font-display: swap;
font-weight: 300;
src: local("Montserrat Light "), local("Montserrat-Light"),
url("/fonts/Montserrat/files/montserrat-latin-300.woff2") format("woff2"),
/* Super Modern Browsers */ url("/fonts/Montserrat/files/montserrat-latin-300.woff")
format("woff"); /* Modern Browsers */
}
/* montserrat-300italic - latin */
@font-face {
font-family: "Montserrat";
font-style: italic;
font-display: swap;
font-weight: 300;
src: local("Montserrat Light italic"), local("Montserrat-Lightitalic"),
url("/fonts/Montserrat/files/montserrat-latin-300italic.woff2") format("woff2"),
/* Super Modern Browsers */
url("/fonts/Montserrat/files/montserrat-latin-300italic.woff") format("woff"); /* Modern Browsers */
}
/* montserrat-400normal - latin */
@font-face {
font-family: "Montserrat";
font-style: normal;
font-display: swap;
font-weight: 400;
src: local("Montserrat Regular "), local("Montserrat-Regular"),
url("/fonts/Montserrat/files/montserrat-latin-400.woff2") format("woff2"),
/* Super Modern Browsers */ url("/fonts/Montserrat/files/montserrat-latin-400.woff")
format("woff"); /* Modern Browsers */
}
/* montserrat-400italic - latin */
@font-face {
font-family: "Montserrat";
font-style: italic;
font-display: swap;
font-weight: 400;
src: local("Montserrat Regular italic"), local("Montserrat-Regularitalic"),
url("/fonts/Montserrat/files/montserrat-latin-400italic.woff2") format("woff2"),
/* Super Modern Browsers */
url("/fonts/Montserrat/files/montserrat-latin-400italic.woff") format("woff"); /* Modern Browsers */
}
/* montserrat-500normal - latin */
@font-face {
font-family: "Montserrat";
font-style: normal;
font-display: swap;
font-weight: 500;
src: local("Montserrat Medium "), local("Montserrat-Medium"),
url("/fonts/Montserrat/files/montserrat-latin-500.woff2") format("woff2"),
/* Super Modern Browsers */ url("/fonts/Montserrat/files/montserrat-latin-500.woff")
format("woff"); /* Modern Browsers */
}
/* montserrat-500italic - latin */
@font-face {
font-family: "Montserrat";
font-style: italic;
font-display: swap;
font-weight: 500;
src: local("Montserrat Medium italic"), local("Montserrat-Mediumitalic"),
url("/fonts/Montserrat/files/montserrat-latin-500italic.woff2") format("woff2"),
/* Super Modern Browsers */
url("/fonts/Montserrat/files/montserrat-latin-500italic.woff") format("woff"); /* Modern Browsers */
}
/* montserrat-600normal - latin */
@font-face {
font-family: "Montserrat";
font-style: normal;
font-display: swap;
font-weight: 600;
src: local("Montserrat SemiBold "), local("Montserrat-SemiBold"),
url("/fonts/Montserrat/files/montserrat-latin-600.woff2") format("woff2"),
/* Super Modern Browsers */ url("/fonts/Montserrat/files/montserrat-latin-600.woff")
format("woff"); /* Modern Browsers */
}
/* montserrat-600italic - latin */
@font-face {
font-family: "Montserrat";
font-style: italic;
font-display: swap;
font-weight: 600;
src: local("Montserrat SemiBold italic"), local("Montserrat-SemiBolditalic"),
url("/fonts/Montserrat/files/montserrat-latin-600italic.woff2") format("woff2"),
/* Super Modern Browsers */
url("/fonts/Montserrat/files/montserrat-latin-600italic.woff") format("woff"); /* Modern Browsers */
}
/* montserrat-700normal - latin */
@font-face {
font-family: "Montserrat";
font-style: normal;
font-display: swap;
font-weight: 700;
src: local("Montserrat Bold "), local("Montserrat-Bold"),
url("/fonts/Montserrat/files/montserrat-latin-700.woff2") format("woff2"),
/* Super Modern Browsers */ url("/fonts/Montserrat/files/montserrat-latin-700.woff")
format("woff"); /* Modern Browsers */
}
/* montserrat-700italic - latin */
@font-face {
font-family: "Montserrat";
font-style: italic;
font-display: swap;
font-weight: 700;
src: local("Montserrat Bold italic"), local("Montserrat-Bolditalic"),
url("/fonts/Montserrat/files/montserrat-latin-700italic.woff2") format("woff2"),
/* Super Modern Browsers */
url("/fonts/Montserrat/files/montserrat-latin-700italic.woff") format("woff"); /* Modern Browsers */
}
/* montserrat-800normal - latin */
@font-face {
font-family: "Montserrat";
font-style: normal;
font-display: swap;
font-weight: 800;
src: local("Montserrat ExtraBold "), local("Montserrat-ExtraBold"),
url("/fonts/Montserrat/files/montserrat-latin-800.woff2") format("woff2"),
/* Super Modern Browsers */ url("/fonts/Montserrat/files/montserrat-latin-800.woff")
format("woff"); /* Modern Browsers */
}
/* montserrat-800italic - latin */
@font-face {
font-family: "Montserrat";
font-style: italic;
font-display: swap;
font-weight: 800;
src: local("Montserrat ExtraBold italic"),
local("Montserrat-ExtraBolditalic"),
url("/fonts/Montserrat/files/montserrat-latin-800italic.woff2") format("woff2"),
/* Super Modern Browsers */
url("/fonts/Montserrat/files/montserrat-latin-800italic.woff") format("woff"); /* Modern Browsers */
}
/* montserrat-900normal - latin */
@font-face {
font-family: "Montserrat";
font-style: normal;
font-display: swap;
font-weight: 900;
src: local("Montserrat Black "), local("Montserrat-Black"),
url("/fonts/Montserrat/files/montserrat-latin-900.woff2") format("woff2"),
/* Super Modern Browsers */ url("/fonts/Montserrat/files/montserrat-latin-900.woff")
format("woff"); /* Modern Browsers */
}
/* montserrat-900italic - latin */
@font-face {
font-family: "Montserrat";
font-style: italic;
font-display: swap;
font-weight: 900;
src: local("Montserrat Black italic"), local("Montserrat-Blackitalic"),
url("/fonts/Montserrat/files/montserrat-latin-900italic.woff2") format("woff2"),
/* Super Modern Browsers */
url("/fonts/Montserrat/files/montserrat-latin-900italic.woff") format("woff"); /* Modern Browsers */
}

View File

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 13 KiB

View File

Before

Width:  |  Height:  |  Size: 70 KiB

After

Width:  |  Height:  |  Size: 70 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

View File

@ -1,17 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<meta name="description" content="Web site created using create-react-app" />
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
<title>React App</title>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
</body>
</html>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.4 KiB

View File

@ -1,25 +0,0 @@
{
"short_name": "React App",
"name": "Create React App Sample",
"icons": [
{
"src": "favicon.ico",
"sizes": "64x64 32x32 24x24 16x16",
"type": "image/x-icon"
},
{
"src": "logo192.png",
"type": "image/png",
"sizes": "192x192"
},
{
"src": "logo512.png",
"type": "image/png",
"sizes": "512x512"
}
],
"start_url": ".",
"display": "standalone",
"theme_color": "#000000",
"background_color": "#ffffff"
}

View File

@ -1,3 +0,0 @@
# https://www.robotstxt.org/robotstxt.html
User-agent: *
Disallow:

View File

@ -1,22 +0,0 @@
import React from 'react';
import { Link, useLocation } from 'react-router-dom';
import './Header.css';
export default function NavigationLink(props) {
const location = useLocation();
return (
<li className="navbar-item">
<Link
className=
{
`navbar-link ${location.pathname === props.path ? "navbar-link-active" : null}`
}
to={props.path}
>
{props.name}
</Link>
</li>
);
}

View File

@ -1,35 +0,0 @@
/* Libraries Imports */
import React from 'react';
import ReactDOM from 'react-dom';
import { BrowserRouter, Route, Switch } from 'react-router-dom';
/* Components Imports */
import Header from './components/Header/Header';
import Footer from './components/Footer/Footer';
/* Pages Imports */
import Home from './pages/Home/Home';
/* Contexts Imports */
/* CSS Imports */
import 'typeface-montserrat';
import 'normalize.css';
import './assets/css/grid.css';
import './assets/css/general.css';
function App() {
return (
<BrowserRouter>
<Header />
<div className="content container-fluid">
<Switch>
<Route exact path="/" component={Home} />
</Switch>
</div>
<Footer />
</BrowserRouter>
);
}
ReactDOM.render(<App />, document.getElementById('root'));

View File

@ -1,9 +0,0 @@
import React from 'react';
export default function Home() {
return (
<div>
Home
</div>
);
}