From e77fa4d8bc9d4b40b1c584c1b0d03909639b8974 Mon Sep 17 00:00:00 2001 From: Desai Hardik <87645745+imhardikdesai@users.noreply.github.com> Date: Fri, 6 Jan 2023 14:25:21 +0530 Subject: [PATCH] Add error page --- src/Pages/Error/ErrorPage.jsx | 37 +++++++++++++++++++++++++++++++++++ src/Pages/Home/Home.jsx | 8 ++++---- src/Theme/Theme1/Theme1.jsx | 33 +++++++++++++++++-------------- 3 files changed, 59 insertions(+), 19 deletions(-) create mode 100644 src/Pages/Error/ErrorPage.jsx diff --git a/src/Pages/Error/ErrorPage.jsx b/src/Pages/Error/ErrorPage.jsx new file mode 100644 index 0000000..cbb62d5 --- /dev/null +++ b/src/Pages/Error/ErrorPage.jsx @@ -0,0 +1,37 @@ +import React from 'react' +import { Box, Heading, Text, Button } from '@chakra-ui/react'; + + +const ErrorPage = () => { + return ( + <> + + + 404 + + + Template Not Found + + + This Page Resume Template is under build, coming soon.... + + + + + + ) +} + +export default ErrorPage diff --git a/src/Pages/Home/Home.jsx b/src/Pages/Home/Home.jsx index d598d95..042cc4c 100644 --- a/src/Pages/Home/Home.jsx +++ b/src/Pages/Home/Home.jsx @@ -3,7 +3,7 @@ import Introduction from '../../Components/Intro/Introduction' import ResumeContext from '../../Context/ResumeContext'; import BuilderArea from '../BuilderArea'; import Theme1 from './../../Theme/Theme1/Theme1' -import Theme2 from './../../Theme/Theme2/Theme2' +import ErrorPage from '../Error/ErrorPage'; const Home = () => { const { currentTheme, showComponent, themeData, componentRef } = useContext(ResumeContext); @@ -17,13 +17,13 @@ const Home = () => { (showComponent && currentTheme === 'Theme1') && } /> } { - (showComponent && currentTheme === 'Theme2') && } /> + (showComponent && currentTheme === 'Theme2') && } { - (showComponent && currentTheme === 'Theme3') && } /> + (showComponent && currentTheme === 'Theme3') && } { - (showComponent && currentTheme === 'Theme4') && } /> + (showComponent && currentTheme === 'Theme4') && } ) diff --git a/src/Theme/Theme1/Theme1.jsx b/src/Theme/Theme1/Theme1.jsx index 47b1f86..2cec38d 100644 --- a/src/Theme/Theme1/Theme1.jsx +++ b/src/Theme/Theme1/Theme1.jsx @@ -7,7 +7,7 @@ import { BsFillTelephoneFill } from 'react-icons/bs' import ResumeContext from '../../Context/ResumeContext' const Theme1 = (props) => { - const { checkProj, checkWork } = useContext(ResumeContext) + const { checkProj, checkWork, checkAward } = useContext(ResumeContext) const { themeData, componentRef } = props; const { name, profile, address, phone, email, skill } = themeData.personalData; const { projectTitles, projectDesc } = themeData.projectData; @@ -145,22 +145,25 @@ const Theme1 = (props) => { } {/* Award & Achievement */} -
- - AWARDS & ACHIEVEMENTS - + { + !checkAward && +
+ + AWARDS & ACHIEVEMENTS + - -
- { - awards.split(',').map((element, index) => { - return
  • {element}
  • - }) - } + +
    + { + awards.split(',').map((element, index) => { + return
  • {element}
  • + }) + } -
    -
    -
    + + +
    + }