diff --git a/src/App.tsx b/src/App.tsx
index fce83ee5..d23dff92 100644
--- a/src/App.tsx
+++ b/src/App.tsx
@@ -8,6 +8,7 @@ import AboutPage from './components/AboutPage'
import SkillSet from './components/AboutPage/SkillSet'
import GithubStats from './components/AboutPage/Github'
import Projects from './components/Projects'
+import Page404 from './components/static/404'
// import logo from './logo.svg';
// import './App.css';
@@ -25,6 +26,7 @@ function App () {
>} />
} />
+ } />
)
}
diff --git a/src/components/HashRouter/Route.tsx b/src/components/HashRouter/Route.tsx
index c1465d4b..5253d7e8 100644
--- a/src/components/HashRouter/Route.tsx
+++ b/src/components/HashRouter/Route.tsx
@@ -1,7 +1,7 @@
export default function Route({ path, component, index }:{
path: string,
component: any,
- index?: Boolean
+ index?: Boolean,
}) {
return <>>;
diff --git a/src/components/HashRouter/index.tsx b/src/components/HashRouter/index.tsx
index 492814e6..fb35dfe2 100644
--- a/src/components/HashRouter/index.tsx
+++ b/src/components/HashRouter/index.tsx
@@ -6,9 +6,9 @@ export function HashRouter({ children }: any) {
debugger;
const child = children.find((child:any) => {
console.log('script', child.props, window.location.hash, child.props.route == window.location.hash, (window.location.hash.length < 2 && child.props.index))
- return child.props.path == window.location.hash || (window.location.hash.length < 2 && child.props.index)
+ return child.props.path == window.location.hash || (window.location.hash.length < 2 && child.props.index) || child.props.path == "*"
})
- console.log('child', child)
+ // console.log('child', child)
if(child) return child.props.component;
return null;
}
diff --git a/src/components/static/404.css b/src/components/static/404.css
new file mode 100644
index 00000000..4ebdce37
--- /dev/null
+++ b/src/components/static/404.css
@@ -0,0 +1,20 @@
+.animate-404 {
+ animation: App-logo-spin infinite 20s linear;
+}
+@keyframes App-logo-spin {
+
+ from {
+
+ transform: rotate(0deg);
+ /* transform: translate3d(0px,0px,0px); */
+ }
+
+ to {
+
+ transform: rotate(360deg);
+ /* transform: translate3d(10px, 10px, 10px); */
+
+
+ }
+
+ }
\ No newline at end of file
diff --git a/src/components/static/404.tsx b/src/components/static/404.tsx
new file mode 100644
index 00000000..16220712
--- /dev/null
+++ b/src/components/static/404.tsx
@@ -0,0 +1,26 @@
+import Icon from "./Icons"
+import { javascriptReact } from "./icons_list"
+import "./404.css"
+import ReactParallaxTilt from "react-parallax-tilt"
+export default function Page404() {
+return
+
+
+
+
+
+
404?
+
Seems you are on the wrong page.
+
+
+
+
+
+
+
+
+}
\ No newline at end of file
diff --git a/src/components/static/Icons.tsx b/src/components/static/Icons.tsx
index abcdbe3a..51d5d87a 100644
--- a/src/components/static/Icons.tsx
+++ b/src/components/static/Icons.tsx
@@ -14,6 +14,6 @@ const icons:any = {
CloudFolderOpen: Icons.folder_cloud_open,
...Icons
}
-export default function Icon({ icon, inject, className,width,height }: { icon: string, className?: string,width?:number,height?:number, inject?:boolean }) {
- return inject ? :
+export default function Icon({ icon, inject, className,width,height,noScale }: { icon: string, className?: string,width?:number,height?:number, inject?:boolean, noScale?:boolean }) {
+ return inject ? :
}
\ No newline at end of file