style: improve mobile responsiveness and a11y for WelcomeModal
This commit is contained in:
@@ -15,7 +15,7 @@ export default function WelcomeModal({
|
|||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<Modal isOpen={true}>
|
<Modal isOpen={true}>
|
||||||
<div className="flex flex-col items-center text-center gap-4">
|
<div className="flex flex-col items-center text-center gap-2 md:gap-4">
|
||||||
<div className="bg-primary/10 p-4 rounded-full animate-pulse">
|
<div className="bg-primary/10 p-4 rounded-full animate-pulse">
|
||||||
<ShieldCheckIcon
|
<ShieldCheckIcon
|
||||||
size={48}
|
size={48}
|
||||||
@@ -25,25 +25,25 @@ export default function WelcomeModal({
|
|||||||
</div>
|
</div>
|
||||||
<h3 className="font-display text-2xl font-bold text-primary">
|
<h3 className="font-display text-2xl font-bold text-primary">
|
||||||
Welcome to
|
Welcome to
|
||||||
<Logo /> !
|
<Logo />
|
||||||
</h3>
|
</h3>
|
||||||
<p className="text-base-content/80 leading-relaxed">
|
<p className="text-sm md:text-base text-base-content/80 md:leading-relaxed">
|
||||||
Before we begin, let me make a small promise.
|
Before we begin, let me make a small promise.
|
||||||
<HandPalmIcon
|
<HandPalmIcon
|
||||||
size={18}
|
size={18}
|
||||||
className="inline text-primary"
|
className="inline text-primary"
|
||||||
weight="fill"
|
weight="fill"
|
||||||
/>
|
/>
|
||||||
<span className="divider my-0 block"></span>
|
<span className="divider my-0"></span>
|
||||||
Everything you write here is sealed with your password,{" "}
|
Everything you write here is sealed with your password,{" "}
|
||||||
<span className="font-display text-success">cryptographically</span>
|
<span className="font-display text-success">cryptographically</span>
|
||||||
, before it leaves your hands.
|
, before it leaves your hands.
|
||||||
<br />A fancy way of saying, I couldn't if I tried.
|
<br />A fancy way of saying, I couldn't if I tried.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<div className="alert alert-warning bg-paper/20 border-paper/20 flex items-start gap-3 text-left py-3">
|
<div className="alert alert-warning flex items-start gap-3 text-left py-3">
|
||||||
<WarningIcon size={24} weight="fill" className="shrink-0 mt-0.5" />
|
<WarningIcon size={24} weight="fill" className="shrink-0" />
|
||||||
<div className="text-sm font-medium text-primary-content">
|
<div className="text-xs md:text-sm font-medium text-primary-content">
|
||||||
If you ever happen to forget your password, your letters are lost
|
If you ever happen to forget your password, your letters are lost
|
||||||
to time, forever.
|
to time, forever.
|
||||||
<br />
|
<br />
|
||||||
@@ -52,7 +52,7 @@ export default function WelcomeModal({
|
|||||||
<a
|
<a
|
||||||
href="https://www.privacyguides.org/en/passwords/"
|
href="https://www.privacyguides.org/en/passwords/"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
className="link link-primary-content"
|
className="link link-neutral!"
|
||||||
rel="noopener noreferrer"
|
rel="noopener noreferrer"
|
||||||
>
|
>
|
||||||
password manager
|
password manager
|
||||||
@@ -76,7 +76,7 @@ export default function WelcomeModal({
|
|||||||
</Modal>
|
</Modal>
|
||||||
<div className="absolute bottom-0 right-0 z-1000 font-sans w-full">
|
<div className="absolute bottom-0 right-0 z-1000 font-sans w-full">
|
||||||
<Saajan
|
<Saajan
|
||||||
position="top"
|
position="left"
|
||||||
message={"I've lost words before.\nI know what it feels like."}
|
message={"I've lost words before.\nI know what it feels like."}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ export function Modal({
|
|||||||
data-testid={testId}
|
data-testid={testId}
|
||||||
className="modal modal-open modal-middle backdrop-blur-md before:absolute before:top-0 before:left-0 before:w-full before:h-full before:content-[''] before:opacity-[0.03] before:z-10 before:pointer-events-none before:bg-[url('assets/textures/noise.gif')]"
|
className="modal modal-open modal-middle backdrop-blur-md before:absolute before:top-0 before:left-0 before:w-full before:h-full before:content-[''] before:opacity-[0.03] before:z-10 before:pointer-events-none before:bg-[url('assets/textures/noise.gif')]"
|
||||||
>
|
>
|
||||||
<div className="modal-box relative bg-base-100/60 flex flex-col items-center text-center gap-6 max-w-screen">
|
<div className="modal-box border border-neutral/60 relative bg-base-100/60 flex flex-col items-center text-center gap-6">
|
||||||
{onClose && (
|
{onClose && (
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
|
|||||||
Reference in New Issue
Block a user