diff --git a/src/api/templates/contact.html b/src/api/templates/contact.html index 004b9d7..578df63 100644 --- a/src/api/templates/contact.html +++ b/src/api/templates/contact.html @@ -179,6 +179,41 @@ text-decoration: underline; } + .tiles-grid { + display: grid; + grid-template-columns: repeat(2, 1fr); + gap: 0.5rem; + } + + .tile { + padding: 0.75rem; + background: #f8f9fa; + border-radius: 6px; + } + + .tile-label { + font-size: 0.7rem; + color: #888; + text-transform: capitalize; + margin-bottom: 0.25rem; + line-height: 1.3; + } + + .tile-value { + font-size: 0.875rem; + color: #333; + word-break: break-word; + } + + .tile-value a { + color: #0066cc; + text-decoration: none; + } + + .tile-value a:hover { + text-decoration: underline; + } + .birthday-highlight { display: inline-flex; align-items: center; @@ -254,6 +289,12 @@ transform: scale(1.03); } + @media (max-width: 600px) { + .tiles-grid { + grid-template-columns: 1fr; + } + } + @media (max-width: 1450px) { .custom-links-box { display: none; @@ -299,11 +340,11 @@ {% if contact.emails %}
E-Mail
-
+
{% for email in contact.emails %} -
- {{ email.type }} - {{ email.value }} +
+
{{ email.type }}
+
{% endfor %}
@@ -313,11 +354,11 @@ {% if contact.phones %}
Telefon
-
+
{% for phone in contact.phones %} -
- {{ phone.type }} - {{ phone.value }} +
+
{{ phone.type }}
+
{% endfor %}
@@ -327,15 +368,15 @@ {% if contact.addresses %}
Adresse
-
+
{% for addr in contact.addresses %} -
- {{ addr.type }} - +
+
{{ addr.type }}
+
{{ addr.street }}
{% if addr.zip %}{{ addr.zip }} {% endif %}{{ addr.city }}
{{ addr.region }}{% if addr.region and addr.country %}, {% endif %}{{ addr.country }} - +
{% endfor %}
@@ -345,11 +386,11 @@ {% if contact.urls %}
Website
-
+
{% for url in contact.urls %} -
- {{ url.type }} - {{ url.value }} +
+
{{ url.type }}
+
{% endfor %}
@@ -359,11 +400,11 @@ {% if contact.social_profiles %}
Soziale Profile
-
+
{% for sp in contact.social_profiles %} -
- {{ sp.type }}{% if sp.username %} ({{ sp.username }}){% endif %} - {{ sp.url }} +
+
{{ sp.type }}{% if sp.username %} ({{ sp.username }}){% endif %}
+
{% endfor %}