Skip to content

Commit 513e0b4

Browse files
committed
refactor: consolidate Try buttons into single dropdown menu
Replace three separate Try buttons (HuggingChat, Poe, Google AI) with a single "Try this Skill" dropdown button that shows all options in a Bootstrap dropdown menu.
1 parent 488a9a8 commit 513e0b4

1 file changed

Lines changed: 8 additions & 9 deletions

File tree

layouts/shortcodes/skill-buttons.html

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,15 @@
1616
<i class="fa fa-folder-open"></i> View on GitHub
1717
</a>
1818
</div>
19-
<div style="display: flex; flex-wrap: wrap; gap: 0.5rem;">
20-
<button onclick="tryOnHuggingChat('{{ $rawUrl }}')" class="btn btn-warning" style="display: inline-flex; align-items: center; gap: 0.5rem;" title="Open in HuggingChat with skill pre-loaded (free)">
21-
<i class="fa fa-play"></i> Try on HuggingChat
22-
</button>
23-
<button onclick="tryOnPoe('{{ $rawUrl }}')" class="btn btn-outline-warning" style="display: inline-flex; align-items: center; gap: 0.5rem;" title="Open in Poe with skill pre-loaded (free)">
24-
<i class="fa fa-play"></i> Try on Poe
25-
</button>
26-
<button onclick="tryOnGoogleAI('{{ $rawUrl }}')" class="btn btn-outline-warning" style="display: inline-flex; align-items: center; gap: 0.5rem;" title="Open in Google AI Studio with skill pre-loaded (free)">
27-
<i class="fa fa-play"></i> Try on Google AI
19+
<div class="dropdown" style="display: inline-block;">
20+
<button class="btn btn-warning dropdown-toggle" type="button" id="tryDropdown" data-bs-toggle="dropdown" aria-expanded="false" style="display: inline-flex; align-items: center; gap: 0.5rem;">
21+
<i class="fa fa-play"></i> Try this Skill
2822
</button>
23+
<ul class="dropdown-menu" aria-labelledby="tryDropdown">
24+
<li><a class="dropdown-item" href="#" onclick="tryOnHuggingChat('{{ $rawUrl }}'); return false;"><i class="fa fa-comments"></i> HuggingChat (free)</a></li>
25+
<li><a class="dropdown-item" href="#" onclick="tryOnPoe('{{ $rawUrl }}'); return false;"><i class="fa fa-bolt"></i> Poe (free)</a></li>
26+
<li><a class="dropdown-item" href="#" onclick="tryOnGoogleAI('{{ $rawUrl }}'); return false;"><i class="fa fa-google"></i> Google AI Studio (free)</a></li>
27+
</ul>
2928
</div>
3029
</div>
3130

0 commit comments

Comments
 (0)