2016-12-14 15:50:48 +01:00
|
|
|
{% extends "@MineSeeker/layout.html.twig" %}
|
2016-11-04 15:30:29 +01:00
|
|
|
|
2016-11-15 17:53:12 +01:00
|
|
|
{% block header %}
|
2016-12-08 14:35:28 +01:00
|
|
|
<section class="header-content">
|
|
|
|
|
<div class="logo">
|
2016-12-10 14:43:28 +01:00
|
|
|
<img src="{{ asset('bundles/mineseeker/images/mine-logo-txt.png') }}" alt="MineSeeker Logo w/ Txt"
|
|
|
|
|
border="0"/>
|
2016-12-08 14:35:28 +01:00
|
|
|
</div>
|
|
|
|
|
<div>
|
2016-12-14 15:50:48 +01:00
|
|
|
{% if is_granted("IS_AUTHENTICATED_REMEMBERED") %}
|
2016-12-18 19:51:41 +01:00
|
|
|
<h2 id="fb-welcome">
|
|
|
|
|
Hello, {{ app.user.realName is not null ? app.user.realName : app.user.username }}!
|
|
|
|
|
</h2>
|
2016-12-14 15:50:48 +01:00
|
|
|
<h1>Let's play!! :D</h1>
|
|
|
|
|
{% else %}
|
|
|
|
|
<h2>A minesweeper game rethought...</h2>
|
|
|
|
|
<h1>...and you can play w/o register!!</h1>
|
|
|
|
|
{% endif %}
|
|
|
|
|
|
2016-12-11 18:25:19 +01:00
|
|
|
<div class="buttons">
|
|
|
|
|
<a href="{{ path('MineSeekerBundle_gamePlay') }}">Play NOW!</a>
|
2016-12-14 15:50:48 +01:00
|
|
|
{% if is_granted("IS_AUTHENTICATED_REMEMBERED") %}
|
|
|
|
|
<a href="{{ path('fos_user_security_logout') }}" class="small">
|
|
|
|
|
{{ 'layout.logout'|trans({}, 'FOSUserBundle') }}
|
|
|
|
|
</a>
|
|
|
|
|
{% else %}
|
|
|
|
|
<a href="{{ path('fos_user_registration_register') }}" class="small">Sign up</a> ·
|
|
|
|
|
<a href="{{ path('fos_user_security_login') }}" class="small">Sign in</a>
|
|
|
|
|
{% endif %}
|
2016-12-11 18:25:19 +01:00
|
|
|
</div>
|
|
|
|
|
<h3>
|
2016-12-14 15:50:48 +01:00
|
|
|
version {{ version }} · MineSeeker©{{ "now"|date("Y") }} · <a
|
|
|
|
|
href="http://www.laszlolang.com">www.laszlolang.com</a>
|
2016-12-10 14:43:28 +01:00
|
|
|
</h3>
|
2016-12-08 14:35:28 +01:00
|
|
|
</div>
|
|
|
|
|
<img src="{{ asset('bundles/mineseeker/images/mine-logo-logo.png') }}" alt="MineSeeker Logo" border="0"/>
|
|
|
|
|
</section>
|
2016-11-15 17:53:12 +01:00
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
|
|
{% block stylesheets %}
|
2016-12-14 15:50:48 +01:00
|
|
|
{{ parent() }}
|
|
|
|
|
|
2016-12-10 14:43:28 +01:00
|
|
|
<link href="https://fonts.googleapis.com/css?family=Rajdhani:300,400,500,600,700&subset=latin-ext"
|
|
|
|
|
rel="stylesheet">
|
2016-11-30 21:24:51 +01:00
|
|
|
|
|
|
|
|
{% stylesheets filter='?uglifycss'
|
2016-11-15 17:53:12 +01:00
|
|
|
'@MineSeekerBundle/Resources/public/css/style.homepage.css' %}
|
|
|
|
|
<link rel="stylesheet" media="screen" href="{{ asset_url }}" type="text/css"/>
|
|
|
|
|
{% endstylesheets %}
|
2016-11-04 15:30:29 +01:00
|
|
|
{% endblock %}
|
2016-12-14 15:50:48 +01:00
|
|
|
|
|
|
|
|
{% block javascripts %}
|
|
|
|
|
{{ parent() }}
|
|
|
|
|
|
|
|
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/JQuery-Snowfall/1.7.4/snowfall.jquery.min.js"
|
|
|
|
|
type="text/javascript"></script>
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
|
$(function () {
|
|
|
|
|
$(document).snowfall({deviceorientation: true, round: true, minSize: 5, maxSize: 8});
|
|
|
|
|
});
|
|
|
|
|
</script>
|
|
|
|
|
{% endblock %}
|