diff --git a/src/components/Header.tsx b/src/components/Header.tsx index bcfb935..2bfb852 100644 --- a/src/components/Header.tsx +++ b/src/components/Header.tsx @@ -4,6 +4,10 @@ import { faUser, faCodeBranch, faGraduationCap, + faExclamation, + faExclamationCircle, + faExclamationTriangle, + faCode, } from '@fortawesome/free-solid-svg-icons'; import {faConnectdevelop} from '@fortawesome/free-brands-svg-icons'; @@ -30,9 +34,15 @@ const Header: FC = ({title, lead, icon = 'faUser'}) => { if (icon === 'code-branch') { return ; } + if (icon === 'code') { + return null; + } if (icon === 'graduation-cap') { return ; } + if (icon === 'not-found') { + return ; + } }; return ( diff --git a/src/pages/Landing.tsx b/src/pages/Landing.tsx index 79fe7e4..776a466 100644 --- a/src/pages/Landing.tsx +++ b/src/pages/Landing.tsx @@ -1,6 +1,7 @@ import React, {FC} from 'react'; import {Link} from 'react-router-dom'; import * as ROUTES from '../constants/routes'; +import Header from '../components/Header'; /** * Landing page @@ -9,11 +10,11 @@ const Landing: FC = () => (
-

DevBook

-

- Create developer profiles, portfolio, share and get help from other - devs -

+
Sign up diff --git a/src/pages/NotFound.tsx b/src/pages/NotFound.tsx new file mode 100644 index 0000000..544dfcd --- /dev/null +++ b/src/pages/NotFound.tsx @@ -0,0 +1,28 @@ +import React, {FC} from 'react'; +import {Link} from 'react-router-dom'; +import Header from '../components/Header'; +import * as ROUTES from '../constants/routes'; + +const NotFound: FC = () => ( +
+
+
+
+
+ + Sign up + + + Login + +
+
+
+
+); + +export default NotFound; diff --git a/src/router/Router.tsx b/src/router/Router.tsx index 306d4af..f761958 100644 --- a/src/router/Router.tsx +++ b/src/router/Router.tsx @@ -11,6 +11,7 @@ import AddExperience from '../pages/AddExperience'; import AddEducation from '../pages/AddEducation'; import PostPage from '../pages/Post'; import Posts from '../pages/Posts'; +import NotFound from '../pages/NotFound'; import * as ROUTES from '../constants/routes'; /** Register navigation paths accessible */ @@ -27,6 +28,8 @@ const Router: FC = () => ( + + ); diff --git a/src/static/css/style.min.css b/src/static/css/style.min.css index 5ef764d..e6d5d3e 100644 --- a/src/static/css/style.min.css +++ b/src/static/css/style.min.css @@ -540,3 +540,8 @@ img { .post img { width: 150px; } +.not-found { + position: relative; + background: url('../img/404.jpg') no-repeat center center/cover; + height: 100vh; +} diff --git a/src/static/img/404.jpg b/src/static/img/404.jpg new file mode 100644 index 0000000..597e6b2 Binary files /dev/null and b/src/static/img/404.jpg differ diff --git a/src/static/scss/style.scss b/src/static/scss/style.scss index ccaa0c7..6ffa043 100644 --- a/src/static/scss/style.scss +++ b/src/static/scss/style.scss @@ -1,7 +1,7 @@ -@import "_config"; -@import "_utils"; -@import "_form"; -@import "_mobile"; +@import '_config'; +@import '_utils'; +@import '_form'; +@import '_mobile'; * { box-sizing: border-box; @@ -10,7 +10,7 @@ } body { - font-family: "Raleway", sans-serif; + font-family: 'Raleway', sans-serif; font-size: 1rem; line-height: 1.6; background-color: white; @@ -62,7 +62,7 @@ img { // landing .landing { position: relative; - background: url("../img/showcase.jpg") no-repeat center center/cover; + background: url('../img/showcase.jpg') no-repeat center center/cover; height: 100vh; &-inner { @@ -93,7 +93,7 @@ img { .profile-grid { display: grid; - grid-template-areas: "top top" "about about" "exp edu" "github github"; + grid-template-areas: 'top top' 'about about' 'exp edu' 'github github'; grid-gap: 1rem; .profile-top { @@ -190,3 +190,9 @@ img { width: 150px; } } + +.not-found { + position: relative; + background: url('../img/404.jpg') no-repeat center center/cover; + height: 100vh; +}