hopefully final commit

This commit is contained in:
2024-09-15 06:54:27 -04:00
parent 3794e30158
commit 643ad6e3e2
4 changed files with 17 additions and 18 deletions

BIN
src.zip

Binary file not shown.

View File

@@ -13,8 +13,7 @@
</script> </script>
<table class="table my-0" id="dataTable"> <table>
<thead>
<tr> <tr>
<th>Name</th> <th>Name</th>
<th>Ingredients</th> <th>Ingredients</th>
@@ -22,7 +21,6 @@
<th>Rating</th> <th>Rating</th>
<th></th> <th></th>
</tr> </tr>
</thead>
<tbody> <tbody>
{#if recipes} {#if recipes}
{#each recipes as recipe} {#each recipes as recipe}
@@ -34,10 +32,11 @@
<style> <style>
table { table {
width: 90%; width: 100%;
margin: auto; margin: auto;
background-color: var(--bs-dark-rgb); background-color: #141618;
border-radius: 10px; border-radius: 10px;
max-height: 500px;
} }
th { th {
@@ -48,6 +47,6 @@
} }
tr:nth-child(odd) { tr:nth-child(odd) {
background-color: var(--bs-dark-rgb); background-color: #1c1c22;
} }
</style> </style>

View File

@@ -14,7 +14,7 @@
<td>{data.name}</td> <td>{data.name}</td>
<td>{data.ingredients.length || 0}</td> <td>{data.ingredients.length || 0}</td>
<td>{data.instructions.length || 0}</td> <td>{data.instructions.length || 0}</td>
<td>{Math.round(data.rating/((data.ratingCount == 0 ) ? data.ratingCount++ : data.ratingCount))} / 5</td> <td>{Math.round(data.rating/((data.ratingCount == 0 ) ? 1 : data.ratingCount))} / 5</td>
<td> <td>
<button on:click={openRecipe} class="btn btn-primary">Open</button> <button on:click={openRecipe} class="btn btn-primary">Open</button>
</td> </td>

View File

@@ -79,9 +79,9 @@
</div> </div>
</section> </section>
<section class="py-5 mt-5"> <section class="py-5 mt-5">
<div class="container py-5" style="padding: 48px 12px;padding-top: 48px;"> <div class="container" style="padding: 25px 12px;">
<div class="row mb-5" style="height: 200px;"> <div class="row mb-5" >
<div class="col-md-8 col-xl-6 text-center mx-auto" style="height: 200px;"> <div class=" text-center">
{ #if $page.data.authInfo } { #if $page.data.authInfo }
<h2 class="fw-bold" style="font-size: 60px;"><a href="/survey"><strong>Decide Your Next Bite!</strong></a></h2> <h2 class="fw-bold" style="font-size: 60px;"><a href="/survey"><strong>Decide Your Next Bite!</strong></a></h2>
<RecipeTable /> <RecipeTable />
@@ -91,6 +91,6 @@
{ /if } { /if }
</div> </div>
</div> </div>
<p style=" margin: auto; text-align:center; font-size: 1.6rem;">Submitted for VTHacks-12</p> <p style="margin: auto; text-align:center; font-size: 1.6rem;">Submitted for VTHacks-12</p>
</div> </div>
</section> </section>