Skip to content

Commit 36f0358

Browse files
Do not hide WM Logo and resize it; remove capitalize function
1 parent d7a7a26 commit 36f0358

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

src/pages/welcome.astro

+4-8
Original file line numberDiff line numberDiff line change
@@ -282,11 +282,12 @@ changeLanguage('en')
282282
}
283283

284284
.heroContent img {
285-
display: none;
285+
object-fit: contain;
286+
text-transform: capitalize;
286287
}
287288

288289
.heroLogo {
289-
max-width: 10em;
290+
max-width: 8em;
290291
margin-block-end: var(--space-s);
291292
}
292293

@@ -449,14 +450,9 @@ changeLanguage('en')
449450
const version = searchParams.get('version') ?? 'default'
450451
const intent = (searchParams.get('intent') ?? 'connect') as Intent
451452

452-
function capitalize(str: string) {
453-
return str.charAt(0).toUpperCase() + str.slice(1)
454-
}
455-
456453
function updateImage(type: 'success' | 'error' | 'warning') {
457454
heroLogo.src = `/img/${type}.svg`
458-
heroLogo.style.display = 'inline-block'
459-
heroLogo.alt = capitalize(type)
455+
heroLogo.alt = type
460456
}
461457

462458
switch (result) {

0 commit comments

Comments
 (0)