@@ -120,13 +120,17 @@ export const NewcomersGuideWrapper = styled.section`
120
120
}
121
121
}
122
122
.community-collage {
123
- text-align: center ;
123
+ text-align: center;
124
124
min-width: 45vmin;
125
- overflow: hidden; /* Prevent book from overflowing */
126
-
125
+ overflow: visible; /* Allow book to be fully visible */
126
+ padding: 3rem 0; /* More padding to ensure content isn't cut off */
127
+ position: relative;
128
+ margin: 1rem auto;
127
129
}
128
130
.community-img{
129
- text-align:center;
131
+ text-align: center;
132
+ position: relative;
133
+ z-index: 2;
130
134
}
131
135
.table-wrapper{
132
136
text-align: center;
@@ -136,12 +140,18 @@ export const NewcomersGuideWrapper = styled.section`
136
140
display: flex;
137
141
align-items: center;
138
142
justify-content: center;
139
- perspective: 600px;
143
+ perspective: 1500px; /* Increased perspective for better 3D effect */
140
144
max-width: 100%; /* Ensure it doesn't exceed container width */
141
145
margin: 0 auto; /* Center the book */
146
+ position: relative;
147
+ z-index: 1;
148
+ padding: 3rem 1rem; /* More padding all around */
149
+ height: auto; /* Allow height to adjust based on content */
150
+ min-height: 400px; /* Minimum height to ensure book fits */
142
151
143
152
@media (max-width: 992px) {
144
153
margin-bottom: 2rem; /* Add space between book and text on mobile */
154
+ perspective: 1200px; /* Slightly reduced perspective for mobile */
145
155
}
146
156
}
147
157
@@ -150,7 +160,7 @@ export const NewcomersGuideWrapper = styled.section`
150
160
transform: rotateY(0deg);
151
161
}
152
162
100% {
153
- transform: rotateY(-30deg );
163
+ transform: rotateY(-20deg );
154
164
}
155
165
}
156
166
@@ -159,15 +169,16 @@ export const NewcomersGuideWrapper = styled.section`
159
169
}
160
170
161
171
.book {
162
- min- width: 200px;
163
- min- height: 300px;
172
+ width: 250px; /* Even wider to prevent text cutoff */
173
+ height: 350px; /* Even taller to ensure full content visibility */
164
174
position: relative;
165
175
transform-style: preserve-3d;
166
- transform: rotateY(-30deg);
176
+ transform: rotateY(-20deg); /* Less rotation to show more of the cover */
167
177
transition: 1s ease;
168
178
animation: 1s ease 0s 1 initAnimation;
169
179
margin: 0 auto; /* Center the book */
170
- max-width: 200px; /* Ensure it doesn't exceed expected width */
180
+ display: block;
181
+ transform-origin: center;
171
182
}
172
183
173
184
.book:hover {
@@ -179,10 +190,11 @@ export const NewcomersGuideWrapper = styled.section`
179
190
top: 0;
180
191
left: 0;
181
192
background-color: #171a12;
182
- width: 200px ;
183
- height: 300px ;
193
+ width: 250px ;
194
+ height: 350px ;
184
195
transform: translateZ(25px);
185
196
border-radius: 0 2px 2px 0;
197
+ background-size: 100% 100%; /* Make sure image content covers the entire front cover */
186
198
}
187
199
188
200
.book::before {
@@ -191,8 +203,8 @@ export const NewcomersGuideWrapper = styled.section`
191
203
left: 0;
192
204
top: 3px;
193
205
width: 48px;
194
- height: 294px;
195
- transform: translateX(172px ) rotateY(90deg);
206
+ height: 344px; /* Adjusted to match new height */
207
+ transform: translateX(222px ) rotateY(90deg); /* Adjusted to match new width */
196
208
background: linear-gradient(
197
209
90deg,
198
210
#fff 0%,
@@ -224,12 +236,20 @@ export const NewcomersGuideWrapper = styled.section`
224
236
top: 0;
225
237
left: 0;
226
238
content: " ";
227
- width: 200px;
228
- height: 300px;
239
+ width: 250px; /* Match new width */
240
+ height: 350px; /* Match new height */
229
241
transform: translateZ(-25px);
230
242
background-color: #292929;
231
243
border-radius: 0 2px 2px 0;
232
- box-shadow: -2px 1px 30px 2px #666;
244
+ box-shadow: -8px 3px 30px 5px rgba(0, 0, 0, 0.5); /* Enhanced shadow */
245
+ }
246
+
247
+ /* Fix to ensure the image on the book cover is displayed fully */
248
+ .book img {
249
+ width: 100%;
250
+ height: 100%;
251
+ object-fit: cover;
252
+ border-radius: 0 2px 2px 0;
233
253
}
234
254
@media only screen and (max-width: 991px) {
235
255
.heading-start {
0 commit comments