Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
151 changes: 117 additions & 34 deletions src/pages/community/community.css
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,15 @@
}

@keyframes float {
0%, 100% { transform: translateY(0px) rotate(0deg); }
50% { transform: translateY(-20px) rotate(180deg); }

0%,
100% {
transform: translateY(0px) rotate(0deg);
}

50% {
transform: translateY(-20px) rotate(180deg);
}
}

.container {
Expand All @@ -105,9 +112,22 @@
}

@keyframes bounce {
0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
40% { transform: translateY(-10px); }
60% { transform: translateY(-5px); }

0%,
20%,
50%,
80%,
100% {
transform: translateY(0);
}

40% {
transform: translateY(-10px);
}

60% {
transform: translateY(-5px);
}
}

.community-hero-title {
Expand Down Expand Up @@ -195,24 +215,27 @@
}

.contribution-sections {
display: flex;
flex-direction: column;
gap: 48px;
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 24px;
/* tighter gap between cards */
}


/* Contribution Sections */
.contribution-section {
background: white;
border-radius: 20px;
padding: 40px;
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
border-radius: 16px;
padding: 24px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
border: 1px solid rgba(0, 0, 0, 0.05);
transition: all 0.3s ease;
transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contribution-section:hover {
transform: translateY(-4px);
box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
transform: translateY(-2px);
box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

[data-theme='dark'] .contribution-section {
Expand All @@ -225,6 +248,21 @@
box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
}

.contribution-section.active {
border: 2px solid #8b5cf6;
box-shadow: 0 0 15px rgba(139, 92, 246, 0.4);
transition: box-shadow 0.3s ease, border 0.3s ease;
}

.contribution-section.selected {
border: 2px solid #8b5cf6;
box-shadow: 0 0 15px rgba(139, 92, 246, 0.4);
transition: box-shadow 0.3s ease, border 0.3s ease;
transform: translateY(30px)
}



/* Table of Contents Sidebar */
.table-of-contents {
position: sticky;
Expand Down Expand Up @@ -318,6 +356,27 @@
color: #a78bfa;
}

.toc-item.active+.toc-item.active {
margin-top: -2px;
/* overlap borders */
border-top: 1px solid rgba(139, 92, 246, 0.3);
/* subtle divider */
border-radius: 0;
/* flatten middle items */
}

/* First active in a block keeps rounded top */
.toc-item.active:first-child,
.toc-item.active:not(:first-child):not(:last-child) {
border-radius: 8px 8px 0 0;
}

/* Last active in a block keeps rounded bottom */
.toc-item.active:last-child,
.toc-item.active+.toc-item:not(.active) {
border-radius: 0 0 8px 8px;
}

.toc-item-icon {
font-size: 1rem;
flex-shrink: 0;
Expand All @@ -331,7 +390,7 @@
display: flex;
align-items: center;
gap: 16px;
margin-bottom: 24px;
margin-bottom: 16px;
}

.section-icon {
Expand Down Expand Up @@ -359,9 +418,9 @@
}

.section-description {
font-size: 1.1rem;
color: #64748b;
margin-bottom: 32px;
font-size: 1rem;
margin-bottom: 20px;
line-height: 1.6;
}

Expand All @@ -372,15 +431,15 @@
.section-items {
list-style: none;
padding: 0;
margin: 0 0 40px 0;
margin: 0 0 20px 0;
}

.section-item {
display: flex;
align-items: center;
gap: 16px;
padding: 16px 0;
font-size: 1rem;
padding: 10px 0;
font-size: 0.95rem;
color: #374151;
border-bottom: 1px solid #f1f5f9;
}
Expand All @@ -402,8 +461,8 @@

.section-links {
background: linear-gradient(135deg, #f8fafc, #f1f5f9);
border-radius: 16px;
padding: 32px;
border-radius: 12px;
padding: 20px;
border: 1px solid #e2e8f0;
}

Expand Down Expand Up @@ -431,22 +490,23 @@

.links-container {
display: flex;
gap: 16px;
gap: 12px;
flex-wrap: wrap;
}

.resource-link {
display: inline-flex;
align-items: center;
padding: 12px 24px;
padding: 8px 16px;
background: white;
color: var(--link-color, #8b5cf6);
text-decoration: none;
border-radius: 12px;
border-radius: 8px;
font-weight: 600;
border: 2px solid var(--link-color, #8b5cf6);
transition: all 0.3s ease;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
font-size: 0.9rem;
}

[data-theme='dark'] .resource-link {
Expand All @@ -468,7 +528,8 @@

/* Thank You Section */
.thank-you-section {
margin-top: 32px;
grid-column: 1 / -1;
margin-top: 40px;
display: flex;
justify-content: center;
}
Expand All @@ -492,7 +553,7 @@
left: 0;
right: 0;
bottom: 0;
background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, transparent 50%, rgba(255,255,255,0.1) 100%);
background: linear-gradient(45deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%, rgba(255, 255, 255, 0.1) 100%);
pointer-events: none;
}

Expand All @@ -515,22 +576,43 @@
animation-delay: var(--delay, 0s);
}

.thank-icon:nth-child(1) { --delay: 0s; }
.thank-icon:nth-child(2) { --delay: 0.3s; }
.thank-icon:nth-child(3) { --delay: 0.6s; }
.thank-icon:nth-child(1) {
--delay: 0s;
}

.thank-icon:nth-child(2) {
--delay: 0.3s;
}

.thank-icon:nth-child(3) {
--delay: 0.6s;
}

@keyframes bounce {
0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
40% { transform: translateY(-10px); }
60% { transform: translateY(-5px); }

0%,
20%,
50%,
80%,
100% {
transform: translateY(0);
}

40% {
transform: translateY(-10px);
}

60% {
transform: translateY(-5px);
}
}

.thank-you-card h3 {
font-size: 2.5rem;
font-weight: 800;
margin: 0 0 8px 0;
color: white;
text-shadow: 0 2px 4px rgba(0,0,0,0.2);
text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.thank-you-subtitle {
Expand Down Expand Up @@ -704,6 +786,7 @@
gap: 12px;
}


.section-icon {
width: 40px;
height: 40px;
Expand Down Expand Up @@ -793,4 +876,4 @@
.thank-you-content {
padding: 0 20px 24px;
}
}
}
Loading
Loading