⚡️⚡️⚡️ Self-hosted collaborative bookmark manager to collect, read, annotate, and fully preserve what matters, all in one place.
TypeScript bookmarkbookmark-managercollaborationnextjsreact-nativeread-it-laterself-hostedtypescript
login/signup page visual improvements
Daniel2f4f3cbb291f
diff --git a/pages/login.tsx b/pages/login.tsxindex 9ba2bb2f..24d7412d 100644--- a/pages/login.tsx+++ b/pages/login.tsx@@ -1,5 +1,6 @@import SubmitButton from "@/components/SubmitButton";import { signIn } from "next-auth/react";+import Image from "next/image";import Link from "next/link";import { useState } from "react";import { toast } from "react-hot-toast";@@ -45,47 +46,58 @@ export default function Login() {return (<>- <p className="text-xl font-bold text-center text-sky-500 mt-10 mb-3">- Linkwarden- </p>- <div className="p-5 mx-auto flex flex-col gap-3 justify-between sm:w-[28rem] w-80 bg-slate-50 rounded-md border border-sky-100">- <div className="my-5 text-center">- <p className="text-3xl font-bold text-sky-500">Welcome back</p>- <p className="text-md font-semibold text-sky-400">- Sign in to your account- </p>+ <div className="p-5 my-10 mx-auto flex flex-col gap-3 justify-between sm:w-[28rem] w-80 bg-slate-50 rounded-md border border-sky-100">+ <div className="text-right flex flex-col gap-2 sm:flex-row justify-between items-center mb-5">+ <Image+ src="/linkwarden.png"+ width={1694}+ height={483}+ alt="Linkwarden"+ className="h-12 w-fit"+ />+ <div className="text-center sm:text-right">+ <p className="text-3xl font-bold text-sky-500">Welcome back</p>+ <p className="text-md font-semibold text-sky-400">+ Sign in to your account+ </p>+ </div></div>- <p className="text-sm text-sky-500 w-fit font-semibold">- Username- {EmailProvider ? " or Email" : undefined}- </p>-- <input- type="text"- placeholder="johnny"- value={form.username}- onChange={(e) => setForm({ ...form, username: e.target.value })}- className="w-full rounded-md p-3 mx-auto border-sky-100 border-solid border outline-none focus:border-sky-500 duration-100"- />+ <div>+ <p className="text-sm text-sky-500 w-fit font-semibold mb-1">+ Username+ {EmailProvider ? "/Email" : undefined}+ </p>- <p className="text-sm text-sky-500 w-fit font-semibold">Password</p>+ <input+ type="text"+ placeholder="johnny"+ value={form.username}+ onChange={(e) => setForm({ ...form, username: e.target.value })}+ className="w-full rounded-md p-2 mx-auto border-sky-100 border-solid border outline-none focus:border-sky-500 duration-100"+ />+ </div>- <input- type="password"- placeholder="***********"- value={form.password}- onChange={(e) => setForm({ ...form, password: e.target.value })}- className="w-full rounded-md p-3 mx-auto border-sky-100 border-solid border outline-none focus:border-sky-500 duration-100"- />- {EmailProvider && (- <Link- href={"/forgot"}- className="w-fit ml-auto text-gray-500 font-semibold"- >- Forgot Password?- </Link>- )}+ <div>+ <p className="text-sm text-sky-500 w-fit font-semibold mb-1">+ Password+ </p>++ <input+ type="password"+ placeholder="***********"+ value={form.password}+ onChange={(e) => setForm({ ...form, password: e.target.value })}+ className="w-full rounded-md p-2 mx-auto border-sky-100 border-solid border outline-none focus:border-sky-500 duration-100"+ />+ {EmailProvider && (+ <div className="w-fit ml-auto mt-1">+ <Link href={"/forgot"} className="text-gray-500 font-semibold">+ Forgot Password?+ </Link>+ </div>+ )}+ </div><SubmitButtononClick={loginUser}@@ -93,12 +105,12 @@ export default function Login() {className="mt-2 w-full text-center"loading={submitLoader}/>- </div>- <div className="flex items-baseline gap-1 justify-center my-3">- <p className="w-fit text-gray-500">New here?</p>- <Link href={"/register"} className="block text-sky-500 font-bold">- Sign Up- </Link>+ <div className="flex items-baseline gap-1 justify-center">+ <p className="w-fit text-gray-500">New here?</p>+ <Link href={"/register"} className="block text-sky-500 font-bold">+ Sign Up+ </Link>+ </div></div></>);diff --git a/pages/register.tsx b/pages/register.tsxindex 942e19c5..60ee1fe0 100644--- a/pages/register.tsx+++ b/pages/register.tsx@@ -3,6 +3,7 @@ import { useState } from "react";import { toast } from "react-hot-toast";import SubmitButton from "@/components/SubmitButton";import { signIn } from "next-auth/react";+import Image from "next/image";const EmailProvider = process.env.NEXT_PUBLIC_EMAIL_PROVIDER;@@ -94,54 +95,70 @@ export default function Register() {return (<>- <p className="text-xl font-bold text-center my-10 mb-3 text-sky-500">- Linkwarden- </p>- <div className="p-5 mx-auto flex flex-col gap-3 justify-between sm:w-[28rem] w-80 bg-slate-50 rounded-md border border-sky-100">- <div className="my-5 text-center">- <p className="text-3xl font-bold text-sky-500">Get started</p>- <p className="text-md font-semibold text-sky-400">- Create a new account- </p>+ <div className="p-5 mx-auto my-10 flex flex-col gap-3 justify-between sm:w-[28rem] w-80 bg-slate-50 rounded-md border border-sky-100">+ <div className="flex flex-col gap-2 sm:flex-row justify-between items-center mb-5">+ <Image+ src="/linkwarden.png"+ width={1694}+ height={483}+ alt="Linkwarden"+ className="h-12 w-fit"+ />+ <div className="text-center sm:text-right">+ <p className="text-3xl font-bold text-sky-500">Get started</p>+ <p className="text-md font-semibold text-sky-400">+ Create a new account+ </p>+ </div></div>- <p className="text-sm text-sky-500 w-fit font-semibold">Display Name</p>+ <div>+ <p className="text-sm text-sky-500 w-fit font-semibold mb-1">+ Display Name+ </p>- <input- type="text"- placeholder="Johnny"- value={form.name}- onChange={(e) => setForm({ ...form, name: e.target.value })}- className="w-full rounded-md p-3 mx-auto border-sky-100 border-solid border outline-none focus:border-sky-500 duration-100"- />+ <input+ type="text"+ placeholder="Johnny"+ value={form.name}+ onChange={(e) => setForm({ ...form, name: e.target.value })}+ className="w-full rounded-md p-2 mx-auto border-sky-100 border-solid border outline-none focus:border-sky-500 duration-100"+ />+ </div>- <p className="text-sm text-sky-500 w-fit font-semibold">Username</p>+ <div>+ <p className="text-sm text-sky-500 w-fit font-semibold mb-1">+ Username+ </p>- <input- type="text"- placeholder="john"- value={form.username}- onChange={(e) => setForm({ ...form, username: e.target.value })}- className="w-full rounded-md p-3 mx-auto border-sky-100 border-solid border outline-none focus:border-sky-500 duration-100"- />+ <input+ type="text"+ placeholder="john"+ value={form.username}+ onChange={(e) => setForm({ ...form, username: e.target.value })}+ className="w-full rounded-md p-2 mx-auto border-sky-100 border-solid border outline-none focus:border-sky-500 duration-100"+ />+ </div>{EmailProvider ? (- <>- <p className="text-sm text-sky-500 w-fit font-semibold">Email</p>+ <div>+ <p className="text-sm text-sky-500 w-fit font-semibold mb-1">+ </p><inputtype="email"placeholder="[email protected]"value={form.email}onChange={(e) => setForm({ ...form, email: e.target.value })}- className="w-full rounded-md p-3 mx-auto border-sky-100 border-solid border outline-none focus:border-sky-500 duration-100"+ className="w-full rounded-md p-2 mx-auto border-sky-100 border-solid border outline-none focus:border-sky-500 duration-100"/>- </>+ </div>) : undefined}<div className="flex item-center gap-5"><div>- <p className="text-sm text-sky-500 w-fit font-semibold mb-3">+ <p className="text-sm text-sky-500 w-fit font-semibold mb-1">Password</p>@@ -150,12 +167,12 @@ export default function Register() {placeholder="***********"value={form.password}onChange={(e) => setForm({ ...form, password: e.target.value })}- className="w-full rounded-md p-3 mx-auto border-sky-100 border-solid border outline-none focus:border-sky-500 duration-100"+ className="w-full rounded-md p-2 mx-auto border-sky-100 border-solid border outline-none focus:border-sky-500 duration-100"/></div><div>- <p className="text-sm text-sky-500 w-fit font-semibold mb-3">+ <p className="text-sm text-sky-500 w-fit font-semibold mb-1">Confirm Password</p>@@ -166,7 +183,7 @@ export default function Register() {onChange={(e) =>setForm({ ...form, passwordConfirmation: e.target.value })}- className="w-full rounded-md p-3 mx-auto border-sky-100 border-solid border outline-none focus:border-sky-500 duration-100"+ className="w-full rounded-md p-2 mx-auto border-sky-100 border-solid border outline-none focus:border-sky-500 duration-100"/></div></div>@@ -176,10 +193,9 @@ export default function Register() {className="mt-2 w-full text-center"loading={submitLoader}/>-<div className="flex items-baseline gap-1 justify-center"><p className="w-fit text-gray-500">Already have an account?</p>- <Link href={"/login"} className="block w-min text-sky-500 font-bold">+ <Link href={"/login"} className="block text-sky-500 font-bold">Login</Link></div>diff --git a/public/linkwarden.png b/public/linkwarden.pngnew file mode 100644index 00000000..8dd29953Binary files /dev/null and b/public/linkwarden.png differ