Fix lint errors for src/components/static/404.tsx

This commit is contained in:
zeon-neon[bot] 2024-06-22 22:09:50 +00:00 committed by GitHub
parent 223affe5dc
commit 06385d0660
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,22 +1,22 @@
import Icon from "./Icons" import Icon from './Icons'
import { javascriptReact } from "./icons_list" import { javascriptReact } from './icons_list'
import "./404.css" import './404.css'
import ReactParallaxTilt from "react-parallax-tilt" import ReactParallaxTilt from 'react-parallax-tilt'
export default function Page404 () { export default function Page404 () {
return <div className="hero min-h-screen"> return <div className='hero min-h-screen'>
<div className="hero-content text-center"> <div className='hero-content text-center'>
<div className="max-w-md"> <div className='max-w-md'>
<ReactParallaxTilt> <ReactParallaxTilt>
<Icon icon={javascriptReact} className='w-60 p-2 animate-404' noScale /> <Icon icon={javascriptReact} className='w-60 p-2 animate-404' noScale />
</ReactParallaxTilt> </ReactParallaxTilt>
<h1 className="text-5xl font-bold text-highlight" >404?</h1> <h1 className='text-5xl font-bold text-highlight' >404?</h1>
<p className="py-6">Seems you are on the wrong page.</p> <p className='py-6'>Seems you are on the wrong page.</p>
<div> <div>
<button className="btn mauve mr-2" style={{ background: "var(--surface0)"}} onClick={() => { <button className='btn mauve mr-2' style={{ background: 'var(--surface0)'}} onClick={() => {
window.history.back() window.history.back()
}}>Go back</button> }}>Go back</button>
<button className="btn mauve" style={{ background: "var(--surface0)"}} onClick={() => { <button className='btn mauve' style={{ background: 'var(--surface0)'}} onClick={() => {
window.location.hash = "#" window.location.hash = '#'
}}>Go Home</button> }}>Go Home</button>
</div> </div>