Skip to content

Create 404.jsx #328

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions src/pages/404.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
// src/pages/404.js

import React, { useEffect } from 'react';

function NotFound() {
useEffect(() => {
// Change the tab title for the 404 page
document.title = 'Page Not Found | Seqera Docs';

// Google Analytics tracking for 404 page
if (window.gtag) {
window.gtag('event', 'page_view', {
page_path: '/404',
page_title: '404 - Not Found',
});
}
}, []);

return (
<div style={{ textAlign: 'center', padding: '50px' }}>
<h1>Page not found</h1>
<p>The page you're looking for may have been moved or renamed.</p>
</div>
);
}

export default NotFound;
Loading