Skip to content

Commit 758add5

Browse files
authored
Merge branch 'asyncapi:master' into master
2 parents cc44a78 + 041ddd6 commit 758add5

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

components/Speaker/guideline.js

+7-5
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,10 @@ function Guidelines({talkDeadLine,virtual,name,cfp}) {
5858
</div>
5959

6060

61-
<p className={`mt-8 text-md text-white ${show === i ? "block" : "hidden"}`}>{faq.a1 + talkDeadLine + faq.a2}</p>
62-
61+
<p className={`text-md text-white overflow-hidden transition-all duration-500 ease-in-out transform ${show === i ? "mt-8 max-h-[1000px] opacity-100 translate-y-0" : "max-h-0 opacity-0 -translate-y-2"}`}>
62+
{faq.a1 + talkDeadLine + faq.a2}
63+
</p>
64+
6365
</div>
6466

6567
</div>)
@@ -81,8 +83,8 @@ function Guidelines({talkDeadLine,virtual,name,cfp}) {
8183
<button className='pointer border h-[30px] border-[#ffff] mr-[20px] rounded-3xl p-1'><Plus className={`w-[20px] transition-transform duration-700 ${show === i ? 'rotate-45' : 'rotate-90'}`} /></button>
8284
</div>
8385
{
84-
virtual?<p className={`mt-8 text-md text-white ${show === i ? "block" : "hidden"}`}>{faq.av}</p>:
85-
<p className={`mt-8 text-md text-white ${show === i ? "block" : "hidden"}`}>{faq.ai}</p>
86+
virtual ? <p className={`text-md text-white overflow-hidden transition-all duration-500 ease-in-out transform ${show === i ? "mt-8 max-h-[1000px] opacity-100 translate-y-0" : "max-h-0 opacity-0 -translate-y-2"}`}>{faq.av}</p>:
87+
<p className={`text-md text-white overflow-hidden transition-all duration-500 ease-in-out transform ${show === i ? "mt-8 max-h-[1000px] opacity-100 translate-y-0" : "max-h-0 opacity-0 -translate-y-2"}`}>{faq.ai}</p>
8688
}
8789

8890
</div>
@@ -106,7 +108,7 @@ function Guidelines({talkDeadLine,virtual,name,cfp}) {
106108
</div>
107109
{
108110

109-
<p className={`mt-8 text-md text-white ${show === i ? "block" : "hidden"}`}>{faq.a}</p>
111+
<p className={`text-md text-white overflow-hidden transition-all duration-500 ease-in-out transform ${show === i ? "mt-8 max-h-[1000px] opacity-100 translate-y-0" : "max-h-0 opacity-0 -translate-y-2"}`}>{faq.a}</p>
110112
}
111113

112114
</div>

0 commit comments

Comments
 (0)