evwiki/templates/base.html.twig
2025-06-09 15:42:22 +02:00

331 lines
8.1 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 {
display: flex;
justify-content: stretch;
gap: 2rem;
align-items: center;
margin-bottom: 2.5rem;
}
.title {
font-size: 2.5rem;
font-weight: 800;
letter-spacing: -1px;
background: linear-gradient(90deg, #083d77 0%, #2e4057 35%, #d1495b 100%);
background-clip: text;
-webkit-text-fill-color: transparent;
display: inline-block;
}
.search-container {
flex-grow: 1;
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.1s ease;
background: white;
}
.search-input:hover {
border-color: #083d77;
}
.search-input:focus {
border-color: #083d77;
box-shadow: 0 4px 20px rgba(8, 61, 119, 0.2);
}
.search-button {
position: absolute;
right: 8px;
top: 8px;
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;
}
/* Tiles Grid Layout */
.tiles-grid {
display: grid;
grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
gap: 1px;
padding: 0;
overflow: hidden;
}
.tile-wrapper {
display: flex;
flex-direction: column;
height: 100%;
position: relative;
}
/* Special handling for subsection tiles */
.tile-wrapper:has(.subsection) {
grid-column: 1 / -1;
min-height: auto;
}
.tile {
background: white;
border: none;
border-radius: 0;
padding: 1.5rem;
width: 100%;
height: 100%;
min-height: 120px;
display: flex;
flex-direction: column;
justify-content: space-between;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
position: relative;
overflow: hidden;
flex: 1;
}
.tile::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 3px;
background: linear-gradient(90deg, #083d77, #2e4057, #d1495b);
opacity: 0;
transition: opacity 0.3s ease;
}
.tile:hover {
transform: translateY(-2px);
box-shadow: 0 4px 15px rgba(8, 61, 119, 0.15);
background: rgba(8, 61, 119, 0.02);
z-index: 1;
cursor: pointer;
}
.tile:hover::before {
opacity: 1;
}
.tile-title {
font-size: 1.25rem;
font-weight: 700;
color: #083d77;
margin-bottom: 0.5rem;
line-height: 1.3;
}
.tile-subtitle {
font-size: 0.8rem;
color: #999;
margin-bottom: 1.2rem;
font-weight: 500;
}
.tile small {
font-size: 0.75rem;
color: #888;
text-transform: uppercase;
letter-spacing: 0.5px;
font-weight: 600;
margin-top: auto;
}
.tile-logo {
width: 40px;
height: 40px;
object-fit: contain;
margin-bottom: 1rem;
border-radius: 8px;
background: rgba(8, 61, 119, 0.05);
padding: 0.5rem;
}
.tile-content {
flex-grow: 1;
display: flex;
flex-direction: column;
justify-content: flex-start;
}
.results-container {
margin-top: 2rem;
}
.section-title {
font-size: 1.75rem;
font-weight: 800;
color: #083d77;
margin: 2.5rem 0 1.5rem 0;
padding-bottom: 0.5rem;
border-bottom: 2px solid rgba(8, 61, 119, 0.1);
position: relative;
}
.section-title::after {
content: '';
position: absolute;
bottom: -2px;
left: 0;
width: 60px;
height: 2px;
background: linear-gradient(90deg, #083d77, #d1495b);
}
.section-title:first-child {
margin-top: 0;
}
.section-tiles-container {
margin-bottom: 2rem;
}
.subsection {
margin-top: 1rem;
}
.subsection-title {
font-size: 1.1rem;
font-weight: 600;
padding: 0.25rem 0rem;
position: relative;
border-radius: 2px 2px 0 0;
border-bottom: none;
display: inline-block;
min-width: 120px;
z-index: 1;
width: 100%;
margin-top: 1.5rem;
}
.subsection-description {
font-size: 0.9rem;
margin: 0;
padding: 0.25rem 1rem 0.75rem;
font-style: italic;
background: rgba(255, 255, 255, 0.8);
border: 1px solid rgba(224, 224, 224, 0.5);
border-top: none;
border-bottom: none;
margin-left: 0;
}
.subsection-tiles-container {
background: transparent;
border: none;
border-radius: 0;
overflow: visible;
margin-top: 0rem;
}
.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;
}
.tiles-grid {
grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
gap: 1px;
}
.tile-wrapper {
min-height: 100px;
}
.tile {
padding: 1.25rem;
min-height: 100px;
}
.tile-title {
font-size: 1.1rem;
}
}
@media (max-width: 480px) {
.tiles-grid {
grid-template-columns: 1fr;
gap: 1px;
}
.tile-wrapper {
min-height: 80px;
}
.tile {
padding: 1rem;
min-height: 80px;
}
}
</style>
{% block stylesheets %}{% endblock %}
</head>
<body>
<div class="container">
{% block body %}{% endblock %}
</div>
{% block javascripts %}{% endblock %}
{% block importmap %}{{ importmap('app') }}{% endblock %}
</body>
</html>