Skip to content

Commit

Permalink
Added basic about-us-page skeletton
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianMaak committed Jun 20, 2018
1 parent 4513761 commit c2e897f
Show file tree
Hide file tree
Showing 12 changed files with 54 additions and 0 deletions.
7 changes: 7 additions & 0 deletions config/routes.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,13 @@
'_locale' => implode('|', \App\EventSubscriber\getAvailableLanguages()),
)));

$routes->add('about_us', new Route('/{_locale}/about_us', array(
'_controller' => 'App\\Controller\\IndexController::aboutUs',
'_locale' => 'en_GB',
), array(
'_locale' => implode('|', \App\EventSubscriber\getAvailableLanguages()),
)));

$routes->add('gallery', new Route('/{_locale}/gallery', array(
'_controller' => 'App\\Controller\\IndexController::gallery',
'_locale' => 'en_GB',
Expand Down
8 changes: 8 additions & 0 deletions src/Controller/IndexController.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,14 @@ public function about(): Response
return $this->render('about/index.html.twig');
}

/**
* @return Response
*/
public function aboutUs(): Response
{
return $this->render('about_us/index.html.twig');
}

/**
* @return Response
*/
Expand Down
23 changes: 23 additions & 0 deletions templates/about_us/components/content.html.twig
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<div class="containern">

<!-- Who are we -->
{% include 'about_us/components/who-are-we.html.twig' %}

<!-- What do we want -->
{% include 'about_us/components/what-do-we-want.html.twig' %}

<!-- How do we work -->
{% include 'about_us/components/how-do-we-work.html.twig' %}

<!-- Where can you find us -->
{% include 'about_us/components/where-can-you-find-us.html.twig' %}

<!-- How do we finance ourselves -->
{% include 'about_us/components/who-do-we-finance-ourselves.html.twig' %}

<!-- How can you reach us -->
{% include 'about_us/components/how-can-you-reach-us.html.twig' %}

<!-- How can I support you -->
{% include 'about_us/components/how-can-i-support-you.html.twig' %}
</div>
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
15 changes: 15 additions & 0 deletions templates/about_us/index.html.twig
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{% extends 'base.html.twig' %}

{% block title %}About Us | Save the Internet{% endblock %}

{% block body %}
<!-- Header -->
{% include 'shared/header.html.twig' %}

<!-- content -->
{% include 'about_us/components/content.html.twig' %}

<!-- Footer -->
{% include 'shared/footer.html.twig' %}

{% endblock %}
1 change: 1 addition & 0 deletions templates/shared/footer.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
<div class="menu">
<a href="{{ path('gallery') }}" class="footer-gallery">{% trans %}gallery_title{% endtrans %}</a>
<a href="{{ path('about') }}" class="footer-about">{% trans %}about_link{% endtrans %}</a>
<a href="{{ path('about_us') }}" class="footer-about-us">{% trans %}about_us_link{% endtrans %}</a>
<a href="{{ path('imprint') }}" class="footer-imprint">{% trans %}imprint_link{% endtrans %}</a>
<a href="{{ path('privacy') }}" class="footer-privacy">{% trans %}privacy_link{% endtrans %}</a>
<a href="https://github.com/Insax/savetheinternet" rel="noopener" target="_blank"
Expand Down

0 comments on commit c2e897f

Please sign in to comment.