mirror of
https://github.com/github/awesome-copilot.git
synced 2026-03-12 12:15:12 +00:00
* Add contribution CTA to all listing/search pages Add a reusable ContributeCTA component that encourages visitors to contribute their own resources. The CTA appears at the bottom of every resource listing page (agents, instructions, skills, hooks, workflows, plugins, tools) with: - Contextual text that adapts to the resource type - 'Contribute yours' primary button linking to CONTRIBUTING.md - 'Request a resource' outline button linking to new issue creation - Gradient top bar matching existing card design patterns - Responsive layout that stacks on mobile Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * Add Contribute button to page header on all listing pages Place an outlined Contribute button in each page-header section so it's immediately visible without scrolling. Uses accent purple border that fills on hover with a glow effect. Stacks below description on mobile via a 600px breakpoint. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * Add screenshots for contribution CTA PR Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * didn't mean to commit them * Extract PageHeader component to deduplicate header markup Address PR review feedback: the header Contribute link (URL, SVG icon, classes) was duplicated across all 7 listing pages. Extract into a reusable PageHeader.astro component that accepts title and description props, with a slot for rich HTML descriptions (used by workflows page). Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --------- Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
25 lines
827 B
Plaintext
25 lines
827 B
Plaintext
---
|
|
interface Props {
|
|
title: string;
|
|
description: string;
|
|
}
|
|
|
|
const { title, description } = Astro.props;
|
|
const contributingUrl = 'https://github.com/github/awesome-copilot/blob/main/CONTRIBUTING.md';
|
|
---
|
|
|
|
<div class="page-header">
|
|
<div class="container">
|
|
<div class="page-header-row">
|
|
<div>
|
|
<h1><Fragment set:html={title} /></h1>
|
|
<p><slot><Fragment set:html={description} /></slot></p>
|
|
</div>
|
|
<a href={contributingUrl} class="contribute-link" target="_blank" rel="noopener">
|
|
<svg viewBox="0 0 16 16" width="16" height="16" fill="currentColor" aria-hidden="true"><path d="M7.75 2a.75.75 0 0 1 .75.75V7h4.25a.75.75 0 0 1 0 1.5H8.5v4.25a.75.75 0 0 1-1.5 0V8.5H2.75a.75.75 0 0 1 0-1.5H7V2.75A.75.75 0 0 1 7.75 2Z"/></svg>
|
|
Contribute
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</div>
|