Skip to content

Commit

Permalink
Merge pull request #64 from sarathrajan922/feature/user
Browse files Browse the repository at this point in the history
error component content changed
  • Loading branch information
sarathrajan922 authored Aug 25, 2023
2 parents 6471cd6 + 66794dc commit 20312ba
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 11 deletions.
6 changes: 3 additions & 3 deletions client/build/asset-manifest.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"files": {
"main.css": "/static/css/main.180cfe82.css",
"main.js": "/static/js/main.547c5d75.js",
"main.js": "/static/js/main.59c1d409.js",
"index.html": "/index.html",
"main.180cfe82.css.map": "/static/css/main.180cfe82.css.map",
"main.547c5d75.js.map": "/static/js/main.547c5d75.js.map"
"main.59c1d409.js.map": "/static/js/main.59c1d409.js.map"
},
"entrypoints": [
"static/css/main.180cfe82.css",
"static/js/main.547c5d75.js"
"static/js/main.59c1d409.js"
]
}
2 changes: 1 addition & 1 deletion client/build/index.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" type="image/png" href="https://res.cloudinary.com/dk4darniv/image/upload/v1690747046/logo-white-removebg-preview_2_wnou0a.png"/><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="/logo192.png"/><link rel="manifest" href="/manifest.json"/><link href="https://cdnjs.cloudflare.com/ajax/libs/flowbite/1.6.5/flowbite.min.css" rel="stylesheet"/><title>Voyago</title><script defer="defer" src="/static/js/main.547c5d75.js"></script><link href="/static/css/main.180cfe82.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><script src="https://cdnjs.cloudflare.com/ajax/libs/flowbite/1.6.5/flowbite.min.js"></script></body></html>
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" type="image/png" href="https://res.cloudinary.com/dk4darniv/image/upload/v1690747046/logo-white-removebg-preview_2_wnou0a.png"/><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="/logo192.png"/><link rel="manifest" href="/manifest.json"/><link href="https://cdnjs.cloudflare.com/ajax/libs/flowbite/1.6.5/flowbite.min.css" rel="stylesheet"/><title>Voyago</title><script defer="defer" src="/static/js/main.59c1d409.js"></script><link href="/static/css/main.180cfe82.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><script src="https://cdnjs.cloudflare.com/ajax/libs/flowbite/1.6.5/flowbite.min.js"></script></body></html>

Large diffs are not rendered by default.

Large diffs are not rendered by default.

10 changes: 7 additions & 3 deletions client/src/components/common/Error.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
import React from "react";
import React, { useEffect, useState } from "react";
import { Link } from "react-router-dom";

const Error:React.FC = ()=>{
const [url,setUrl] = useState<string>('')
useEffect(()=>{
setUrl(window.location.href)
},[])
return (
<>
<section className="my-28 mb-44 dark:bg-gray-900">
<div className="px-4 mx-auto max-w-screen-xl lg:pt-0">
<div className="flex flex-col h-[35rem] items-center justify-center lg:flex-row lg:justify-center">
<div className="text-center mt-32 lg:mt-0 lg:pr-10 ">
<h1 className="text-2xl font-bold">Sorry! Our website is undergoing maintenance</h1>
<p className="text-xm">We worked hard to be ready soon. You can check our socials before our website is ready.</p>
<h1 className="text-2xl font-bold">Invalid URL!</h1>
<p className="text-xm">Please make sure you've entered a valid web address <span className="text-red-400">{url}</span> and try again.</p>
<Link to='/' className="btn border-t-indigo-500 text-blue-500">Home</Link>
</div>
<div className="w-full lg:w-1/2 lg:my-0 md:my-5">
Expand Down

0 comments on commit 20312ba

Please sign in to comment.