Skip to content

Commit

Permalink
Merge branch 'develop' into mysql-driver
Browse files Browse the repository at this point in the history
  • Loading branch information
invisal committed Aug 25, 2024
2 parents a7a230d + ba9d3b4 commit c7b0ba4
Show file tree
Hide file tree
Showing 21 changed files with 541 additions and 325 deletions.
12 changes: 6 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added public/hero-banner.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion src/app/(public)/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { Inter } from "next/font/google";
import { Toaster } from "@/components/ui/sonner";
import { Fragment } from "react";
import Script from "next/script";
import { cn } from "@/lib/utils";

const inter = Inter({ subsets: ["latin"] });

Expand All @@ -12,7 +13,7 @@ export default async function RootLayout({
children: React.ReactNode;
}) {
return (
<body className={inter.className} suppressHydrationWarning>
<body className={cn(inter.className, "dark")}>
<Fragment>{children}</Fragment>
<Toaster />
<Analytics />
Expand Down
1 change: 0 additions & 1 deletion src/app/(public)/login/github/callback/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ export async function GET(request: Request): Promise<Response> {
},
});
} catch (e) {
console.error(e);
// the specific error message depends on the provider
if (e instanceof OAuth2RequestError) {
// invalid code
Expand Down
8 changes: 4 additions & 4 deletions src/app/(public)/login/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export default async function LoginPage() {

return (
<div className="flex h-screen w-screen dark flex-col lg:flex-row">
<div className="lg:w-1/2 h-full bg-black flex justify-center items-center order-2">
<div className="lg:w-1/2 h-full flex justify-center items-center order-2">
<div className="text-white max-w-[500px] flex flex-col gap-4 text-lg">
<LogoLoading />

Expand Down Expand Up @@ -41,15 +41,15 @@ export default async function LoginPage() {
</ul>
</div>
</div>
<div className="lg:w-1/2 h-full flex justify-center items-center bg-white order-1">
<div className="lg:w-1/2 h-full flex justify-center items-center order-1 bg-zinc-900">
<div className="w-[300px] flex flex-col gap-4 text-lg">
<p className="font-mono">Login to your account</p>

{GITHUB_LOGIN_SUPPORT && (
<Link
prefetch={false}
href="/login/github"
className="border-2 border-black rounded-lg p-4 flex gap-4 items-center font-bold hover:bg-gray-200 text-black"
className="border-2 border-white rounded-lg p-4 flex gap-4 items-center font-bold hover:bg-gray-800 text-white"
>
<svg
width="98"
Expand All @@ -73,7 +73,7 @@ export default async function LoginPage() {
<Link
prefetch={false}
href="/login/google"
className="border-2 border-black rounded-lg p-4 flex gap-4 items-center font-bold hover:bg-gray-200 text-black"
className="border-2 border-white rounded-lg p-4 flex gap-4 items-center font-bold hover:bg-gray-800 text-white"
>
<img src="/google.png" className="w-6 h-6" alt="Google" />
Continue with Google
Expand Down
Loading

0 comments on commit c7b0ba4

Please sign in to comment.