diff --git a/assets/styles/app.scss b/assets/styles/app.scss index f702452..690a7d8 100644 --- a/assets/styles/app.scss +++ b/assets/styles/app.scss @@ -8,7 +8,7 @@ $primary: darken(#005035, 20%); footer { background-color: #ddd; - height: 6rem; + height: auto; } nav { @@ -68,6 +68,11 @@ nav { margin-bottom: 0 !important; } +.link-list { + list-style: none; + padding: 0; +} + @include media-breakpoint-up(sm) { .show-img-container { margin-right: 2rem; diff --git a/config/packages/security.yaml b/config/packages/security.yaml index ae530c4..dd3a3d5 100644 --- a/config/packages/security.yaml +++ b/config/packages/security.yaml @@ -50,4 +50,4 @@ security: access_control: - { path: ^/$, roles: IS_AUTHENTICATED_ANONYMOUSLY } - { path: ^/admin, roles: ROLE_ADMIN } - - { path: ^(?!/(login|register|reset-password|offers|offer/*|imprint)), roles: ROLE_USER } \ No newline at end of file + - { path: ^(?!/(login|register|reset-password|offers|offer/*|imprint|faq)), roles: ROLE_USER } \ No newline at end of file diff --git a/src/Controller/AppController.php b/src/Controller/AppController.php index 5385ec6..117acd4 100644 --- a/src/Controller/AppController.php +++ b/src/Controller/AppController.php @@ -21,4 +21,10 @@ class AppController extends AbstractController { return $this->render('app/imprint.html.twig'); } + + #[Route('/faq', name: 'faq')] + public function faq(): Response + { + return $this->render('app/faq.html.twig'); + } } diff --git a/templates/app/faq.html.twig b/templates/app/faq.html.twig new file mode 100644 index 0000000..5486990 --- /dev/null +++ b/templates/app/faq.html.twig @@ -0,0 +1,11 @@ +{% extends 'base.html.twig' %} + +{% block title %}Privacy Policy{% endblock %} + +{% block body %} +

Frequently Asked Questions

+

Is it free?

+

Yes, pflänz.li is free to use and its source code is publically accessible.

+

Can I help?

+Yes, feel free to contact @thisfro!

+{% endblock %} \ No newline at end of file diff --git a/templates/base.html.twig b/templates/base.html.twig index 66116e9..47458e4 100644 --- a/templates/base.html.twig +++ b/templates/base.html.twig @@ -1,86 +1,125 @@ - - - Pflänz.li - {% block title %}{% endblock %} + + + Pflänz.li - + {% block title %}{% endblock %} + - {% block stylesheets %} - {{ encore_entry_link_tags('app') }} - {% endblock %} + {% block stylesheets %} + {{ encore_entry_link_tags('app') }} + {% endblock %} - {% block javascripts %} - {{ encore_entry_script_tags('app') }} + {% block javascripts %} + {{ encore_entry_script_tags('app') }} - - - - {% endblock %} + + + + {% endblock %} - - - - + + + + - - - +
{% block body %}{% endblock %} +
+ + + +