Rebrand application as MetalCircle
This commit is contained in:
@@ -3,7 +3,8 @@
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Nachrichten · Pingu Concerts</title>
|
||||
<title>Nachrichten · MetalCircle</title>
|
||||
<link rel="icon" type="image/png" href="/static/images/metalcircle-circle.png">
|
||||
<link rel="stylesheet" href="/static/css/style.css">
|
||||
<style>
|
||||
.conversation-list { display: grid; gap: 10px; }
|
||||
@@ -23,11 +24,23 @@
|
||||
.chat-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; margin-top: 12px; max-width: none; }
|
||||
.chat-form textarea { min-height: 76px; margin: 0; resize: vertical; }
|
||||
.empty-chat { color: var(--muted); text-align: center; margin: auto; }
|
||||
.message-notifications { margin-bottom: 24px; padding: 16px; background: rgba(69,10,10,.45); border: 1px solid #7f1d1d; border-radius: 14px; }
|
||||
.message-notifications h2, .conversation-heading { margin: 0 0 12px; font-size: 1.15rem; }
|
||||
.notification-row { display: flex; align-items: center; gap: 11px; padding: 11px; color: var(--text); border-top: 1px solid rgba(127,29,29,.55); }
|
||||
a.notification-row:hover { background: rgba(127,29,29,.25); }
|
||||
.notification-icon { flex: 0 0 auto; font-size: 1.35rem; }
|
||||
.notification-row > span:nth-child(2) { min-width: 0; flex: 1; }
|
||||
.notification-row small { display: block; margin-top: 3px; color: var(--muted); }
|
||||
.notification-actions { display: flex; flex-wrap: wrap; gap: 6px; }
|
||||
.notification-actions form { margin: 0; }
|
||||
.notification-actions .button { padding: 7px 10px; font-size: .82rem; }
|
||||
.notification-link { color: #fca5a5; white-space: nowrap; }
|
||||
.conversation-heading { margin-top: 20px; }
|
||||
@media (max-width: 600px) { .chat-form { grid-template-columns: 1fr; } .chat-bubble { max-width: 90%; } }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<header><div class="header-inner"><a href="/" class="logo">🎸 Pingu <span>Concerts</span></a>{% include '_user_menu.html' %}</div></header>
|
||||
<header><div class="header-inner"><a href="/" class="logo"><img class="brand-logo" src="/static/images/metalcircle-full.png" alt="MetalCircle"></a>{% include '_user_menu.html' %}</div></header>
|
||||
<main>
|
||||
{% if partner %}
|
||||
<div class="chat-header">
|
||||
@@ -45,6 +58,26 @@
|
||||
<p><a class="button button-secondary" href="/messages">← Alle Nachrichten</a></p>
|
||||
{% else %}
|
||||
<div class="page-title"><h1>🤘 Nachrichten</h1><p>Private Chats mit deinen Freunden.</p></div>
|
||||
{% if friend_requests or event_invitations %}
|
||||
<section class="message-notifications">
|
||||
<h2>Neue Anfragen</h2>
|
||||
{% for request in friend_requests %}
|
||||
<div class="notification-row">
|
||||
<span class="notification-icon">🤝</span>
|
||||
<span><strong>{{ request.display_name }}</strong> möchte sich mit dir befreunden.<small>{{ request.created_at }}</small></span>
|
||||
<span class="notification-actions"><form method="post" action="/friendships/{{ request.id }}/accept"><input type="hidden" name="return_to" value="/messages"><button class="button" type="submit">Annehmen</button></form><form method="post" action="/friendships/{{ request.id }}/decline"><input type="hidden" name="return_to" value="/messages"><button class="button button-secondary" type="submit">Ablehnen</button></form></span>
|
||||
</div>
|
||||
{% endfor %}
|
||||
{% for invitation in event_invitations %}
|
||||
<a class="notification-row" href="/concerts/{{ invitation.concert_id }}">
|
||||
<span class="notification-icon">✉️</span>
|
||||
<span><strong>{{ invitation.artist }}</strong> – Einladung von {{ invitation.invited_by }}<small>{{ invitation.date }}</small></span>
|
||||
<span class="notification-link">Ansehen →</span>
|
||||
</a>
|
||||
{% endfor %}
|
||||
</section>
|
||||
{% endif %}
|
||||
<h2 class="conversation-heading">Unterhaltungen</h2>
|
||||
<div class="conversation-list">
|
||||
{% for conversation in conversations %}
|
||||
<a class="conversation-card" href="/messages/{{ conversation.username }}">
|
||||
|
||||
Reference in New Issue
Block a user