diff --git a/assets/styles/02-layout/layout.css b/assets/styles/02-layout/layout.css index 27d437e..cddb45a 100644 --- a/assets/styles/02-layout/layout.css +++ b/assets/styles/02-layout/layout.css @@ -156,6 +156,10 @@ aside header { main { margin-top: 60px; + padding: 0; + } + + article { padding: 0 var(--spacing-3); } diff --git a/assets/styles/04-pages/forum.css b/assets/styles/04-pages/forum.css index 4c167c2..3de2fa6 100644 --- a/assets/styles/04-pages/forum.css +++ b/assets/styles/04-pages/forum.css @@ -76,12 +76,13 @@ .sub-card { -border: 1px solid var(--color-primary); -background: #fff; -padding: 1rem; -display: flex; -flex-direction: column; -justify-content: space-between; + border: 1px solid var(--color-primary); + background: #fff; + padding: 1rem; + display: flex; + flex-direction: column; + justify-content: space-between; + margin: 0 var(--spacing-3); } .sub-card h3 { @@ -100,8 +101,9 @@ flex-shrink: 0; } .articles-list { -list-style: none; -padding: 0; + list-style: none; + padding: 0; + margin: 0 var(--spacing-3); } .article-item { diff --git a/templates/pages/author-about.html.twig b/templates/pages/author-about.html.twig index 44626a9..bde8034 100644 --- a/templates/pages/author-about.html.twig +++ b/templates/pages/author-about.html.twig @@ -1,152 +1,141 @@ {% extends 'layout.html.twig' %} {% block body %} -

- {% if author.nip05 is defined %} - {% if author.nip05 is iterable %} - {% for nip05Value in author.nip05 %} - - {% endfor %} - {% else %} - - {% endif %} - {% endif %} - -
- Articles - Media - About -
- -
-
-

Profile Information

- - {% if author.about is defined %} -
-

About

-
- {{ author.about|markdown_to_html|mentionify|linkify }} + + {% import 'partial/_author-section.html.twig', {author: author, npub: npub} %} + +
+
+ Articles + Media + About +
+ +
+
+

Profile Information

+ + {% if author.about is defined %} +
+

About

+
+ {{ author.about|markdown_to_html|mentionify|linkify }} +
-
- {% endif %} + {% endif %} - {% if author.banner is defined %} -
-

Banner

-
- Profile banner + {% if author.banner is defined %} +
+

Banner

+
+ Profile banner +
-
- {% endif %} + {% endif %} - {% if author.website is defined %} -
-

Website

-
- {{ author.website }} + {% if author.website is defined %} +
+

Website

+
-
- {% endif %} + {% endif %} + + {% if author.lud16 is defined %} +
+

Lightning Address{{ author.lud16 is iterable and author.lud16|length > 1 ? 'es' : '' }}

+
+ {% if author.lud16 is iterable %} + {% for address in author.lud16 %} +
+ {{ address }} +
+ {% endfor %} + {% else %} + {{ author.lud16 }} + {% endif %} +
+
+ {% endif %} + + {% if author.lud06 is defined %} +
+

LNURL{{ author.lud06 is iterable and author.lud06|length > 1 ? 's' : '' }}

+
+ {% if author.lud06 is iterable %} + {% for lnurl in author.lud06 %} +
+ {{ lnurl }} +
+ {% endfor %} + {% else %} + {{ author.lud06 }} + {% endif %} +
+
+ {% endif %} - {% if author.lud16 is defined %}
-

Lightning Address{{ author.lud16 is iterable and author.lud16|length > 1 ? 'es' : '' }}

+

Public Key (hex)

- {% if author.lud16 is iterable %} - {% for address in author.lud16 %} -
- {{ address }} -
- {% endfor %} - {% else %} - {{ author.lud16 }} - {% endif %} + {{ pubkey }}
- {% endif %} - {% if author.lud06 is defined %}
-

LNURL{{ author.lud06 is iterable and author.lud06|length > 1 ? 's' : '' }}

+

Public Key (npub)

- {% if author.lud06 is iterable %} - {% for lnurl in author.lud06 %} -
- {{ lnurl }} -
- {% endfor %} - {% else %} - {{ author.lud06 }} - {% endif %} + {{ npub }}
- {% endif %} - -
-

Public Key (hex)

-
- {{ pubkey }} -
-
- -
-

Public Key (npub)

-
- {{ npub }} -
-
- {# Display any additional fields that might be present #} - {% set standardFields = ['name', 'display_name', 'about', 'picture', 'banner', 'nip05', 'website', 'lud16', 'lud06', 'image'] %} - {% for key, value in author %} - {% if key not in standardFields and value is not empty %} -
-

{{ key|title }}

-
- {% if value starts with 'http://' or value starts with 'https://' %} - {{ value }} - {% else %} - {{ value }} - {% endif %} + {# Display any additional fields that might be present #} + {% set standardFields = ['name', 'display_name', 'about', 'picture', 'banner', 'nip05', 'website', 'lud16', 'lud06', 'image'] %} + {% for key, value in author %} + {% if key not in standardFields and value is not empty %} +
+

{{ key|title }}

+
+ {% if value starts with 'http://' or value starts with 'https://' %} + {{ value }} + {% else %} + {{ value }} + {% endif %} +
-
- {% endif %} - {% endfor %} -
+ {% endif %} + {% endfor %} +
- {# Raw Event Debug Section #} -
-
- Raw Profile Event (Debug) -
-

Event ID:

-
{{ rawEvent.id ?? 'N/A' }}
+ {# Raw Event Debug Section #} +
+
+ Raw Profile Event (Debug) +
+

Event ID:

+
{{ rawEvent.id ?? 'N/A' }}
-

Created At:

-
{{ rawEvent.created_at ?? 'N/A' }} ({{ rawEvent.created_at is defined ? rawEvent.created_at|date('Y-m-d H:i:s') : 'N/A' }})
+

Created At:

+
{{ rawEvent.created_at ?? 'N/A' }} ({{ rawEvent.created_at is defined ? rawEvent.created_at|date('Y-m-d H:i:s') : 'N/A' }})
-

Tags:

-
{{ rawEvent.tags is defined ? rawEvent.tags|json_encode(constant('JSON_PRETTY_PRINT')) : '[]' }}
+

Tags:

+
{{ rawEvent.tags is defined ? rawEvent.tags|json_encode(constant('JSON_PRETTY_PRINT')) : '[]' }}
-

Content (JSON):

-
{{ rawEvent.content ?? '{}' }}
+

Content (JSON):

+
{{ rawEvent.content ?? '{}' }}
-

Signature:

-
{{ rawEvent.sig ?? 'N/A' }}
+

Signature:

+
{{ rawEvent.sig ?? 'N/A' }}
-

Full Event Object:

-
{{ rawEvent|json_encode(constant('JSON_PRETTY_PRINT')) }}
-
-
+

Full Event Object:

+
{{ rawEvent|json_encode(constant('JSON_PRETTY_PRINT')) }}
+
+
+
-
+
+