mirror of
https://github.com/github/awesome-copilot.git
synced 2026-05-06 07:02:12 +00:00
76ac13a9b8
* Removing search from the home pageThis was a little confusing because there are two searches, but the overall site search is a lot more powerful * Prefilter website search by resource page Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * small error handling and formatting * Simplify website listing controls Remove per-page text search, trim page-specific controls, and move remaining sort/filter controls into compact flyouts. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --------- Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
54 lines
2.3 KiB
Plaintext
54 lines
2.3 KiB
Plaintext
---
|
|
import StarlightPage from '@astrojs/starlight/components/StarlightPage.astro';
|
|
import Modal from '../components/Modal.astro';
|
|
import ContributeCTA from '../components/ContributeCTA.astro';
|
|
import PageHeader from '../components/PageHeader.astro';
|
|
import EmbeddedPageData from '../components/EmbeddedPageData.astro';
|
|
import BackToTop from '../components/BackToTop.astro';
|
|
import skillsData from '../../public/data/skills.json';
|
|
import { renderSkillsHtml, sortSkills } from '../scripts/pages/skills-render';
|
|
|
|
const initialItems = sortSkills(skillsData.items, 'title');
|
|
---
|
|
|
|
<StarlightPage frontmatter={{ title: 'Skills', description: 'Self-contained agent skills with instructions and bundled resources', template: 'splash', prev: false, next: false, editUrl: false }}>
|
|
<div id="main-content">
|
|
<PageHeader title="Skills" description="Self-contained agent skills with instructions and bundled resources" icon="lightning" />
|
|
|
|
<div class="page-content">
|
|
<div class="container">
|
|
<div class="listing-toolbar">
|
|
<div class="listing-toolbar-row">
|
|
<div class="results-count" id="results-count" aria-live="polite">{initialItems.length} skills</div>
|
|
<details class="listing-controls">
|
|
<summary class="listing-controls-trigger btn btn-secondary btn-small">Sort</summary>
|
|
<div class="listing-controls-panel">
|
|
<div class="filters-bar" id="filters-bar">
|
|
<div class="filter-group">
|
|
<label for="sort-select">Sort:</label>
|
|
<select id="sort-select" aria-label="Sort by">
|
|
<option value="title">Name (A-Z)</option>
|
|
<option value="lastUpdated">Recently Updated</option>
|
|
</select>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</details>
|
|
</div>
|
|
</div>
|
|
<div class="resource-list" id="resource-list" role="list" set:html={renderSkillsHtml(initialItems)}></div>
|
|
<ContributeCTA resourceType="skills" />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<Modal />
|
|
<BackToTop />
|
|
|
|
<EmbeddedPageData filename="skills.json" data={skillsData} />
|
|
<script>
|
|
import '../scripts/listing-flyouts';
|
|
import '../scripts/pages/skills';
|
|
</script>
|
|
</StarlightPage>
|