Skip to content

Website: How did you do the terminal command tab preview component? #3184

Answered by mislav
mainrs asked this question in Q&A
Discussion options

You must be logged in to vote

Hi, this is done via simple JavaScript: https://gist.github.com/f63b3a8dcdb83c6b80803f8aef748217

This is roughly the markup:

    <tab-container>
      <div class="container-xl mx-auto px-3 px-md-4 mb-6">
        <!-- Terminal -->
        <h3 class="command-header text-mono f2 text-normal text-center mb-2">
          <span class="text-blue-mktg mr-2">$</span>
          <span class="command command-1 type-animate d-none">gh issue list</span>
          <span class="command command-2 type-animate d-none">gh pr status</span>
          <!-- ... -->
        </h3>
        <p class="command command-1 d-none f4 text-gray text-center mb-4">View and filter a repository’s open issues.</p>
        <p c…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by mainrs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants