Homepage Improvements

This commit is contained in:
Eric Gullickson
2025-11-05 11:15:33 -06:00
parent 0c3ed01f4b
commit e4e7e32a4f
10 changed files with 70 additions and 43 deletions

View File

@@ -64,7 +64,7 @@ export const DocumentDetailPage: React.FC = () => {
<p className="text-slate-600 mb-6">Please log in to view this document</p>
<div className="space-x-3">
<Button onClick={() => loginWithRedirect()}>Login to Continue</Button>
<Button variant="secondary" onClick={() => navigate('/documents')}>Back to Documents</Button>
<Button variant="secondary" onClick={() => navigate('/garage/documents')}>Back to Documents</Button>
</div>
</div>
</Card>
@@ -88,7 +88,7 @@ export const DocumentDetailPage: React.FC = () => {
<p className="text-slate-600 mb-6">Your session has expired. Please log in again to continue.</p>
<div className="space-x-3">
<Button onClick={() => loginWithRedirect()}>Login Again</Button>
<Button variant="secondary" onClick={() => navigate('/documents')}>Back to Documents</Button>
<Button variant="secondary" onClick={() => navigate('/garage/documents')}>Back to Documents</Button>
</div>
</div>
</Card>
@@ -112,7 +112,7 @@ export const DocumentDetailPage: React.FC = () => {
<p className="text-slate-600 mb-6">The document you're looking for could not be found.</p>
<div className="space-x-3">
<Button onClick={() => window.location.reload()}>Retry</Button>
<Button variant="secondary" onClick={() => navigate('/documents')}>Back to Documents</Button>
<Button variant="secondary" onClick={() => navigate('/garage/documents')}>Back to Documents</Button>
</div>
</div>
</Card>
@@ -127,7 +127,7 @@ export const DocumentDetailPage: React.FC = () => {
<div className="p-8 text-center">
<h3 className="text-lg font-semibold text-slate-800 mb-2">Document Not Found</h3>
<p className="text-slate-600 mb-6">The document you're looking for does not exist.</p>
<Button onClick={() => navigate('/documents')}>Back to Documents</Button>
<Button onClick={() => navigate('/garage/documents')}>Back to Documents</Button>
</div>
</Card>
</div>