evwiki/templates/base.html.twig
2025-05-26 07:32:25 +02:00

162 lines
3.9 KiB
Twig

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{% block title %}E-WIKI - Electric Vehicle Database{% endblock %}</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
line-height: 1.6;
color: #333;
background: linear-gradient(135deg, #ffffff, rgba(8, 61, 119, 0.05));
min-height: 100vh;
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 2rem;
}
.header {
text-align: center;
margin-bottom: 3rem;
}
.title {
font-size: 3.5rem;
font-weight: 800;
margin-bottom: 2.5rem;
letter-spacing: -1px;
background: linear-gradient(90deg, #083d77 0%, #2e4057 35%, #d1495b 100%);
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
display: inline-block;
}
.search-container {
max-width: 600px;
margin: 0 auto 3rem;
position: relative;
}
.search-input {
width: 100%;
padding: 1rem 1.5rem;
font-size: 1.1rem;
border: 2px solid #e0e0e0;
border-radius: 50px;
outline: none;
transition: all 0.3s ease;
background: white;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.search-input:focus {
border-color: #083d77;
box-shadow: 0 4px 20px rgba(8, 61, 119, 0.2);
}
.search-button {
position: absolute;
right: 8px;
top: 50%;
transform: translateY(-50%);
background: #083d77;
color: white;
border: none;
padding: 0.75rem 1.5rem;
border-radius: 25px;
cursor: pointer;
font-weight: 600;
transition: background 0.3s ease;
}
.search-button:hover {
background: #2e4057;
}
.tile {
display: flex;
border-radius: 10px;
padding: 10px;
background-color: #fff;
}
.tile-title {
font-size: 1.2rem;
font-weight: 600;
color: #083d77;
}
.tile-container {
display: flex;
flex-direction: column;
align-items: flex-start;
justify-content: center;
gap: 0.5rem;
}
.tile-container > * {
flex-grow: 0;
flex-shrink: 1;
}
.results-container {
margin-top: 2rem;
}
.section-title {
font-size: 1.5rem;
font-weight: 700;
color: #083d77;
margin-bottom: 1rem;
border-bottom: 2px solid #e0e0e0;
padding-bottom: 0.5rem;
}
.loading {
text-align: center;
padding: 2rem;
color: #666;
}
.no-results {
text-align: center;
padding: 2rem;
color: #999;
font-style: italic;
}
@media (max-width: 768px) {
.title {
font-size: 2.5rem;
}
.container {
padding: 1rem;
}
.brands-grid {
grid-template-columns: 1fr;
}
}
</style>
{% block stylesheets %}{% endblock %}
</head>
<body>
<div class="container">
{% block body %}{% endblock %}
</div>
{% block javascripts %}{% endblock %}
</body>
</html>