From 302613ec8b50d3902463aeaca668607ae07326d6 Mon Sep 17 00:00:00 2001 From: Kinfe123 Date: Sun, 23 Jun 2024 12:10:36 +0300 Subject: [PATCH] fix: auth page revamap --- .../TextGradient/gradient.module.css | 70 +++++++++++++++++++ apps/web/app/(auth)/signin/page.tsx | 14 ++-- packages/tailwind-config/tailwind.config.ts | 6 ++ 3 files changed, 84 insertions(+), 6 deletions(-) create mode 100644 apps/web/app/(auth)/signin/_components/TextGradient/gradient.module.css diff --git a/apps/web/app/(auth)/signin/_components/TextGradient/gradient.module.css b/apps/web/app/(auth)/signin/_components/TextGradient/gradient.module.css new file mode 100644 index 00000000..b9afc7d1 --- /dev/null +++ b/apps/web/app/(auth)/signin/_components/TextGradient/gradient.module.css @@ -0,0 +1,70 @@ +@keyframes background-pan { + from { + background-position: 0% center; + } + + to { + background-position: -200% center; + } + } + + @keyframes scale { + from, + to { + transform: scale(0); + } + + 50% { + transform: scale(1); + } + } + + @keyframes rotate { + from { + transform: rotate(0deg); + } + + to { + transform: rotate(180deg); + } + } + + .star { + --size: clamp(20px, 1.5vw, 30px); + + animation: scale 700ms ease forwards; + display: block; + height: var(--size); + left: var(--star-left); + position: absolute; + top: var(--star-top); + width: var(--size); + } + + .star > svg { + animation: rotate 1000ms linear infinite; + display: block; + opacity: 0.7; + } + + .star > svg > path { + fill: #7b3907; + } + + .magicText { + --purple: rgba(72, 130, 244, 0.868); + --violet: #9a80f7; + --pink: #f7f7f7; + animation: background-pan 3s linear infinite; + background: linear-gradient( + to right, + var(--purple), + var(--violet), + var(--pink), + var(--purple) + ); + background-size: 200%; + -webkit-background-clip: text; + -webkit-text-fill-color: transparent; + white-space: nowrap; + } \ No newline at end of file diff --git a/apps/web/app/(auth)/signin/page.tsx b/apps/web/app/(auth)/signin/page.tsx index 86ceeb95..dc2f9ac6 100644 --- a/apps/web/app/(auth)/signin/page.tsx +++ b/apps/web/app/(auth)/signin/page.tsx @@ -3,6 +3,8 @@ import Link from "next/link"; import Logo from "@/public/logo.svg"; import { signIn } from "@/app/helpers/server/auth"; import { Google } from "@repo/ui/components/icons"; +import gradientStyle from "./_components/TextGradient/gradient.module.css" +import { cn } from "@repo/ui/lib/utils"; export const runtime = "edge"; @@ -29,11 +31,11 @@ async function Signin() { alt="back bg" /> -
-

- Hello, human{" "} +
+

+ Hello, human{" "}

-

+

Write, ideate, and learn with all the wisdom of your bookmarks.

@@ -60,7 +62,7 @@ async function Signin() {
-
+
By continuing, you agree to the {" "} @@ -82,7 +84,7 @@ async function Signin() {