Skip to content

Commit

Permalink
add fun moving gradient on login screen
Browse files Browse the repository at this point in the history
  • Loading branch information
d-ivashchuk committed Mar 27, 2024
1 parent 7b9f4a8 commit 68b46a3
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 12 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
"superjson": "^2.2.1",
"tailwind-merge": "^2.2.2",
"tailwindcss-animate": "^1.0.7",
"uvcanvas": "^0.2.1",
"zod": "^3.22.4"
},
"devDependencies": {
Expand Down
50 changes: 50 additions & 0 deletions pnpm-lock.yaml

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

12 changes: 3 additions & 9 deletions src/components/patterns/login-screen.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"use client";

import { signIn } from "next-auth/react";
import Image from "next/image";
import { Novatrix } from "uvcanvas";

import { Button } from "~/components/ui/button";

Expand Down Expand Up @@ -29,14 +29,8 @@ export function LoginScreen() {
</div>
</div>
</div>
<div className="hidden bg-muted lg:block">
<Image
src="/placeholder.svg"
alt="Image"
width="1920"
height="1080"
className="h-full w-full object-cover dark:brightness-[0.2] dark:grayscale"
/>
<div className="hidden lg:block [&_canvas]:rounded-lg">
<Novatrix />
</div>
</div>
);
Expand Down
4 changes: 1 addition & 3 deletions src/components/providers/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,7 @@ const Providers = ({ children }: { children: React.ReactNode }) => {
<TRPCReactProvider>
<SessionProvider>
<PostHogProvider client={posthog}>
<PostHogIdentification>
<Layout>{children}</Layout>
</PostHogIdentification>
<PostHogIdentification>{children}</PostHogIdentification>
</PostHogProvider>
</SessionProvider>
</TRPCReactProvider>
Expand Down

0 comments on commit 68b46a3

Please sign in to comment.