mirror of
https://github.com/BradNut/boredgame
synced 2025-09-08 17:40:22 +00:00
Moving description to section
This commit is contained in:
parent
d21729e3a2
commit
05f29b2775
1 changed files with 9 additions and 7 deletions
|
|
@ -21,13 +21,6 @@
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="description">
|
<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>
|
<div>
|
||||||
<p>Price: {game?.price}</p>
|
<p>Price: {game?.price}</p>
|
||||||
<p>Year Published: {game?.year_published}</p>
|
<p>Year Published: {game?.year_published}</p>
|
||||||
|
|
@ -38,6 +31,15 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</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">
|
<style lang="scss">
|
||||||
h2 {
|
h2 {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue