1
0

Fix dark mode login/signup pages

This commit is contained in:
Ahmed Al-Taiar
2023-11-01 08:35:47 -04:00
parent f5a6b1c37a
commit af93899796
5 changed files with 20 additions and 25 deletions

View File

@ -16,19 +16,19 @@ const NavbarAccountIcon = ({ mobile, className }: Props) => {
return isAuthenticated ? ( return isAuthenticated ? (
<div className={className}> <div className={className}>
<details <details
className={`dropdown dropdown-end ${ className={`dropdown-end dropdown ${
mobile ? 'space-y-2' : 'space-y-4' mobile ? 'space-y-2' : 'space-y-4'
}`} }`}
> >
<summary className="btn btn-ghost swap swap-rotate w-12 hover:shadow-lg"> <summary className="btn btn-ghost swap swap-rotate w-12 hover:shadow-lg">
<Icon path={mdiAccount} className="h-8 w-8 text-gray-500" /> <Icon path={mdiAccount} className="h-8 w-8 text-base-content" />
</summary> </summary>
<div className="dropdown-content flex w-auto flex-row items-center space-x-3 rounded-xl bg-base-100 p-3 shadow-lg"> <div className="dropdown-content flex w-auto flex-row items-center space-x-3 rounded-xl bg-base-100 p-3 shadow-lg">
<p className="whitespace-nowrap font-inter text-lg"> <p className="whitespace-nowrap font-inter text-lg">
Hello, {currentUser.firstName}! Hello, {currentUser.firstName}!
</p> </p>
<button className="btn btn-ghost" type="button" onClick={logOut}> <button className="btn btn-ghost" type="button" onClick={logOut}>
<Icon path={mdiLogout} className="h-7 w-7 text-gray-600" /> <Icon path={mdiLogout} className="h-7 w-7 text-base-content" />
</button> </button>
</div> </div>
</details> </details>
@ -37,7 +37,7 @@ const NavbarAccountIcon = ({ mobile, className }: Props) => {
<div className={className}> <div className={className}>
<Link to={routes.login()}> <Link to={routes.login()}>
<button className="btn btn-ghost" type="button" onClick={logOut}> <button className="btn btn-ghost" type="button" onClick={logOut}>
<Icon path={mdiLogin} className="h-8 w-8 text-gray-500" /> <Icon path={mdiLogin} className="h-8 w-8 text-base-content" />
</button> </button>
</Link> </Link>
</div> </div>

View File

@ -62,7 +62,7 @@ const ForgotPasswordPage = () => {
validation={{ validation={{
required: { required: {
value: true, value: true,
message: 'Email is required', message: 'Required',
}, },
pattern: { pattern: {
value: new RegExp( value: new RegExp(

View File

@ -107,7 +107,9 @@ const LoginPage = () => {
</div> </div>
</div> </div>
<div className="rw-login-link"> <div className="rw-login-link">
<span className="font-inter">Don&apos;t have an account?</span>{' '} <span className="font-inter text-base-content">
Don&apos;t have an account?
</span>{' '}
<Link to={routes.signup()} className="rw-link"> <Link to={routes.signup()} className="rw-link">
Sign up! Sign up!
</Link> </Link>

View File

@ -140,7 +140,9 @@ const SignupPage = () => {
</div> </div>
</div> </div>
<div className="rw-login-link"> <div className="rw-login-link">
<span className="font-inter">Already have an account?</span>{' '} <span className="font-inter text-base-content">
Already have an account?
</span>{' '}
<Link to={routes.login()} className="rw-link"> <Link to={routes.login()} className="rw-link">
Log in! Log in!
</Link> </Link>

View File

@ -24,7 +24,7 @@
@apply m-4; @apply m-4;
} }
.rw-segment { .rw-segment {
@apply w-full overflow-hidden rounded-lg border border-gray-200; @apply w-full overflow-hidden rounded-lg ;
scrollbar-color: theme('colors.zinc.400') transparent; scrollbar-color: theme('colors.zinc.400') transparent;
} }
.rw-segment::-webkit-scrollbar { .rw-segment::-webkit-scrollbar {
@ -37,25 +37,19 @@
@apply rounded-full border-[3px] border-solid border-transparent bg-zinc-400 bg-clip-content; @apply rounded-full border-[3px] border-solid border-transparent bg-zinc-400 bg-clip-content;
} }
.rw-segment-header { .rw-segment-header {
@apply bg-gray-200 px-4 py-3 text-gray-700; @apply bg-base-300 px-4 py-3;
} }
.rw-segment-main { .rw-segment-main {
@apply bg-gray-100 p-4; @apply bg-base-200 p-4;
} }
.rw-link { .rw-link {
@apply font-inter text-blue-400 underline; @apply font-inter link link-hover text-base-content;
}
.rw-link:hover {
@apply text-blue-500;
} }
.rw-forgot-link { .rw-forgot-link {
@apply mt-1 text-right font-inter text-xs text-gray-400 underline; @apply text-right font-inter text-xs text-base-content link link-hover;
}
.rw-forgot-link:hover {
@apply text-blue-500;
} }
.rw-heading { .rw-heading {
@apply font-inter font-semibold; @apply font-inter font-semibold text-base-content;
} }
.rw-heading.rw-heading-primary { .rw-heading.rw-heading-primary {
@apply text-xl; @apply text-xl;
@ -110,10 +104,10 @@
@apply text-red-600; @apply text-red-600;
} }
.rw-input { .rw-input {
@apply input input-bordered w-full max-w-xs font-inter; @apply input input-bordered w-full max-w-xs font-inter text-base-content;
} }
.rw-textarea { .rw-textarea {
@apply textarea textarea-bordered font-inter max-w-xs w-full; @apply textarea textarea-bordered font-inter max-w-xs w-full text-base-content;
} }
.rw-check-radio-items { .rw-check-radio-items {
@apply flex justify-items-center; @apply flex justify-items-center;
@ -125,9 +119,6 @@
.rw-input[type='radio'] { .rw-input[type='radio'] {
@apply ml-0 mr-1 mt-1 inline w-4; @apply ml-0 mr-1 mt-1 inline w-4;
} }
.rw-input:focus {
@apply border-gray-400;
}
.rw-input-error { .rw-input-error {
@apply input-error; @apply input-error;
} }
@ -188,7 +179,7 @@
@apply text-center; @apply text-center;
} }
.rw-login-container { .rw-login-container {
@apply mx-auto my-16 flex w-96 flex-wrap items-center justify-center; @apply mx-auto my-16 flex w-96 flex-wrap items-center justify-center bg-base-100;
} }
.rw-login-container .rw-form-wrapper { .rw-login-container .rw-form-wrapper {
@apply w-full text-center; @apply w-full text-center;