Skip to content

Commit 4907bcd

Browse files
joeVennerclaude
andcommitted
feat(ui): enhance hero section, add animations and mobile responsiveness
Phase 2 & 3 UI/UX improvements: Hero Section Enhancements: - Add gradient text effect for title (purple to orange gradient) - Add animated floating particles in hero background - Increase hero padding for better visual impact Card Category Colors: - Add category-specific accent colors (AI, docs, power, automation, etc.) - Each category has unique glow effect on hover - Category colors: purple (AI), orange (docs), red (power), etc. Entrance Animations: - Add staggered fade-in animation for cards (50ms delay each) - Cards animate in with translateY + opacity - Add slide-down animation for search results Mobile Responsiveness: - Responsive grid: 4 cols → 2 cols → 1 col - Adjust font sizes for mobile screens - Add safe-area-inset support for notched devices - Ensure touch targets ≥44px Accessibility: - Add prefers-reduced-motion support - Disable animations for users who prefer reduced motion - Smooth scroll with fallback Additional Improvements: - Add arrow indicator on card hover - Add loading animation for count numbers - Enhanced scrollbar styling - Print styles for better printing Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 4c23d6c commit 4907bcd

2 files changed

Lines changed: 823 additions & 9 deletions

File tree

website/src/pages/index.astro

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,16 @@ const base = import.meta.env.BASE_URL;
3131
<div id="main-content">
3232
<!-- Hero Section -->
3333
<section class="hero" aria-labelledby="hero-heading">
34+
<div class="hero-animated-bg" aria-hidden="true">
35+
<div class="hero-particle hero-particle-1"></div>
36+
<div class="hero-particle hero-particle-2"></div>
37+
<div class="hero-particle hero-particle-3"></div>
38+
</div>
3439
<div class="container">
35-
<h1 id="hero-heading">Awesome GitHub Copilot</h1>
40+
<h1 id="hero-heading">
41+
<span class="gradient-text">Awesome</span>
42+
<span class="gradient-text-alt">GitHub Copilot</span>
43+
</h1>
3644
<p class="hero-subtitle">Community-contributed agents, instructions, and skills to enhance your GitHub Copilot experience</p>
3745
<div class="hero-search">
3846
<label for="global-search" class="sr-only">Search all resources</label>
@@ -57,39 +65,39 @@ const base = import.meta.env.BASE_URL;
5765
<h2 id="quick-links-heading" class="sr-only">Browse Resources</h2>
5866
<div class="container">
5967
<div class="cards-grid">
60-
<a href={`${base}agents/`} class="card card-with-count" id="card-agents">
68+
<a href={`${base}agents/`} class="card card-with-count card-category-ai" id="card-agents" style="--animation-delay: 0ms;">
6169
<div class="card-icon" aria-hidden="true"><Icon name="robot" size={40} /></div>
6270
<div class="card-content">
6371
<h3>Agents</h3>
6472
<p>Custom agents for specialized Copilot experiences</p>
6573
</div>
6674
<div class="card-count" data-count="agents" aria-label="Agent count">-</div>
6775
</a>
68-
<a href={`${base}instructions/`} class="card card-with-count" id="card-instructions">
76+
<a href={`${base}instructions/`} class="card card-with-count card-category-docs" id="card-instructions" style="--animation-delay: 50ms;">
6977
<div class="card-icon" aria-hidden="true"><Icon name="document" size={40} /></div>
7078
<div class="card-content">
7179
<h3>Instructions</h3>
7280
<p>Coding standards and best practices for Copilot</p>
7381
</div>
7482
<div class="card-count" data-count="instructions" aria-label="Instruction count">-</div>
7583
</a>
76-
<a href={`${base}skills/`} class="card card-with-count" id="card-skills">
84+
<a href={`${base}skills/`} class="card card-with-count card-category-power" id="card-skills" style="--animation-delay: 100ms;">
7785
<div class="card-icon" aria-hidden="true"><Icon name="lightning" size={40} /></div>
7886
<div class="card-content">
7987
<h3>Skills</h3>
8088
<p>Self-contained folders with instructions and resources</p>
8189
</div>
8290
<div class="card-count" data-count="skills" aria-label="Skill count">-</div>
8391
</a>
84-
<a href={`${base}hooks/`} class="card card-with-count" id="card-hooks">
92+
<a href={`${base}hooks/`} class="card card-with-count card-category-automation" id="card-hooks" style="--animation-delay: 150ms;">
8593
<div class="card-icon" aria-hidden="true"><Icon name="hook" size={40} /></div>
8694
<div class="card-content">
8795
<h3>Hooks</h3>
8896
<p>Automated workflows triggered by agent events</p>
8997
</div>
9098
<div class="card-count" data-count="hooks" aria-label="Hook count">-</div>
9199
</a>
92-
<a href={`${base}workflows/`} class="card card-with-count" id="card-workflows">
100+
<a href={`${base}workflows/`} class="card card-with-count card-category-automation" id="card-workflows" style="--animation-delay: 200ms;">
93101
<div class="card-icon" aria-hidden="true">
94102
<Icon name="workflow" size={40} />
95103
</div>
@@ -99,7 +107,7 @@ const base = import.meta.env.BASE_URL;
99107
</div>
100108
<div class="card-count" data-count="workflows" aria-label="Workflow count">-</div>
101109
</a>
102-
<a href={`${base}plugins/`} class="card card-with-count" id="card-plugins">
110+
<a href={`${base}plugins/`} class="card card-with-count card-category-extension" id="card-plugins" style="--animation-delay: 250ms;">
103111
<div class="card-icon" aria-hidden="true">
104112
<Icon name="plug" size={40} />
105113
</div>
@@ -109,7 +117,7 @@ const base = import.meta.env.BASE_URL;
109117
</div>
110118
<div class="card-count" data-count="plugins" aria-label="Plugin count">-</div>
111119
</a>
112-
<a href={`${base}tools/`} class="card card-with-count" id="card-tools">
120+
<a href={`${base}tools/`} class="card card-with-count card-category-dev" id="card-tools" style="--animation-delay: 300ms;">
113121
<div class="card-icon" aria-hidden="true">
114122
<Icon name="wrench" size={40} />
115123
</div>
@@ -119,7 +127,7 @@ const base = import.meta.env.BASE_URL;
119127
</div>
120128
<div class="card-count" data-count="tools" aria-label="Tool count">-</div>
121129
</a>
122-
<a href={`${base}learning-hub/`} class="card card-with-count" id="card-learning-hub">
130+
<a href={`${base}learning-hub/`} class="card card-with-count card-category-learn" id="card-learning-hub" style="--animation-delay: 350ms;">
123131
<div class="card-icon" aria-hidden="true">
124132
<Icon name="book" size={40} />
125133
</div>

0 commit comments

Comments
 (0)