Skip to content

Commit b93b8bf

Browse files
committed
fix: update slide container styles to enable scrolling on slides 5 and 8
1 parent 9486758 commit b93b8bf

File tree

2 files changed

+33
-41
lines changed

2 files changed

+33
-41
lines changed

src/components/governance-comparison.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import governanceImage from '@assets/images/Democratic-Platform-Governance.png';
44
const ComparisonTable = () => {
55
return (
66
<div className="slide-container relative min-h-screen flex flex-col justify-center items-center px-4">
7-
<div className="slide-content max-w-6xl w-full">
7+
<div className="max-w-6xl w-full">
88
<h2 className="text-3xl font-bold text-center text-indigo-900 mb-8">
99
Platform Governance Evolution
1010
</h2>

src/styles/main.css

Lines changed: 32 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -18,41 +18,42 @@
1818

1919
@layer components {
2020
.slide-container {
21-
@apply min-h-[100dvh] p-8 transition-all duration-500 ease-in-out relative
21+
@apply min-h-screen p-8 transition-all duration-500 ease-in-out relative
2222
md:min-h-screen
23-
sm:p-4 /* Reduced padding on mobile */
24-
overflow-y-auto /* Enable scrolling at container level */
25-
flex flex-col; /* Use flex to ensure proper content flow */
23+
sm:p-4
24+
overflow-y-scroll /* Changed from auto to scroll to ensure scrolling is always available */
25+
flex flex-col
26+
h-screen; /* Added fixed height to ensure scrolling works */
2627
}
2728

2829
.slide-content {
2930
@apply max-w-6xl mx-auto bg-white rounded-xl shadow-lg p-8
30-
sm:p-4 /* Reduced padding on mobile */
31-
flex-grow /* Allow content to grow within container */
32-
w-full; /* Ensure full width */
31+
sm:p-4
32+
w-full
33+
overflow-y-visible; /* Allow content to overflow for scrolling */
3334
}
3435

36+
/* Rest of the CSS remains unchanged */
3537
.nav-button {
3638
@apply px-6 py-2 rounded-lg font-medium transition-all duration-200
3739
disabled:opacity-50 disabled:cursor-not-allowed
3840
bg-indigo-600 text-white hover:bg-indigo-700
3941
focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2
40-
sm:px-4 sm:py-1.5 /* Smaller buttons on mobile */
41-
sticky bottom-4 /* Keep buttons visible */
42-
z-10; /* Ensure buttons stay above content */
42+
sm:px-4 sm:py-1.5
43+
sticky bottom-4
44+
z-10;
4345
}
4446

4547
.card {
4648
@apply bg-white rounded-xl shadow-md p-6 transition-all duration-200 hover:shadow-lg
47-
sm:p-4 /* Reduced padding on mobile */
48-
mb-4; /* Add margin bottom for spacing */
49+
sm:p-4
50+
mb-4;
4951
}
5052

5153
.gradient-bg {
5254
@apply bg-gradient-to-br from-blue-600 via-indigo-600 to-blue-800 text-white;
5355
}
5456

55-
/* Citation styles */
5657
.citation-ref {
5758
@apply inline-block ml-0.5 text-xs font-medium cursor-help;
5859
}
@@ -62,8 +63,8 @@
6263
border border-gray-200 text-sm w-72 z-50
6364
transform -translate-x-1/2 left-1/2
6465
backdrop-filter backdrop-blur-sm bg-opacity-95
65-
sm:w-64 /* Slightly smaller width on mobile */
66-
sm:p-3; /* Reduced padding on mobile */
66+
sm:w-64
67+
sm:p-3;
6768
}
6869

6970
.citation-ref:hover .citation-popup {
@@ -73,8 +74,8 @@
7374
.references-section {
7475
@apply mt-8 pt-6 border-t-2 border-gray-100
7576
grid grid-cols-2 gap-6 text-sm text-gray-600
76-
sm:grid-cols-1 /* Single column on mobile */
77-
sm:gap-4; /* Reduced gap on mobile */
77+
sm:grid-cols-1
78+
sm:gap-4;
7879
}
7980

8081
.reference-item {
@@ -85,11 +86,10 @@
8586
@apply text-blue-600 font-medium mr-2;
8687
}
8788

88-
/* Menu styles */
8989
.slide-menu {
9090
@apply fixed inset-y-0 left-0 w-64 bg-white shadow-lg transform transition-transform duration-300 ease-in-out z-50
91-
sm:w-full /* Full width on mobile */
92-
overflow-y-auto; /* Enable menu scrolling */
91+
sm:w-full
92+
overflow-y-auto;
9393
}
9494

9595
.menu-overlay {
@@ -99,52 +99,50 @@
9999
.menu-item {
100100
@apply px-4 py-2 hover:bg-indigo-50 rounded-lg transition-colors duration-200
101101
text-slate-700 hover:text-indigo-700 cursor-pointer
102-
sm:py-3; /* Increased touch target on mobile */
102+
sm:py-3;
103103
}
104104

105105
.menu-item-active {
106106
@apply bg-indigo-100 text-indigo-700;
107107
}
108108

109-
/* Academic components */
110109
.citation {
111110
@apply text-sm text-slate-600 italic;
112111
}
113112

114113
.research-card {
115114
@apply bg-white rounded-lg shadow-md p-6 border-l-4 border-indigo-500
116115
hover:shadow-lg transition-all duration-200
117-
sm:p-4 /* Reduced padding on mobile */
118-
mb-4; /* Add margin bottom for spacing */
116+
sm:p-4
117+
mb-4;
119118
}
120119

121120
.methodology-item {
122121
@apply bg-white rounded-lg p-4 shadow-sm border border-slate-100
123122
hover:border-indigo-200 transition-all duration-200
124-
mb-4; /* Add margin bottom for spacing */
123+
mb-4;
125124
}
126125

127126
.statistic-card {
128127
@apply bg-white rounded-xl shadow-lg p-6 border border-slate-100
129128
hover:border-indigo-200 transition-all duration-200
130129
transform hover:-translate-y-1
131-
sm:p-4 /* Reduced padding on mobile */
132-
mb-4; /* Add margin bottom for spacing */
130+
sm:p-4
131+
mb-4;
133132
}
134133

135134
.section-header {
136135
@apply text-2xl font-bold text-indigo-600 mb-6
137136
border-b-2 border-indigo-100 pb-2
138-
sm:text-xl /* Smaller text on mobile */
139-
sm:mb-4; /* Reduced margin on mobile */
137+
sm:text-xl
138+
sm:mb-4;
140139
}
141140

142-
/* Timeline styles */
143141
.timeline-node {
144142
@apply w-8 h-8 rounded-full flex items-center justify-center
145143
transition-all duration-300 cursor-pointer
146144
hover:scale-110 focus:outline-none focus:ring-2 focus:ring-indigo-500
147-
sm:w-6 sm:h-6; /* Smaller nodes on mobile */
145+
sm:w-6 sm:h-6;
148146
}
149147

150148
.timeline-node-active {
@@ -163,12 +161,11 @@
163161
@apply h-full bg-indigo-600 transition-all duration-500;
164162
}
165163

166-
/* Research area styles */
167164
.research-area-button {
168165
@apply p-4 text-sm font-medium rounded-lg transition-all duration-300
169166
hover:bg-indigo-50 focus:outline-none focus:ring-2 focus:ring-indigo-500
170-
sm:p-2 /* Reduced padding on mobile */
171-
mb-2; /* Add margin bottom for spacing */
167+
sm:p-2
168+
mb-2;
172169
}
173170

174171
.research-area-button-active {
@@ -179,7 +176,7 @@
179176
@apply bg-indigo-50 p-4 rounded-lg border border-indigo-100
180177
hover:shadow-md transition-all duration-300
181178
transform hover:-translate-y-1
182-
mb-4; /* Add margin bottom for spacing */
179+
mb-4;
183180
}
184181

185182
.research-number {
@@ -189,7 +186,6 @@
189186
}
190187
}
191188

192-
/* Transitions */
193189
.fade-enter {
194190
opacity: 0;
195191
transform: translateY(20px);
@@ -212,7 +208,6 @@
212208
transition: opacity 300ms, transform 300ms;
213209
}
214210

215-
/* Slide transitions */
216211
.slide-right-enter {
217212
transform: translateX(100%);
218213
}
@@ -231,7 +226,6 @@
231226
transition: transform 500ms ease-in-out;
232227
}
233228

234-
/* Animations */
235229
.animate-pulse {
236230
animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
237231
}
@@ -260,7 +254,6 @@
260254
}
261255
}
262256

263-
/* Print styles */
264257
@media print {
265258
.nav-button,
266259
.slide-menu,
@@ -285,7 +278,6 @@
285278
border: 1px solid #e2e8f0;
286279
}
287280

288-
/* Print-specific citation styles */
289281
.citation-popup {
290282
display: none !important;
291283
}

0 commit comments

Comments
 (0)