Skip to content
This repository was archived by the owner on Nov 27, 2020. It is now read-only.

Commit 0e235aa

Browse files
committed
Simplified the sample index page
1 parent 6288bcd commit 0e235aa

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

app/Resources/views/default/index.html.twig

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
{% extends 'base.html.twig' %}
22

33
{% block body %}
4+
{% set symfony_version = constant('Symfony\\Component\\HttpKernel\\Kernel::VERSION') %}
5+
46
<div id="wrapper">
5-
<div id="container" class="fade-in">
7+
<div id="container">
68
<div id="welcome">
7-
<h1><span>Welcome to</span> Symfony {{ constant('\\Symfony\\Component\\HttpKernel\\Kernel::VERSION') }}</h1>
9+
<h1><span>Welcome to</span> Symfony {{ symfony_version }}</h1>
810
</div>
911

1012
{% if requirements.failedRequirements|length > 0 %}
@@ -29,8 +31,6 @@
2931
</p>
3032
</div>
3133

32-
{% set symfony_version = constant('\\Symfony\\Component\\HttpKernel\\Kernel::MAJOR_VERSION') ~ '.' ~ constant('\\Symfony\\Component\\HttpKernel\\Kernel::MINOR_VERSION') %}
33-
3434
<div id="next">
3535
<h2>What's next?</h2>
3636
<p>
@@ -85,10 +85,8 @@
8585
@-webkit-keyframes fade-in { 0% { opacity: 0; } 100% { opacity: 1; } }
8686
@keyframes fade-in { 0% { opacity: 0; } 100% { opacity: 1; } }
8787
88-
.fade-in {
89-
-webkit-animation: fade-in 1.5s .2s;
90-
animation: fade-in 1.5s .2s;
91-
}
88+
body { -webkit-animation: fade-in 1.5s .1s; animation: fade-in 1.5s .1s;}
89+
.sf-toolbar { opacity: 0; -webkit-animation: fade-in .7s .5s forwards; animation: fade-in .7s .5s forwards;}
9290
}
9391
</style>
9492
{% endblock %}

0 commit comments

Comments
 (0)