Skip to content

Commit

Permalink
fix: minor ui fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
alarv committed Jul 16, 2024
1 parent 69c4faa commit 0c9d97e
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 7 deletions.
6 changes: 3 additions & 3 deletions src/app/components/CustomErrorPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,16 @@ export default function CustomErrorPage({
description,
}: CustomErrorPageProps) {
return (
<div className="flex flex-col items-center justify-center text-center mt-5 p-5">
<div className="flex min-h-screen flex-col items-center justify-center p-5 text-center">
<Image
src="/sad-mascot.png" // Ensure this image is in your public folder
alt="Sad Mascot"
width={200}
height={200}
className="mx-auto"
/>
<h1 className="text-4xl font-bold text-gray-800 mt-5">{title}</h1>
<p className="text-gray-600 mt-4 max-w-xl">{description}</p>
<h1 className="mt-5 text-4xl font-bold">{title}</h1>
<p className="mt-4 max-w-xl">{description}</p>
<Button as={Link} color="primary" href="/dashboard" className="mt-10">
Go to the Dashboard
</Button>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ export default function DynamicForm({ schema, onSubmit }: DynamicFormProps) {
return (
<>
<form onSubmit={handleSubmit}>
<div className="mb-4 grid grid-cols-4 gap-6">
<div className="mb-4 grid grid-cols-2 gap-6 sm:grid-cols-4">
{schema.map((section, sectionIndex) => (
<div key={sectionIndex}>
<h3>{section.sectionTitle}</h3>
Expand Down
2 changes: 1 addition & 1 deletion src/app/dashboard/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export default function Dashboard() {
</div>
<div className="mx-auto max-w-2xl py-2 sm:py-6">
{/*<div className="hidden sm:mb-8 sm:flex sm:justify-center">*/}
{/* <div className="relative rounded-full px-3 py-1 text-sm leading-6 text-gray-600 ring-1 ring-gray-900/10 hover:ring-gray-900/20">*/}
{/* <div className="relative rounded-full px-3 py-1 text-sm leading-6 ring-1 ring-gray-900/10 hover:ring-gray-900/20">*/}
{/* Announcing our next round of funding.{' '}*/}
{/* <a href="#" className="font-semibold text-indigo-600">*/}
{/* <span aria-hidden="true" className="absolute inset-0" />*/}
Expand Down
Binary file added src/app/opengraph-image.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 0 additions & 2 deletions src/app/util/auth.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import { Session } from 'next-auth';
import { useSession } from 'next-auth/react';
import { SessionContextValue } from 'next-auth/react';

export function isAuthenticated(session: Session | null): boolean {
return !!session?.user;
Expand Down

0 comments on commit 0c9d97e

Please sign in to comment.