import { _ } from 'svelte-i18n';
import { readableTime } from '$lib/utils/readable_time';
- $: remainingTime = topic.updated_at + topic.ttl - Date.now();
+ $: remainingTime = new Date(topic.updated_at).getTime() + topic.ttl - Date.now();
$: remaining = readableTime(remainingTime);
</script>
<li class="h-entry" title={$_('topic.title')}>
<span class="p-name">
- <a class="u-url u-uid" title={$_('topic.permalink_title')} href="/t/{topic.id}">
+ <a
+ class="u-url u-uid underline text-blue-600 visited:text-purple-500"
+ title={$_('topic.permalink_title')}
+ href="/t/{topic.id}"
+ >
{topic.title}
</a></span
>
})})
</span>
</li>
-
-<style>
-</style>