Added a page for the press so they can get our logo easier

master
Thierry Degeling 2015-05-16 13:37:40 +02:00
parent 3ef6640dcc
commit 561819ce97
5 changed files with 69 additions and 1 deletions

View File

@ -33,6 +33,8 @@
$app->mount( '/events', new level2\EventsControllerProvider() );
$app->mount( '/press', new level2\PressControllerProvider() );
$app->error(function (\Exception $e, $code) use ( $app ) {
if ( $code == 404 ) {
return $app->redirect('/');

View File

@ -0,0 +1,30 @@
<?php
namespace level2;
use Silex\Application;
use Silex\ControllerProviderInterface;
class PressControllerProvider implements ControllerProviderInterface {
public function connect ( Application $app ) {
$ctr = $app['controllers_factory'];
$ctr->get('/', function() use ( $app ) {
return $app['twig']->render(
'press.twig',
array(
'page' => 'press',
'level2' => Level2::getStatus( $app )
)
);
});
return $ctr;
}
}

View File

@ -50,7 +50,8 @@
<ul class="nav navbar-nav">
<li {% if page == 'home' %} class="active" {% endif %} ><a href="/">Level2</a></li>
<li {% if page == 'events' %} class="active" {% endif %} ><a href="/events">Events</a></li>
<li {% if page == 'api' %} class="active" {% endif %} ><a target="_blank" href="https://github.com/syn2cat/Level2.lu/blob/master/README.md">API</a></li>
<li><a target="_blank" href="https://github.com/syn2cat/Level2.lu/blob/master/README.md">API</a></li>
<li {% if page == 'press' %} class="active" {% endif %} ><a href="/press">Press</a></li>
</ul>
<ul class="nav navbar-nav navbar-right hidden-xs">
{% if level2.open %}

28
src/app/views/press.twig Normal file
View File

@ -0,0 +1,28 @@
{% extends "base.twig" %}
{% block container %}
<div class="row">
<div class="col-md-6 col-md-offset-3">
<section class="hidden-xs">
<h2 class="well">Logo</h2>
<p class="well no-bottom-margin no-bottom-rounded">
<img src="https://files.level2.lu/logos/level2.png">
</p>
<p class="well info no-top-radius">
<a class="btn btn-info btn-block" target="_blank" target="_blank" href="https://raw.githubusercontent.com/syn2cat/design/master/lvl2/pixel/level2_round_grey.png">Level2 logo in PNG format</a>
<a class="btn btn-info btn-block" target="_blank" href="https://github.com/syn2cat/design/raw/master/lvl2/level2_logo.ai">Level2 logo in Illustrator format</a>
<a class="btn btn-info btn-block" target="_blank" target="_blank" href="https://github.com/syn2cat/design/raw/master/lvl2/level2_logo.svg">Level2 logo in SVG format</a>
<a class="btn btn-info btn-block" target="_blank" target="_blank" href="https://github.com/syn2cat/design/raw/master/lvl2/level2_logo.eps">Level2 logo in EPS format</a>
</p>
</section>
</div>
</div>
{% endblock %}

View File

@ -45,6 +45,13 @@ a {
text-decoration: none;
}
a.btn-info {
color: #ffffff;
}
a.btn-info:hover {
color: #ffffff;
}
/**
* START - NAVBAR
*/