{% extends "base.html.twig" %}
{% block messages %}{% endblock %}
{% block body %}
<div class="row maintop">
{% for message in app.flashes('notice') %}
<div class="resultbar front">
<div class="resulttext">
<span class="p1">{{ message|raw }}</span>
</div>
</div>
{% endfor %}
<div class="nine columns slider">
<ul class="bxslider">
<li><img src="{{ asset('assets/layout/slider/survive.jpg') }}" title="Survival: Lead your people as mayor of your town as the game progresses" alt="<h1>Survival</h1>Lead your people as mayor of your town"/></li>
<li><img src="{{ asset('assets/layout/slider/build.jpg') }}" title="Build: Make your town stronger, build up your economy and defense" alt="<h1>Build</h1>Make your town stronger, build up your economy and defense"/></li>
<li><img src="{{ asset('assets/layout/slider/strategy_game.jpg') }}" title="Realtime: Receive resources and energy to perform special actions each hour" alt="<h1>Realtime</h1>Receive resources and energy to perform special actions each hour"/></li>
<li><img src="{{ asset('assets/layout/slider/multiplayer.jpg') }}" title="Multiplayer: Negotiate relations, trade and compete with other players in the game" alt="<h1>Multiplayer</h1>Negotiate relations, trade and compete with other players"/></li>
<li><img src="{{ asset('assets/layout/slider/bam.jpg') }}" title="Attack: Use special operations and build an army to crush your enemies " alt="<h1>Attack</h1>Use special operations and build an army to crush your enemies "/></li>
<li><img src="{{ asset('assets/layout/slider/government.jpg') }}" title="Area locations: Capture and control government locations" alt="<h1>Area locations</h1>Capture and control government locations"/></li>
<li><a href="{{ path('story_diary_list') }}"><img src="{{ asset('assets/layout/slider/diary.jpg') }}" title="A survivors journal: Read how the story unfolds of an ordinary man that became an extraordinary leader"alt="<h1>A survivors journal</h1>Read how the story unfolds of an ordinary man that became an extraordinary leader"/></a></li>
</ul>
</div>
<div class="three columns loginbox">
{% if not app.user %}
{{ message }}
{{ form(form) }}
<a href="{{ path('account_forgot_password') }}">Forgot your account details?</a>
<a class='signup' href='{{ path('index_about') }}' target='_black'>About the game</a>
<a class='signup' href='{{ path('account_index') }}' target='_self'>Create account</a>
{% else %}
<center>
{% if not app.user.hasArea %}
<a class="logged" href="{{ path('area_index') }}"><img src="{{ asset('assets/layout/play.png') }}" alt="Outbreak - Play game" width="145" height="55"></a>
{% elseif app.user.area.isTutorial %}
<a class="logged" href="{{ path('tutorial_index') }}"><img src="{{ asset('assets/layout/play.png') }}" alt="Outbreak - Play game" width="145" height="55"></a>
{% else %}
<a href="{{ path('game_index') }}" class="logged"><img src="{{ asset('assets/layout/play.png') }}" alt="Outbreak - Play game" width="145" height="55"></a>
{% endif %}
<br>
<a href="{{ path('logout') }}" class="logged"><img src="{{ asset('assets/layout/logout.png') }}" title="Outbreak - Logout" alt="Outbreak - Logout"></a>
</center>
<br>
<br>
<br>
<a class='signup' href='{{ path('index_about') }}'>About the game</a>
{% endif %}
<a class='signup' href='{{ path('index_contributors') }}' target='_self'>Contributors</a>
</div>
</div>
<div class="row" style="margin-top: 3%">
<div class="nine columns">
<h2>Latest news</h2>
{% for announcement in latestNews %}
<div class='minor-padding-frontpage'><span class='title'>{{ announcement.title }}</span> <br>
<span class='announcement'>{{ announcement.text|raw|nl2br }}</span><br>
<div class='seperator'></div>
<span class='anlinks'>
Posted: {{ announcement.published|format('F d Y') }}
<!-- <a target='blank' href='/site/forum/list_topics.php?parent=1'><i class='fa fa-arrow-circle-down'></i>Older news</a>-->
<a href='{{ path('announcement_index') }}'><i class='fa fa-comments'></i>Read full post</a>
</span>
</div>
{% endfor %}
<br><br>
<h1> What is The Outbreak? </h1>
<p>The Outbreak is an online strategy, survival and roleplaying browser game. It is based in a post
apocalyptic world, where you survived and managed to secure a location within Kansas. It has become
a community, growing bigger and bigger till the point you can call it a town.
<br><br>
This is where The Outbreak starts. You will have to provide your population with enough resources
and keep them safe from harm. Will you need to expand? or are your troops only there to protect your
town? maybe you will be an aggressor and plunder resources from the towns near you. It is all up to
you. Act and react, as you respond to the problems a post apocalyptic town faces.<br><br>
<a href="{{ path('story_index') }}"> Read more about the game </a> <br><br>
</p>
<h2>Lead and survive</h2>
<p>
You are one of the few who have made it, using your surival skills you have impressed many. People
are now looking at you to lead them. Survive, build, trade, negotiate and compete with other
players. Can you lead the people of your town and prevent utter destruction?
<h3><a href="{{ path('account_index') }}">Sign up now!</a></h3>
</p>
</div>
<div class="three columns side">
<a class="social shop" href="https://shop.the-outbreak.com/" target="_blank"> </a>
<a class="social discord" href="https://discord.com/invite/xve3r9c" target="_blank"> </a>
<a class="social facebook" href="https://www.facebook.com/TheOutbreakGame" target="blank"></a>
<br>
<a class="credit store" href="{{ path('account_order_credits') }}"></a>
<a class="social youtube" href="https://www.youtube.com/user/OutbreakWebgame" target="blank">Watch on Youtube </a>
<br>
</div>
</div>
{% endblock %}