aboutsummaryrefslogtreecommitdiff
path: root/src/components/topic
diff options
context:
space:
mode:
authorRuben Beltran del Rio <ruben@unlimited.pizza>2021-03-09 22:43:12 +0100
committerRuben Beltran del Rio <ruben@unlimited.pizza>2021-03-09 22:43:12 +0100
commitbd8e98d7e24c4dbaee7db6ec7955f7c2f6d396a6 (patch)
treee5f0dcbc14d3009c17e5f562404fe19f6aceab73 /src/components/topic
parent862a5f9cdbbda522c608ea63c1e296e81f44de10 (diff)
Update to SvelteKit
Diffstat (limited to 'src/components/topic')
-rw-r--r--src/components/topic/topic.svelte59
1 files changed, 59 insertions, 0 deletions
diff --git a/src/components/topic/topic.svelte b/src/components/topic/topic.svelte
new file mode 100644
index 0000000..2aff79a
--- /dev/null
+++ b/src/components/topic/topic.svelte
@@ -0,0 +1,59 @@
+<script>
+ import { _ } from 'svelte-i18n';
+
+ import Glyph from '../glyph/glyph.svelte';
+</script>
+
+<div class="h-entry" title="{$_('topic.title')}">
+ <h1 class="p-name">This is a post in the forum.</h1>
+ <aside class="topic-meta" title="{$_('topic.metadata_title')}">
+ <span class="topic-location">{$_('topic.category_location')} <a href="/f/interaction"
+ class="p-category">{$_('forum.name.interaction')}</a>.</span>
+ <span class="topic-ttl"><a class="u-url u-uid" title="{$_('topic.permalink_title')}" href="/t/2a3fc567af8c897ca6f55fb5fj">{$_('topic.remaining_time', { values: { remaining: $_('time.days', { values: { count: 3 } }) } })}</a>.</span>
+ </aside>
+ <aside class="topic-tags" title="{$_('topic.tags_title')}">
+ {$_('topic.tags_location')}
+ <a href="/g/question" class="p-category">question<span class="tag-weight">(5)</span></a>
+ <a href="/g/meta" class="p-category">meta<span class="tag-weight">(34)</span></a>
+ <a href="/g/carrots" class="p-category">carrots<span class="tag-weight">(1)</span></a>
+ <a href="/g/tpbo" class="p-category">tpbo<span class="tag-weight">(2)</span></a>
+ </aside>
+ <aside class="post-meta" title="{$_('post.metadata_title', { values: { count: 1, total: 2 } })}">
+ <Glyph uuid="3cd8c84e18144a2da71f6bace9392abc" />
+ <span class="h-card">
+ {$_('post.author_credit')} <a href="/a/rbdr" class="p-nickname u-url">rbdr</a>.
+ </span>
+ <time role="presentation" class="dt-published" datetime="2018-08-14T03:32:10.929Z">
+ <a title="{$_('post.permalink_title')}" href="/p/a80c70ea0120387123097ce1907ff">
+ 2018-08-14 03:32:10
+ </a>
+ </time>
+ </aside>
+ <article class="e-content" title="{$_('post.title', { values: { count: 1, total: 2, author: 'rbdr' } })}">
+ <p>This is a main topic in the forum. Does that abstraction still even make sense?</p>
+ <p>Is this really it??</p>
+ <p>This might all be fake but at least the links look purple when visited</p>
+ </article>
+ <hr/>
+ <aside class="post-meta" title="{$_('post.metadata_title', { values: { count: 2, total: 2 } })}">
+ <Glyph uuid="b33f0339f7d64d1ca27f1c0aefb7d753" />
+ <span class="h-card">
+ {$_('post.author_credit')} <a href="/a/time4carrots" class="p-nickname u-url">time4carrots</a>.
+ </span>
+ <time role="presentation" class="dt-published" datetime="2018-08-15T04:10:00.929Z">
+ <a href="/p/da9910f3febde91948000ce1535ea">
+ 2018-08-15 04:10:00
+ </a>
+ </time>
+ </aside>
+ <article class="e-content" title="{$_('post.title', { values: { count: 1, total: 2, author: 'time4carrots' } })}">
+ <p>It's just how it is...</p>
+ </article>
+ <hr/>
+</div>
+
+<style>
+ .post-meta * {
+ vertical-align: top;
+ }
+</style>