Skip to content

Commit 2737a00

Browse files
committed
New tweaks to the Welcome Page
1 parent 4c470a9 commit 2737a00

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/Symfony/Component/HttpKernel/Resources/welcome.html.php

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<?php $hue = random_int(0, 360); ?>
99
<?php $darkColor = static function (float $alpha = 1) use ($hue) { return "hsla($hue, 20%, 45%, $alpha)"; }; ?>
1010
<?php $lightColor = static function (float $alpha = 1) use ($hue) { return "hsla($hue, 20%, 95%, $alpha)"; }; ?>
11-
body { background: <?= $lightColor(); ?>; color: <?= $darkColor(); ?>; display: flex; font: 16px/1.5 sans-serif; height: 100vh; justify-content: center; margin: 0; width: 100vw; }
11+
body { background: <?= $lightColor(); ?>; color: <?= $darkColor(); ?>; display: flex; font: 16px/1.5 sans-serif; justify-content: center; margin: 0; }
1212
h1, h2 { line-height: 1.2; margin: 0 0 .5em; }
1313
h1 { font-size: 36px; }
1414
h2 { font-size: 21px; margin-bottom: 1em; }
@@ -31,9 +31,9 @@
3131
.version { font-size: 34px; }
3232
.check { display: inline-block; background: <?= $darkColor(); ?>; border-radius: 20px; margin: 0 10px; width: 54px; }
3333
.check svg { fill: <?= $lightColor(); ?>; }
34-
.status-ready { margin-top: 28px; }
35-
.resources { position: relative; padding: 3.5em 0; }
36-
.resources .row { margin-left: 30px; margin-right: 30px; display: flex; justify-content: space-around; }
34+
.status-ready { margin: 28px 0 0; }
35+
.resources { margin: 0 auto; max-width: 960px; padding: 2.5em 0 3.5em; }
36+
.resources .row { margin-left: 30px; margin-right: 30px; display: flex; justify-content: center; }
3737
.resource { padding: 0 10px; }
3838
.resource svg { height: 48px; width: 48px; fill: <?= $darkColor(); ?>; margin-bottom: 5px; }
3939
.resource h2 { font-size: 18px; font-weight: normal; margin-bottom: 5px; }
@@ -53,6 +53,7 @@
5353
.warning { text-align: center; }
5454
.warning svg { height: 32px; width: 32px; }
5555
.resources .row { margin-left: 50px; margin-right: 50px; }
56+
.resource { padding: 0 30px; }
5657

5758
.status { padding-bottom: 4em; }
5859
.status code { display: inline-flex; }
@@ -68,7 +69,7 @@
6869
<div class="wrapper">
6970
<div class="warning">
7071
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512" width="32"><path fill="currentColor" d="M569.517 440.013C587.975 472.007 564.806 512 527.94 512H48.054c-36.937 0-59.999-40.055-41.577-71.987L246.423 23.985c18.467-32.009 64.72-31.951 83.154 0l239.94 416.028zM288 354c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z" class=""></path></svg>
71-
You're seeing this debug page because you haven't configured any homepage URL.
72+
You're seeing this page because you haven't configured any homepage URL.
7273
</div>
7374

7475
<div class="container">

0 commit comments

Comments
 (0)