This repository was archived by the owner on Feb 25, 2025. It is now read-only.
Commit a89e108 1 parent 6d472fd commit a89e108 Copy full SHA for a89e108
File tree 2 files changed +10
-4
lines changed
layout/FAQs/components/Question
2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change 10
10
jobs :
11
11
build :
12
12
runs-on : ubuntu-latest
13
- steps :
14
- # Link PR to Trello
13
+ steps :
14
+ # Link PR to Trello
15
15
- name : Link to Trello
16
16
uses :
rematocorp/[email protected]
17
17
with :
Original file line number Diff line number Diff line change @@ -21,7 +21,13 @@ export default function Question({
21
21
< h2 className = "font-terminal-uppercase mb-4 text-2xl md:text-4xl" >
22
22
{ title }
23
23
</ 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 >
25
31
< div className = "flex items-center justify-end" >
26
32
< Link
27
33
href = { href }
@@ -30,7 +36,7 @@ export default function Question({
30
36
{ link }
31
37
</ Link >
32
38
< 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 "
34
40
onClick = { ( ) =>
35
41
setShowQuestion ( ( prevShowQuestion ) => ! prevShowQuestion )
36
42
}
You can’t perform that action at this time.
0 commit comments