167 lines
3.8 KiB
HTML
167 lines
3.8 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
|
|
<style>
|
|
/* Grundlayout */
|
|
body {
|
|
padding: 0;
|
|
margin: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-height: 100vh;
|
|
font-family: 'Arial', sans-serif;
|
|
background-color: #f4f4f9;
|
|
}
|
|
|
|
/* Header */
|
|
.top {
|
|
background-color: #1f2937;
|
|
color: white;
|
|
padding: 20px 40px;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
|
|
.top h1 {
|
|
font-size: 1.8rem;
|
|
margin: 0;
|
|
}
|
|
|
|
.top a {
|
|
background-color: transparent;
|
|
color: white;
|
|
border: 2px solid #FF5520;
|
|
padding: 10px 20px;
|
|
border-radius: 5px;
|
|
text-decoration: none;
|
|
font-size: 1rem;
|
|
transition: background-color 0.3s ease, color 0.3s ease;
|
|
}
|
|
|
|
.top a:hover {
|
|
background-color: #FF5520;
|
|
color: white;
|
|
}
|
|
|
|
/* Hauptinhalt */
|
|
.content {
|
|
flex-grow: 1;
|
|
padding: 40px 20px;
|
|
}
|
|
|
|
/* Einzelner Post */
|
|
.card {
|
|
background-color: white;
|
|
border-radius: 8px;
|
|
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
|
|
overflow: hidden;
|
|
margin: 20px auto;
|
|
max-width: 900px;
|
|
}
|
|
|
|
.card-header {
|
|
position: relative;
|
|
width: 100%;
|
|
height: 300px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.card-header img {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
filter: brightness(0.5);
|
|
}
|
|
|
|
.card-header h1 {
|
|
position: absolute;
|
|
bottom: 20px;
|
|
left: 20px;
|
|
right: 20px;
|
|
color: #FF5520;
|
|
font-size: 2rem;
|
|
z-index: 99;
|
|
margin: 0;
|
|
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
|
|
}
|
|
|
|
.card-body {
|
|
padding: 20px;
|
|
}
|
|
|
|
.card-body .subtitle {
|
|
color: #777;
|
|
font-size: 1.2rem;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.card-body .content-body {
|
|
color: #333;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
.card-body .content-body p {
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
/* Footer */
|
|
footer {
|
|
background-color: #2d2d2d;
|
|
color: white;
|
|
text-align: center;
|
|
padding: 20px;
|
|
font-size: 1rem;
|
|
}
|
|
|
|
/* Responsiveness */
|
|
@media screen and (max-width: 768px) {
|
|
.top h1 {
|
|
font-size: 1.5rem;
|
|
}
|
|
|
|
.top a {
|
|
padding: 8px 16px;
|
|
}
|
|
|
|
.card-header h1 {
|
|
font-size: 1.5rem;
|
|
}
|
|
}
|
|
</style>
|
|
</head>
|
|
|
|
<body>
|
|
<div class="wrapper">
|
|
<!-- Navigation -->
|
|
<div class="top">
|
|
<a class="btn" th:href="@{/}">Zurück</a>
|
|
<h1>My Blog</h1>
|
|
</div>
|
|
|
|
<!-- Hauptinhalt des Posts -->
|
|
<div class="content">
|
|
<div class="card">
|
|
<div class="card-header">
|
|
<img th:src="@{${post.imgUrl}}">
|
|
<h1 th:text="${post.title}">Post Title</h1>
|
|
</div>
|
|
<div class="card-body">
|
|
<h3 class="subtitle" th:text="${post.subtitle}">Post Subtitle</h3>
|
|
<div class="content-body" th:utext="${post.body}">Post Content</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Footer -->
|
|
<footer>
|
|
<p>Made with ♥️ in Mannheim.</p>
|
|
</footer>
|
|
</body>
|
|
|
|
</html>
|