Skip to content

Commit

Permalink
refactor: update frontpage animation for v3 (#1975)
Browse files Browse the repository at this point in the history
  • Loading branch information
afzal442 authored Oct 25, 2023
1 parent 98865e5 commit 5793f4c
Showing 1 changed file with 28 additions and 10 deletions.
38 changes: 28 additions & 10 deletions components/DemoAnimation.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export default function DemoAnimation({ className = '' }) {
const common = (
<>
<div>
<span className="text-teal-400">asyncapi:</span> 2.6.0
<span className="text-teal-400">asyncapi:</span> 3.0.0
</div>
<div>
<span className="text-teal-400">info:</span>
Expand Down Expand Up @@ -85,10 +85,34 @@ export default function DemoAnimation({ className = '' }) {
<span className="text-teal-400">channels:</span>
</div>
<div>
<span className="text-yellow-300">&nbsp;&nbsp;user/signedup:</span>
<span className="text-yellow-300">&nbsp;&nbsp;userSignedup:</span>
</div>
<div>
<span className="text-purple-400">&nbsp;&nbsp;&nbsp;&nbsp;subscribe:</span>
<span className="text-purple-400">&nbsp;&nbsp;&nbsp;&nbsp;address:</span><span className="text-teal-200">'user/signedup'</span>
</div>
<div>
<span className="text-teal-400">&nbsp;&nbsp;&nbsp;&nbsp;messages:</span>
</div>
<div>
<span className="text-yellow-300">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;userSignedupMessage:</span>
</div>
<div>
<span className="text-teal-200">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$ref:</span><span className="text-teal-200">'#/components/messages/UserSignedUp'</span>
</div>
<div>
<span className="text-teal-400">operations:</span>
</div>
<div>
<span className="text-yellow-300">&nbsp;&nbsp;processUserSignups:</span>
</div>
<div>
<span className="text-purple-400">&nbsp;&nbsp;&nbsp;&nbsp;action:</span><span className="text-teal-200">'receive'</span>
</div>
<div>
<span className="text-teal-400">&nbsp;&nbsp;&nbsp;&nbsp;channel:</span>
</div>
<div>
<span className="text-teal-200">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$ref:</span><span className="text-teal-200"> '#/channels/userSignedup'</span>
</div>
<Typing.Delay ms={500} />
</>,
Expand All @@ -99,12 +123,6 @@ export default function DemoAnimation({ className = '' }) {
function renderUntilMessagePayload(callback) {
return renderTyping(
<>
<div>
<span className="text-teal-400">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;message:</span>
</div>
<div>
<span className="text-teal-200">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$ref:</span><span className="text-teal-200"> '#/components/messages/UserSignedUp'</span>
</div>
<div>
<span className="text-teal-400">components:</span>
</div>
Expand Down Expand Up @@ -242,7 +260,7 @@ export default function DemoAnimation({ className = '' }) {
</div>

<div className={transitionClassNames(showChannelsAndOperation)}>
<span className="px-3 py-2 mr-2 bg-green-500 text-white font-bold rounded">SUB</span> <span className="text-lg text-gray-700">user/signedup</span>
<span className="px-3 py-2 mr-2 bg-green-500 text-white font-bold rounded">RECEIVES</span> <span className="text-lg text-gray-700">user/signedup</span>
</div>

<div className={transitionClassNames(showUntilMessagePayload)}>
Expand Down

0 comments on commit 5793f4c

Please sign in to comment.