Skip to content

Commit

Permalink
Merge pull request #213 from PratikMane0112/404ErrorPge
Browse files Browse the repository at this point in the history
Updated 404 error page
  • Loading branch information
thecuriousteam authored Aug 9, 2024
2 parents 8f2e46f + d76135c commit ccdeeef
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 0 deletions.
3 changes: 3 additions & 0 deletions frontend/src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import TermsOfService from './Components/common/Footer/LegalSection/TermsOfServi
import CreateMeeting from './Pages/Create-Meeting-Page';
import MeetingDetails from './Components/Pages/Meeting-Page/Meeting-Details';
import MeetingAvailability from './Components/Pages/Meeting-Page/Meeting-Availability';
import ErrorPage from './Pages/Error-Page';
import Navbar from './Components/Pages/Landing-Page/Navbar';

const App = () => {
Expand Down Expand Up @@ -38,6 +39,8 @@ const App = () => {
path='/meetingDetails/meetingAvailaibility'
element={<MeetingAvailability />}
/>
{/* Error */}
<Route path='*' element={<ErrorPage />} />
</Routes>
<Footer />
</Router>
Expand Down
25 changes: 25 additions & 0 deletions frontend/src/Components/Pages/Error-Page/ErrorPage.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import React from 'react';
import backgroundImage from '../../../assets/Landing-Page-Assets/ErrorImage.png';

const Error = () => {
return (
<div
className="flex justify-center items-center h-screen bg-cover bg-center text-center text-black"
style={{ backgroundImage: `url(${backgroundImage})` }}
>
<div className="p-5 rounded-lg md:p-20 w-11/12 md:w-auto bg-opacity-75">
<p className="text-white text-2xl md:text-4xl mb-8">Coming soon ...</p>
<div className="text-white mt-8 flex justify-center gap-7">
<a
href="/"
className="flex justify-center items-center text-lg px-5 py-3 font-semibold tracking-wide leading-5 text-white whitespace-nowrap hover:border hover:bg-transparent cursor-pointer hover:border-[#408ACD] bg-[#408ACD] rounded-[10px]"
>
Home Page
</a>
</div>
</div>
</div>
);
};

export default Error;
12 changes: 12 additions & 0 deletions frontend/src/Pages/Error-Page.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import React from 'react';
import ErrorPageContainer from '../Components/Pages/Error-Page/ErrorPage';

const ErrorPage = () => {
return (
<div>
<ErrorPageContainer />
</div>
);
};

export default ErrorPage;
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit ccdeeef

Please sign in to comment.