Add section icons

This commit is contained in:
Sam Carlton 2020-11-27 23:30:50 -06:00
parent 6a70d2e0bf
commit 497b8cde10
4 changed files with 8 additions and 5 deletions

View file

@ -76,7 +76,7 @@
style="transition-property: border;"
>
<template v-if="seenItems[app.slug] === false && hasStartedAnyQuery === false">
{{ app.endpoint.includes('/game/') ? `🕹${app.name}` : app.name }}
{{ app.section.icon.length !== 0 ? `${app.section.icon} ${app.name}` : app.name }}
<div class="text-sm leading-5 font-bold">
{{ app.text }}
</div>
@ -89,7 +89,7 @@
</div>
</client-only>
{{ app.endpoint.includes('/game/') ? `🕹${app.name}` : app.name }}
{{ app.section.icon.length !== 0 ? `${app.section.icon} ${app.name}` : app.name }}
<div class="text-sm leading-5 font-bold">
{{ app.text }}
</div>

View file

@ -194,7 +194,8 @@ export default async function () {
endpoint,
section: {
label: sectionTitle,
slug: sectionSlug
slug: sectionSlug,
icon: ''
},
content: token.content,
relatedLinks

View file

@ -125,7 +125,8 @@ export default async function () {
endpoint: `/game/${slug}`,
section: {
label: 'Games',
slug: 'games'
slug: 'games',
icon: '🎮'
},
content: '',
relatedLinks: [

View file

@ -151,7 +151,8 @@ export default async function () {
endpoint: `/formula/${slug}`,
section: {
label: 'Homebrew',
slug: 'homebrew'
slug: 'homebrew',
icon: '🍺'
},
content: formulae.comments,
relatedLinks: [