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
183 changes: 167 additions & 16 deletions src/pages/our-sponsors/Sponsors.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
.sponsor-page {
padding: 2rem;
max-width: 1200px;
margin: 0 auto;
}

.sponsor-page .sponsor-header {
Expand All @@ -17,6 +19,85 @@
-webkit-text-fill-color: transparent;
}

/* Tabs Styling */
.tabs {
display: flex;
justify-content: center;
margin-bottom: 2rem;
border-bottom: 1px solid #e2e8f0;
padding-bottom: 0.5rem;
}

.tab-button {
padding: 0.75rem 1.5rem;
margin: 0 0.5rem;
border: none;
background: none;
font-size: 1.1rem;
font-weight: 600;
color: #6b7280;
cursor: pointer;
transition: all 0.3s ease;
position: relative;
outline: none;
display: flex;
align-items: center;
gap: 8px;
}

.tab-button.active {
color: #4f46e5;
}

.tab-badge {
background-color: #e0e7ff;
color: #4f46e5;
border-radius: 9999px;
font-size: 0.75rem;
font-weight: 600;
padding: 2px 8px;
min-width: 24px;
text-align: center;
transition: all 0.2s ease;
}

.tab-button.active .tab-badge {
background-color: #4f46e5;
color: white;
}

.no-sponsors {
grid-column: 1 / -1;
text-align: center;
padding: 2rem;
color: #6b7280;
font-size: 1.1rem;
}

.tab-button::after {
content: '';
position: absolute;
bottom: -0.5rem;
left: 0;
width: 0;
height: 3px;
background: linear-gradient(90deg, #4f46e5, #7c3aed);
transition: width 0.3s ease;
}

.tab-button.active::after {
width: 100%;
}

.tab-content {
display: none;
animation: fadeIn 0.5s ease;
}

.tab-content.active {
display: block;
}

.sponsor-page .sponsors-list {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
Expand Down Expand Up @@ -126,22 +207,42 @@

.sponsor-page .sponsor-card.empty-card {
cursor: pointer;
background-color: #f9fafb;
border: 2px dashed #0a78ff;
color: #0a78ff;
transition: all 0.3s;
padding: 32px 16px;
background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
border: 2px dashed #4f46e5;
color: #4f46e5;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
padding: 40px 20px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
min-height: 200px;
border-radius: 12px;
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
position: relative;
overflow: hidden;
}

.sponsor-page .sponsor-card.empty-card:hover {
transform: translateY(-3px);
box-shadow: 0 10px 25px -5px rgba(79, 70, 229, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.sponsor-page .sponsor-card.empty-card::before {
content: '';
position: absolute;
top: 0;
left: -100%;
width: 100%;
width: 300%;
height: 100%;
background: rgba(255, 255, 255, 0.178);
transition: left 0.3s ease-in-out;
background: linear-gradient(
90deg,
transparent,
rgba(255, 255, 255, 0.4),
transparent
);
transition: 0.5s;
z-index: 1;
}

.sponsor-page .sponsor-card.empty-card:hover::before {
Expand All @@ -150,19 +251,24 @@

.sponsor-page .sponsor-card.empty-card:hover {
transform: translateY(-5px);
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.sponsor-page .sponsor-card.empty-card h3 {
font-size: 1.1rem;
font-weight: 500;
display: flex;
align-items: center;
gap: 8px;
font-weight: 600;
color: #4f46e5;
margin-top: 1rem;
z-index: 2;
}

.sponsor-page .sponsor-card.empty-card .join-icon {
font-size: 1.5em;
font-size: 2rem;
color: #4f46e5;
transition: transform 0.3s ease;
z-index: 2;
margin: 0;
padding: 0;
}

.sponsor-page .scanner-popup {
Expand Down Expand Up @@ -201,12 +307,57 @@
}

.scanner-button {
background: var(--ifm-color-primary);
background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
color: white;
padding: 8px 16px;
padding: 12px 28px 12px 28px; /* Fixed padding to prevent jumping */
border-radius: 8px;
cursor: pointer;
border: none;
font-size: 1rem;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.5px;
box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.3), 0 2px 4px -1px rgba(79, 70, 229, 0.2);
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
display: inline-flex;
align-items: center;
justify-content: center;
gap: 8px;
position: relative;
overflow: hidden;
min-width: 200px;
text-align: center;
}

.scanner-button::before {
content: '';
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
transition: 0.5s;
z-index: 1;
}

.scanner-button > * {
position: relative;
z-index: 2;
}

.scanner-button:hover {
transform: translateY(-2px);
box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.4), 0 4px 6px -2px rgba(79, 70, 229, 0.2);
}

.scanner-button:hover::before {
left: 100%;
}

.scanner-button:active {
transform: translateY(0);
box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.3), 0 2px 4px -1px rgba(79, 70, 229, 0.2);
}

.close-button {
Expand Down
Loading