This commit is contained in:
2025-11-08 18:22:15 +01:00
parent 7b7ca33781
commit cba9aef518
40 changed files with 8781 additions and 0 deletions

69
templates/base.html.twig Normal file
View File

@@ -0,0 +1,69 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>{% block title %}Immorechner{% endblock %}</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
{% block stylesheets %}
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
line-height: 1.6;
color: #333;
background-color: #f8f9fa;
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 20px;
}
header {
background-color: #4CAF50;
color: white;
padding: 1rem 0;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
header h1 {
margin: 0;
padding: 0 20px;
}
main {
margin-top: 20px;
}
footer {
margin-top: 50px;
padding: 20px;
text-align: center;
color: #666;
border-top: 1px solid #ddd;
}
</style>
{% endblock %}
</head>
<body>
<header>
<div class="container">
<h1>Immorechner</h1>
</div>
</header>
<main>
<div class="container">
{% block body %}{% endblock %}
</div>
</main>
<footer>
<div class="container">
<p>&copy; {{ "now"|date("Y") }} Immorechner - Powered by Symfony</p>
</div>
</footer>
{% block javascripts %}{% endblock %}
</body>
</html>

View File

@@ -0,0 +1,67 @@
{% extends 'base.html.twig' %}
{% block title %}Willkommen - {{ parent() }}{% endblock %}
{% block stylesheets %}
{{ parent() }}
<style>
.welcome-box {
background: white;
padding: 30px;
border-radius: 8px;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
h2 {
color: #333;
border-bottom: 2px solid #4CAF50;
padding-bottom: 10px;
margin-bottom: 20px;
}
.info {
margin: 20px 0;
padding: 15px;
background-color: #e8f5e9;
border-left: 4px solid #4CAF50;
}
.api-link {
display: inline-block;
margin-top: 20px;
padding: 10px 20px;
background-color: #4CAF50;
color: white;
text-decoration: none;
border-radius: 4px;
}
.api-link:hover {
background-color: #45a049;
}
ul {
margin-left: 20px;
}
ul li {
margin: 8px 0;
}
</style>
{% endblock %}
{% block body %}
<div class="welcome-box">
<h2>Willkommen bei Immorechner</h2>
<div class="info">
<p><strong>Symfony-Anwendung erfolgreich installiert!</strong></p>
<p>Diese Anwendung verfügt über:</p>
<ul>
<li>Symfony 7.3 Framework</li>
<li>MariaDB Datenbank (mit Docker)</li>
<li>Doctrine ORM</li>
<li>API Platform für REST-API</li>
<li>Twig Template Engine für UI</li>
</ul>
</div>
<p>Die REST-API ist über API Platform verfügbar und bietet automatische Dokumentation.</p>
<a href="/api" class="api-link">Zur API-Dokumentation</a>
</div>
{% endblock %}