Skip to content

Commit 7be09a0

Browse files
committed
feat: enhance ContributorList styling and improve hero section animations
1 parent 82eeede commit 7be09a0

File tree

3 files changed

+63
-18
lines changed

3 files changed

+63
-18
lines changed

src/components/ContributorList.astro

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -323,18 +323,13 @@ try {
323323
}
324324
---
325325

326-
<div class="contributor-section" id="contributors">
326+
<div class="contributor-section contributor-list" id="contributors">
327327
<div class="contributor-header">
328328
<h2 class="contributor-title">
329-
<svg class="contributor-icon" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
330-
<path d="M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2"/>
331-
<circle cx="9" cy="7" r="4"/>
332-
<path d="m22 21-3-3m0 0a5 5 0 1 0-7-7 5 5 0 0 0 7 7Z"/>
333-
</svg>
334329
Contributors
335330
</h2>
336331

337-
<div class="status-indicators">
332+
<!-- <div class="status-indicators">
338333
{fromCache && (
339334
<div class={`cache-indicator ${isStale ? 'stale' : 'fresh'}`} title={isStale ? "Data is from cache (may be outdated)" : "Data loaded from cache (up to date)"}>
340335
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
@@ -357,7 +352,7 @@ try {
357352
Warning
358353
</div>
359354
)}
360-
</div>
355+
</div> -->
361356
</div>
362357

363358
<p class="contributor-description">
@@ -432,8 +427,6 @@ try {
432427
display: flex;
433428
align-items: center;
434429
gap: 0.75rem;
435-
font-size: 1.875rem;
436-
font-weight: 700;
437430
color: var(--sl-color-white);
438431
margin: 0;
439432
line-height: 1.2;

src/content/docs/index.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ hero:
2525
import { Card, CardGrid } from '@astrojs/starlight/components';
2626
import ContributorList from '/src/components/ContributorList.astro';
2727

28-
<h2><strong>Quick Start</strong></h2>
28+
<h2>Quick Start</h2>
2929
<br />
3030

3131
<CardGrid stagger>
@@ -52,7 +52,7 @@ import ContributorList from '/src/components/ContributorList.astro';
5252

5353
<br/>
5454

55-
<h2>📊 <strong>Plugin Statistics</strong></h2>
55+
<h2>Statistics</h2>
5656

5757
Over **1400+** Minecraft servers trust and using SmartSpawner for their spawner management needs. The plugin has proven to be reliable and efficient, making it a popular **free choice** among server administrators.
5858

src/styles/custom.css

Lines changed: 58 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -164,18 +164,70 @@ a:hover::after {
164164
}
165165
}
166166

167-
/* Page transition effect */
168-
.page-content {
169-
animation: pageSlideIn 0.8s ease-out;
167+
/* Enhanced hero section with subtle overlay */
168+
.hero {
169+
position: relative;
170+
overflow: hidden;
170171
}
171172

172-
@keyframes pageSlideIn {
173+
.hero::before {
174+
content: '';
175+
position: absolute;
176+
top: 0;
177+
left: 0;
178+
right: 0;
179+
bottom: 0;
180+
181+
z-index: 1;
182+
}
183+
184+
.hero > * {
185+
position: relative;
186+
z-index: 2;
187+
}
188+
189+
/* Floating animation for cards */
190+
.sl-card {
191+
transition: transform 0.3s ease, box-shadow 0.3s ease;
192+
}
193+
194+
.sl-card:hover {
195+
transform: translateY(-5px);
196+
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
197+
}
198+
199+
/* Add sparkle effect to the title */
200+
.hero h1 {
201+
background: linear-gradient(45deg, #4a00e0, #8e2de2, #9c27b0, #ba68c8, #ce93d8, #e1bee7);
202+
background-size: 400% 400%;
203+
background-clip: text;
204+
-webkit-background-clip: text;
205+
-webkit-text-fill-color: transparent;
206+
animation: gradientShift 4s ease infinite, textGlow 2s ease-in-out infinite alternate;
207+
}
208+
209+
@keyframes gradientShift {
210+
0% { background-position: 0% 50%; }
211+
50% { background-position: 100% 50%; }
212+
100% { background-position: 0% 50%; }
213+
}
214+
215+
@keyframes fadeInUp {
173216
from {
174217
opacity: 0;
175-
transform: translateX(30px);
218+
transform: translateY(30px);
176219
}
177220
to {
178221
opacity: 1;
179-
transform: translateX(0);
222+
transform: translateY(0);
223+
}
224+
}
225+
226+
@keyframes textGlow {
227+
from {
228+
text-shadow: 0 0 5px rgba(138, 43, 226, 0.5);
229+
}
230+
to {
231+
text-shadow: 0 0 20px rgba(138, 43, 226, 0.8);
180232
}
181233
}

0 commit comments

Comments
 (0)