/dec25: Nice transitions for Create and How sections

This commit is contained in:
David Ernst
2025-12-25 11:45:44 -08:00
parent d108536308
commit d26fdbc19a
2 changed files with 12 additions and 4 deletions

View File

@@ -17,7 +17,11 @@ export const CreateAVote = () => {
Create A Vote
</button>
{isOpen && (
<div
className={`overflow-hidden transition-all duration-300 ease-in-out ${
isOpen ? 'max-h-96 opacity-100' : 'max-h-0 opacity-0'
}`}
>
<div className="p-2 mb-8 w-full bg-amber-50 rounded rounded-t-none border border-t-0 border-amber-400">
<h1 className="mb-1 text-base font-bold">Vote on what?</h1>
<textarea
@@ -38,7 +42,7 @@ export const CreateAVote = () => {
Next
</button>
</div>
)}
</div>
</div>
)
}

View File

@@ -21,7 +21,11 @@ export const HowDoesItWork = () => {
How does it work?
</button>
{isOpen && (
<div
className={`overflow-hidden transition-all duration-300 ease-in-out ${
isOpen ? 'opacity-100 max-h-[800px]' : 'max-h-0 opacity-0'
}`}
>
<div className="px-2 py-2 w-full text-center border shadow-lg">
{/* 1: Setup */}
<AccordionSection isOpen={openSection === 1} onToggle={() => toggleSection(1)} title="Setup">
@@ -82,7 +86,7 @@ export const HowDoesItWork = () => {
</ul>
</AccordionSection>
</div>
)}
</div>
</div>
)
}