Skip to content

Commit 0dde8f9

Browse files
chore: fixed page styling
1 parent c99e844 commit 0dde8f9

1 file changed

Lines changed: 22 additions & 15 deletions

File tree

string-art-demo/src/App.css

Lines changed: 22 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
.app {
2-
min-height: 100vh;
3-
width: 100vw;
4-
background-color: #F8F8F8; /* Use a solid background color from the theme */
2+
min-height: calc(100vh - 32px);
3+
width: calc(100vw - 32px);
4+
background-color: #f8f8f8; /* Use a solid background color from the theme */
55
display: flex;
66
flex-direction: column;
77
align-items: center;
8+
padding: 16px;
89
}
910

1011
.app-header {
@@ -13,9 +14,10 @@
1314
text-align: center;
1415
color: white;
1516
margin-bottom: 2rem;
16-
background-color: #5E35B1; /* Use primary color from theme */
17-
width: 100%;
17+
background-color: #5e35b1; /* Use primary color from theme */
18+
width: 100vw;
1819
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
20+
overflow: hidden;
1921
}
2022

2123
.app-header h1 {
@@ -165,36 +167,41 @@
165167
align-items: flex-start;
166168
}
167169

168-
.app-loading, .app-error {
170+
.app-loading,
171+
.app-error {
169172
display: flex;
170173
flex-direction: column;
171174
align-items: center;
172175
justify-content: center;
173176
min-height: 100vh;
174177
text-align: center;
175178
color: #212121; /* Use primary text color from theme */
176-
background-color: #F8F8F8; /* Use default background color from theme */
179+
background-color: #f8f8f8; /* Use default background color from theme */
177180
}
178181

179182
.loading-spinner {
180183
width: 50px;
181184
height: 50px;
182185
border: 5px solid rgba(0, 0, 0, 0.1); /* Lighter border for spinner */
183-
border-top: 5px solid #5E35B1; /* Primary color for spinner top */
186+
border-top: 5px solid #5e35b1; /* Primary color for spinner top */
184187
border-radius: 50%;
185188
animation: spin 1s linear infinite;
186189
margin-bottom: 1rem;
187190
}
188191

189192
@keyframes spin {
190-
0% { transform: rotate(0deg); }
191-
100% { transform: rotate(360deg); }
193+
0% {
194+
transform: rotate(0deg);
195+
}
196+
100% {
197+
transform: rotate(360deg);
198+
}
192199
}
193200

194201
.app-error button {
195202
margin-top: 1rem;
196203
padding: 0.75rem 1.5rem;
197-
background: #D32F2F; /* Error color from theme */
204+
background: #d32f2f; /* Error color from theme */
198205
color: white;
199206
border: none;
200207
border-radius: 4px;
@@ -203,23 +210,23 @@
203210
}
204211

205212
.app-error button:hover {
206-
background: #C62828; /* Darker error color on hover */
213+
background: #c62828; /* Darker error color on hover */
207214
}
208215

209216
@media (max-width: 768px) {
210217
.app-main {
211218
grid-template-columns: 1fr;
212219
gap: 1rem;
213220
}
214-
221+
215222
.app-header h1 {
216223
font-size: 2rem;
217224
}
218-
225+
219226
.app-header p {
220227
font-size: 1rem;
221228
}
222-
229+
223230
.preset-buttons {
224231
flex-direction: column;
225232
}

0 commit comments

Comments
 (0)