feat: add dark mode stats

This commit is contained in:
2022-08-09 16:25:23 -04:00
parent df033cc0d2
commit 3c7d81fd36
6 changed files with 32 additions and 17 deletions

View File

@@ -23,10 +23,11 @@ const prettyDate = latestDate.format("DD MMM YYYY");
<HomeStatBox
:href="latest._path"
color="lightblue"
darkcolor="#497482"
title="Latest blog post"
>
<h2 class="m-0 mt-4 mb-1">{{ latest.title }}</h2>
<p class="text-sm text-gray-500 m-0">
<p class="text-sm text-gray-500 dark:text-gray-400 m-0">
{{ prettyDate }} · {{ latest.readingTime.text }}
</p>
<div class="tag-list mt-1">
@@ -51,15 +52,9 @@ const prettyDate = latestDate.format("DD MMM YYYY");
</template>
</ContentRenderer>
-->
<p class="excerpt text-gray-600 text-base m-0 mt-5">
<p class="excerpt text-gray-600 dark:text-gray-300 text-base m-0 mt-5">
{{ latest.description }}
</p>
</HomeStatBox>
</div>
</template>
<style scoped>
article p {
color: gray;
}
</style>