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;" style="transition-property: border;"
> >
<template v-if="seenItems[app.slug] === false && hasStartedAnyQuery === false"> <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"> <div class="text-sm leading-5 font-bold">
{{ app.text }} {{ app.text }}
</div> </div>
@ -89,7 +89,7 @@
</div> </div>
</client-only> </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"> <div class="text-sm leading-5 font-bold">
{{ app.text }} {{ app.text }}
</div> </div>

View file

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

View file

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

View file

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