diff --git a/.eslintrc.js b/.eslintrc.js
index ed92899..9f9e50b 100644
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -112,6 +112,7 @@ module.exports = {
'react/jsx-indent-props': ['off'],
'react/jsx-one-expression-per-line': ['off'],
'react/jsx-no-target-blank': ['off'],
+ 'react/jsx-curly-newline': ['off'],
'react/no-array-index-key': ['off'],
'react/react-in-jsx-scope': ['off'],
'semi': ['off'],
diff --git a/components/ArrowLeftIcon.tsx b/components/ArrowLeftIcon.tsx
new file mode 100644
index 0000000..da3e398
--- /dev/null
+++ b/components/ArrowLeftIcon.tsx
@@ -0,0 +1,13 @@
+import React from 'react'
+
+const ArrowLeftIcon = () => {
+ return (
+
+ )
+}
+
+export default ArrowLeftIcon
\ No newline at end of file
diff --git a/components/GoBack.tsx b/components/GoBack.tsx
new file mode 100644
index 0000000..4073dff
--- /dev/null
+++ b/components/GoBack.tsx
@@ -0,0 +1,31 @@
+import React from 'react';
+import { useRouter } from 'next/router';
+
+import ArrowLeftIcon from './ArrowLeftIcon';
+import Headline from './Headline';
+
+import {
+ GO_BACK,
+} from '../constants/strings';
+
+const GoBack = ({}) => {
+
+ const router = useRouter()
+
+ return (
+ router.back()}>
+
+
+
+
+ {` ${GO_BACK} `}
+
+
+
+
+ )
+}
+
+export default GoBack
\ No newline at end of file
diff --git a/components/layout.tsx b/components/layout.tsx
index 1d6240d..70f5709 100644
--- a/components/layout.tsx
+++ b/components/layout.tsx
@@ -1,12 +1,27 @@
-import { useState } from 'react'
+import React, { useState } from 'react'
+import { useRouter } from 'next/router'
import Navbar from './Navbar'
import Footer from './Footer'
+import Section from './Section'
+import GoBack from './GoBack'
export default function Layout({ children }: any) {
-
+
+ const router = useRouter()
+
const [openMobileNavbar, setOpenMobileNavbar] = useState(false)
+ const renderGoBack = () => {
+ if (!(router.pathname == '/' || router.pathname == '/projects')) {
+ return (
+
+ )
+ }
+ }
+
return (
+
+ { renderGoBack() }
+
{ children }
diff --git a/constants/strings.ts b/constants/strings.ts
index 71fc717..836e4ee 100644
--- a/constants/strings.ts
+++ b/constants/strings.ts
@@ -57,6 +57,7 @@ export const HAVE_SOME_CAPITAL = 'Have some capital, but need to secure more fun
export const PROJECT_IS_ALREADY_UP = 'Project is already up and running in production'
export const STARTING_MY_PROJECT_FROM_SCRATCH = 'Starting my project from scratch'
export const STARTED_DEVELOPMENT_BUT_NEED_ASSISTANCE = 'Started development but need more assistance'
+export const GO_BACK = 'Go back'
export const INVALID = 'Invalid'
export const PLEASE_GIVE_A_DESCRIPTION = 'Please give a brief description'
export const FIELDS_WITH_ARE_REQUIRED = 'Fields with * are required'
@@ -72,4 +73,4 @@ export const MY_OWN_STARTUP_SMALL_BUSINESS: string = 'a startup / small business
export const CORPORATION: string = 'a corporate client / large employer'
export const NON_PROFIT_ORGANIZATION: string = 'a non-profit organization'
export const PUBLIC_GOVERNMENT_AGENCY: string = 'a public service / government agency'
-export const OTHER: string = 'other'
\ No newline at end of file
+export const OTHER: string = 'other'