Add games library with IGDB, file explorer and static files script
This commit is contained in:
1 parent
a16444451a
commit
ec57bd73b3
65 files changed
+2230
-352
No files matched your search
@@ -3,6 +3,7 @@
|
||||
import type { LibraryEntry } from '#lib/library/entries';
|
||||
import type { LibraryStatus } from '#lib/library/apps';
|
||||
import Tag from '#lib/components/ui/Tag.svelte';
|
||||
import { tagIcon } from '#lib/library/gameProfile';
|
||||
|
||||
let {
|
||||
entry,
|
||||
@@ -48,6 +49,18 @@
|
||||
<div class="row muted">{fact}</div>
|
||||
{/each}
|
||||
|
||||
{#if entry.note}
|
||||
<p class="note">{entry.note}</p>
|
||||
{/if}
|
||||
|
||||
{#if entry.tags.length}
|
||||
<div class="genres">
|
||||
{#each entry.tags as tag (tag)}
|
||||
<span class="player-tag"><Icon icon={tagIcon(tag)} width="13" />{tag}</span>
|
||||
{/each}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{#if entry.genres.length}
|
||||
<div class="genres">
|
||||
{#each entry.genres as genre, index (genre)}
|
||||
@@ -162,6 +175,20 @@
|
||||
gap: 0.3rem;
|
||||
}
|
||||
|
||||
.note {
|
||||
margin: 0;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.player-tag {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 0.25rem;
|
||||
padding: 0.05rem 0.45rem;
|
||||
border: 1px solid color-mix(in srgb, var(--foreground) 25%, transparent);
|
||||
font-size: 0.75rem;
|
||||
}
|
||||
|
||||
.dates {
|
||||
display: grid;
|
||||
grid-template-columns: auto 1fr;
|
||||
|
||||
Reference in new issue
Block a user