-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
88 changed files
with
10,884 additions
and
8,519 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
/* eslint-disable new-cap */ | ||
import NextAuth from "next-auth"; | ||
import { authOptions } from "./authOptions"; | ||
|
||
const handler = NextAuth(authOptions); | ||
export { handler as GET, handler as POST }; | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
'use client' // Error components must be Client Components | ||
|
||
import Meta, { defaultMetaProps } from "@/components/layout/meta"; | ||
import { useEffect } from "react"; | ||
|
||
export default function Error({ | ||
error, | ||
reset, | ||
}: { | ||
error: Error & { digest?: string }; | ||
reset: () => void; | ||
}) { | ||
useEffect(() => { | ||
// Log the error to an error reporting service | ||
console.error(error); | ||
}, [error]); | ||
|
||
return ( | ||
<div className="h-screen w-full flex justify-center items-center bg-black"> | ||
<Meta | ||
props={{ | ||
...defaultMetaProps, | ||
title: "404 | Statefarm SMARE", | ||
ogUrl: "https://smare.lryanle.com/404", | ||
}} | ||
/> | ||
<h1 className="text-2xl font-light text-white"> | ||
404 <span className="mx-3 text-4xl">|</span> User Not Found | ||
</h1> | ||
<button | ||
onClick={ | ||
// Attempt to recover by trying to re-render the segment | ||
() => reset() | ||
} | ||
> | ||
Try again | ||
</button> | ||
</div> | ||
); | ||
} |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { Inter } from "next/font/google"; | ||
import localFont from "next/font/local"; | ||
|
||
export const sfPro = localFont({ | ||
src: "./SF-Pro-Display-Medium.otf", | ||
variable: "--font-sf", | ||
}); | ||
|
||
// eslint-disable-next-line new-cap | ||
export const inter = Inter({ | ||
variable: "--font-inter", | ||
subsets: ["latin"], | ||
}); |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
import Footer from "@/layouts/footer"; | ||
import Nav from "@/layouts/nav"; | ||
import { Analytics } from "@vercel/analytics/react"; | ||
import cx from "classnames"; | ||
import { Suspense } from "react"; | ||
import { inter, sfPro } from "./fonts"; | ||
import "./globals.css"; | ||
|
||
export const metadata = { | ||
title: "SMARE - Social Marketplace Automotive Risk Engine", | ||
description: | ||
"Statefarm SMARE: A University of Texas at Arlington Senior Design Project in collaboration with Statefarm.", | ||
metadataBase: new URL("https://smare.lryanle.com"), | ||
// themeColor: "#FFF", | ||
}; | ||
|
||
export default async function RootLayout({ | ||
children, | ||
}: { | ||
children: React.ReactNode; | ||
}) { | ||
return ( | ||
<html lang="en"> | ||
<body className={cx(sfPro.variable, inter.variable)}> | ||
<div className="fixed h-screen w-full bg-gradient-to-br from-indigo-50 via-white to-red-100" /> | ||
<Suspense fallback="..."> | ||
<Nav /> | ||
</Suspense> | ||
<main className="flex min-h-screen w-full flex-col items-center justify-center py-32"> | ||
{children} | ||
</main> | ||
<Footer /> | ||
<Analytics /> | ||
</body> | ||
</html> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,18 @@ | ||
import Meta, { defaultMetaProps } from "@/components/layout/meta"; | ||
export { getStaticProps } from "."; | ||
|
||
export default function Custom500() { | ||
export default function NotFound() { | ||
return ( | ||
<div className="h-screen w-full flex justify-center items-center bg-black"> | ||
<Meta | ||
props={{ | ||
...defaultMetaProps, | ||
title: "500 | Statefarm SMARE", | ||
title: "Not Found | Statefarm SMARE", | ||
ogUrl: "https://smare.lryanle.com/500", | ||
}} | ||
/> | ||
<h1 className="text-2xl font-light text-white"> | ||
500 <span className="mx-3 text-4xl">|</span> Internal Server Occured | ||
Not Found <span className="mx-3 text-4xl">|</span> Could not find requested resource | ||
</h1> | ||
</div> | ||
</div> | ||
); | ||
} |
Oops, something went wrong.