Moving description to section

This commit is contained in:
Bradley Shellnut 2022-07-10 23:54:58 -07:00 committed by GitHub
parent d21729e3a2
commit 05f29b2775
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -21,13 +21,6 @@
</a>
</div>
<div class="description">
{#if seeMore}
{@html game?.description}
<button on:click={() => (seeMore = !seeMore)}>See Less -</button>
{:else}
{@html game?.description_preview}
<button on:click={() => (seeMore = !seeMore)}>See More +</button>
{/if}
<div>
<p>Price: {game?.price}</p>
<p>Year Published: {game?.year_published}</p>
@ -38,6 +31,15 @@
</div>
</div>
</section>
<section>
{#if seeMore}
{@html game?.description}
<button on:click={() => (seeMore = !seeMore)}>See Less -</button>
{:else}
{@html game?.description_preview}
<button on:click={() => (seeMore = !seeMore)}>See More +</button>
{/if}
</section>
<style lang="scss">
h2 {