Start maintenance mode
This commit is contained in:
2
.env
2
.env
@@ -15,7 +15,7 @@
|
|||||||
# https://symfony.com/doc/current/best_practices.html#use-environment-variables-for-infrastructure-configuration
|
# https://symfony.com/doc/current/best_practices.html#use-environment-variables-for-infrastructure-configuration
|
||||||
|
|
||||||
###> symfony/framework-bundle ###
|
###> symfony/framework-bundle ###
|
||||||
APP_ENV=dev
|
APP_ENV=prod
|
||||||
APP_SECRET=V8W3EMNAXJSPWP2PC92PKX7VEAWCUJWASSNXNDD2DE2JXEB99B6ZVT5D
|
APP_SECRET=V8W3EMNAXJSPWP2PC92PKX7VEAWCUJWASSNXNDD2DE2JXEB99B6ZVT5D
|
||||||
###< symfony/framework-bundle ###
|
###< symfony/framework-bundle ###
|
||||||
|
|
||||||
|
|||||||
2
.gitignore
vendored
2
.gitignore
vendored
@@ -18,3 +18,5 @@
|
|||||||
/public/assets/
|
/public/assets/
|
||||||
/assets/vendor/
|
/assets/vendor/
|
||||||
###< symfony/asset-mapper ###
|
###< symfony/asset-mapper ###
|
||||||
|
|
||||||
|
.idea
|
||||||
|
|||||||
@@ -65,7 +65,8 @@ final class HomeController extends AbstractController
|
|||||||
#[Route('/', name: 'home')]
|
#[Route('/', name: 'home')]
|
||||||
public function index(Request $request, MailerInterface $mailer): Response
|
public function index(Request $request, MailerInterface $mailer): Response
|
||||||
{
|
{
|
||||||
return $this->render('home_controller/index.html.twig');
|
return $this->render('home_controller/maintenance.html.twig');
|
||||||
|
// return $this->render('home_controller/index.html.twig');
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -17,6 +17,7 @@
|
|||||||
{% endblock %}
|
{% endblock %}
|
||||||
</head>
|
</head>
|
||||||
<body class="min-h-screen flex flex-col">
|
<body class="min-h-screen flex flex-col">
|
||||||
|
<!--
|
||||||
<div>
|
<div>
|
||||||
<span class="">default</span>
|
<span class="">default</span>
|
||||||
<span class="invisible sm:visible">sm</span>
|
<span class="invisible sm:visible">sm</span>
|
||||||
@@ -25,7 +26,9 @@
|
|||||||
<span class="invisible xl:visible">xl</span>
|
<span class="invisible xl:visible">xl</span>
|
||||||
<span class="invisible 2xl:visible">2xl</span>
|
<span class="invisible 2xl:visible">2xl</span>
|
||||||
</div>
|
</div>
|
||||||
|
-->
|
||||||
|
|
||||||
|
{% block navigation %}
|
||||||
{% set current_path = app.request.get('_route') %}
|
{% set current_path = app.request.get('_route') %}
|
||||||
<nav class="bg-white pt-16 pb-24">
|
<nav class="bg-white pt-16 pb-24">
|
||||||
<div class="px-4 sm:px-8 md:px-16 lg:px-32 flex justify-between items-center h-16">
|
<div class="px-4 sm:px-8 md:px-16 lg:px-32 flex justify-between items-center h-16">
|
||||||
@@ -34,7 +37,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Desktop Links -->
|
<!-- Desktop Links -->
|
||||||
<div class="hidden md:flex space-x-1">
|
<!-- <div class="hidden md:flex space-x-1">
|
||||||
<span class="px-4 py-4 bg-white text-black">
|
<span class="px-4 py-4 bg-white text-black">
|
||||||
<span class="py-1 {% if current_path == 'about_me'%}border-b-1 border-black{% endif %}">
|
<span class="py-1 {% if current_path == 'about_me'%}border-b-1 border-black{% endif %}">
|
||||||
<a href="{{ path('about_me') }}" class="font-thin">Über mich</a>
|
<a href="{{ path('about_me') }}" class="font-thin">Über mich</a>
|
||||||
@@ -55,21 +58,21 @@
|
|||||||
<a href="{{ path('contact') }}" class="font-thin">Kontakt</a>
|
<a href="{{ path('contact') }}" class="font-thin">Kontakt</a>
|
||||||
</span>
|
</span>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div> -->
|
||||||
|
|
||||||
<!-- Hamburger -->
|
<!-- Hamburger -->
|
||||||
<div class="md:hidden">
|
<!-- <div class="md:hidden">
|
||||||
<button id="menu-btn" class="focus:outline-none">
|
<button id="menu-btn" class="focus:outline-none">
|
||||||
<svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
<svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||||||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
|
||||||
d="M4 6h16M4 12h16M4 18h16"></path>
|
d="M4 6h16M4 12h16M4 18h16"></path>
|
||||||
</svg>
|
</svg>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div> -->
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Mobile Drawer -->
|
<!-- Mobile Drawer -->
|
||||||
<div id="mobile-menu" class="max-h-0 overflow-hidden md:hidden transition-all duration-300 ease-in-out">
|
<!-- <div id="mobile-menu" class="max-h-0 overflow-hidden md:hidden transition-all duration-300 ease-in-out">
|
||||||
<span class="px-3 py-4 bg-white text-black">
|
<span class="px-3 py-4 bg-white text-black">
|
||||||
<span class="py-1 {% if current_path == 'about_me'%}border-b-1 border-black{% endif %}">
|
<span class="py-1 {% if current_path == 'about_me'%}border-b-1 border-black{% endif %}">
|
||||||
<a href="{{ path('about_me') }}" class="font-thin">Über mich</a>
|
<a href="{{ path('about_me') }}" class="font-thin">Über mich</a>
|
||||||
@@ -90,14 +93,16 @@
|
|||||||
<a href="{{ path('contact') }}" class="font-thin">Kontakt</a>
|
<a href="{{ path('contact') }}" class="font-thin">Kontakt</a>
|
||||||
</span>
|
</span>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div> -->
|
||||||
</nav>
|
|
||||||
|
|
||||||
|
</nav>
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
<main class="flex-grow">
|
<main class="flex-grow">
|
||||||
{% block body %}{% endblock %}
|
{% block body %}{% endblock %}
|
||||||
</main>
|
</main>
|
||||||
|
|
||||||
|
{% block footer %}
|
||||||
<footer class="bg-black text-white">
|
<footer class="bg-black text-white">
|
||||||
<div class="px-4 sm:px-8 md:px-16 lg:px-32 pb-16">
|
<div class="px-4 sm:px-8 md:px-16 lg:px-32 pb-16">
|
||||||
<div class="grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 gap-6 mt-16 mb-8">
|
<div class="grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 gap-6 mt-16 mb-8">
|
||||||
@@ -127,7 +132,7 @@
|
|||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
|
{% endblock %}
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
{% block javascripts %}
|
{% block javascripts %}
|
||||||
|
|||||||
33
templates/home_controller/maintenance.html.twig
Normal file
33
templates/home_controller/maintenance.html.twig
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
{% extends 'base.html.twig' %}
|
||||||
|
|
||||||
|
{% block title %}Wartungsseite{% endblock %}
|
||||||
|
|
||||||
|
{% block navigation %}{% endblock %}
|
||||||
|
|
||||||
|
{% block body %}
|
||||||
|
|
||||||
|
<div class="flex flex-col items-center justify-center min-h-screen bg-white text-center text-gray-800">
|
||||||
|
|
||||||
|
<img class="max-w-35 md:max-w-50 mb-16 mt-8" src="{{ asset('images/logo.png') }}" alt="EC Logo">
|
||||||
|
|
||||||
|
<p class="text-2xl md:text-4xl noto-sans-display-100 mb-8 ml-8 mr-8">
|
||||||
|
Wir arbeiten daran, Ihnen ein noch besseres<br>Erlebnis zu bieten und führen wichtige Updates durch.
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p class="text-base md:text-2xl noto-sans-display-100 mb-8">
|
||||||
|
Wir sind bald wieder online!
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p class="text-base md:text-2xl noto-sans-display-100 mb-8">
|
||||||
|
Sie erreichen mich trotzdem unter:<br>
|
||||||
|
<a href="mailto:info@ec-architektur.de">info@ec-architektur.de</a><br>
|
||||||
|
Telefon: <a href="tel:+491788358358">+49 178 8358358</a>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p class="text-base md:text-2xl noto-sans-display-100 mb-4">Vielen Dank für Ihr Verständnis!</p>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
Reference in New Issue
Block a user