This repository was archived by the owner on Feb 25, 2025. It is now read-only.
File tree Expand file tree Collapse file tree
layout/FAQs/components/Question Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1010jobs :
1111 build :
1212 runs-on : ubuntu-latest
13- steps :
14- # Link PR to Trello
13+ steps :
14+ # Link PR to Trello
1515 - name : Link to Trello
1616 uses : rematocorp/trello-integration-action@v7.1.0
1717 with :
Original file line number Diff line number Diff line change @@ -21,7 +21,13 @@ export default function Question({
2121 < h2 className = "font-terminal-uppercase mb-4 text-2xl md:text-4xl" >
2222 { title }
2323 </ h2 >
24- { showQuestion && < p > { description } </ p > }
24+ < div
25+ className = { `transition-max-height overflow-hidden duration-300 ${
26+ showQuestion ? "max-h-48 opacity-100" : "max-h-0 opacity-0"
27+ } `}
28+ >
29+ { description && < p > { description } </ p > }
30+ </ div >
2531 < div className = "flex items-center justify-end" >
2632 < Link
2733 href = { href }
@@ -30,7 +36,7 @@ export default function Question({
3036 { link }
3137 </ Link >
3238 < button
33- className = "font-terminal-uppercase w-16 rounded-full bg-quinary px-2 text-xl text-white"
39+ className = "font-terminal-uppercase w-16 transform rounded-full bg-quinary px-2 text-xl text-white transition-transform duration-300 hover:scale-110 "
3440 onClick = { ( ) =>
3541 setShowQuestion ( ( prevShowQuestion ) => ! prevShowQuestion )
3642 }
You can’t perform that action at this time.
0 commit comments