Skip to content

Commit

Permalink
v0.0.6
Browse files Browse the repository at this point in the history
  • Loading branch information
CarcajadaArtificial committed Mar 24, 2024
1 parent 852999c commit 6496aaf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Changelog

## v0.0.5
## v0.0.6

- Added videogame and character profile pages.
- Fixed minor style errors.
11 changes: 6 additions & 5 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<title>Start.gg Data Viewer</title>
<script src="https://cdn.tailwindcss.com"></script>
<script src="//unpkg.com/alpinejs" defer></script>
<link href="/style/mermaid.css" rel="stylesheet" />
<link href="./style/mermaid.css" rel="stylesheet" />
</head>
<body x-data="{ urlParams: new URLSearchParams(window.location.search) }">
<div x-show="!urlParams.has('videogameId') && !urlParams.has('characterId')">
Expand Down Expand Up @@ -39,7 +39,7 @@ <h2 class="text-2xl text-slate-200 font-bold">Characters</h2>
>
<div class="p-8 bg-slate-800 flex flex-col gap-8">
<div class="flex gap-4">
<a href="/">
<a href="/startgg-data-viewer">
<svg
xmlns="http://www.w3.org/2000/svg"
class="icon icon-tabler icon-tabler-arrow-left"
Expand Down Expand Up @@ -75,7 +75,7 @@ <h3 class="text-2xl text-slate-200 font-bold">Images</h3>
<div class="flex flex-wrap gap-8">
<template x-for="imageObject in (await getMatchingVideogame()).images">
<div class="p-4 flex-1 bg-slate-200 rounded-md flex flex-col">
<img class="pb-4 "x-bind:src="imageObject.url" alt="">
<img class="pb-4" x-bind:src="imageObject.url" alt="" />
<template x-for="(imgValue, imgIndex) in imageObject">
<div class="flex gap-4" x-show="!['url'].includes(imgIndex)">
<span class="text-lg font-bold" x-text="imgIndex"></span>
Expand Down Expand Up @@ -103,7 +103,7 @@ <h3 class="text-2xl text-slate-200 font-bold">Images</h3>
>
<div class="p-8 bg-slate-800 flex flex-col gap-8">
<div class="flex gap-4">
<a href="/">
<a href="/startgg-data-viewer">
<svg
xmlns="http://www.w3.org/2000/svg"
class="icon icon-tabler icon-tabler-arrow-left"
Expand Down Expand Up @@ -139,7 +139,7 @@ <h3 class="text-2xl text-slate-200 font-bold">Images</h3>
<div class="flex flex-wrap gap-8">
<template x-for="imageObject in (await getMatchingCharacter()).images">
<div class="p-4 flex-1 bg-slate-200 rounded-md flex flex-col">
<img class="pb-4 "x-bind:src="imageObject.url" alt="">
<img class="pb-4" x-bind:src="imageObject.url" alt="" />
<template x-for="(imgValue, imgIndex) in imageObject">
<div class="flex gap-4" x-show="!['url'].includes(imgIndex)">
<span class="text-lg font-bold" x-text="imgIndex"></span>
Expand All @@ -153,6 +153,7 @@ <h3 class="text-2xl text-slate-200 font-bold">Images</h3>
</div>
</div>
</body>

<script type="module">
import { Grid, html } from 'https://unpkg.com/gridjs?module';
const videogames = await (await fetch('./data/videogames.json')).json();
Expand Down

0 comments on commit 6496aaf

Please sign in to comment.