Added a page for the press so they can get our logo easier
parent
3ef6640dcc
commit
561819ce97
|
@ -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('/');
|
||||
|
|
|
@ -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;
|
||||
|
||||
}
|
||||
|
||||
}
|
|
@ -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 %}
|
||||
|
|
|
@ -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 %}
|
|
@ -45,6 +45,13 @@ a {
|
|||
text-decoration: none;
|
||||
}
|
||||
|
||||
a.btn-info {
|
||||
color: #ffffff;
|
||||
}
|
||||
a.btn-info:hover {
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
/**
|
||||
* START - NAVBAR
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue