File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -122,6 +122,7 @@ export const NewcomersGuideWrapper = styled.section`
122
122
.community-collage {
123
123
text-align: center ;
124
124
min-width: 45vmin;
125
+ overflow: hidden; /* Prevent book from overflowing */
125
126
126
127
}
127
128
.community-img{
@@ -136,6 +137,12 @@ export const NewcomersGuideWrapper = styled.section`
136
137
align-items: center;
137
138
justify-content: center;
138
139
perspective: 600px;
140
+ max-width: 100%; /* Ensure it doesn't exceed container width */
141
+ margin: 0 auto; /* Center the book */
142
+
143
+ @media (max-width: 992px) {
144
+ margin-bottom: 2rem; /* Add space between book and text on mobile */
145
+ }
139
146
}
140
147
141
148
@keyframes initAnimation {
@@ -159,6 +166,8 @@ export const NewcomersGuideWrapper = styled.section`
159
166
transform: rotateY(-30deg);
160
167
transition: 1s ease;
161
168
animation: 1s ease 0s 1 initAnimation;
169
+ margin: 0 auto; /* Center the book */
170
+ max-width: 200px; /* Ensure it doesn't exceed expected width */
162
171
}
163
172
164
173
.book:hover {
You can’t perform that action at this time.
0 commit comments