feat: fixed navigation section

This commit is contained in:
afn 2022-11-25 20:58:50 -05:00
parent 8ad0a3dfd1
commit 4601783dfe
4 changed files with 31 additions and 17 deletions

View File

@ -31,7 +31,7 @@ body {
margin-inline: auto; margin-inline: auto;
width: min(90%, 95rem); width: min(90%, 95rem);
margin-top: 4rem; margin-top: 4rem;
padding-bottom: 2rem; padding-bottom: 6rem;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
justify-content: space-between; justify-content: space-between;
@ -53,7 +53,7 @@ body {
--grey-three: #373e4d; --grey-three: #373e4d;
--grey-four: #182244; --grey-four: #182244;
--grey-five: hsl(208, 30%, 75%); --grey-five: hsl(208, 30%, 75%);
--grey-six: hsla(220, 12%, 15%, 0.655); --grey-six: #202126;
--grey-seven: #43698657; --grey-seven: #43698657;
--bezier-one: cubic-bezier(0.25, 0.46, 0.45, 0.94); --bezier-one: cubic-bezier(0.25, 0.46, 0.45, 0.94);
} }

View File

@ -36,7 +36,7 @@
font-weight: 600; font-weight: 600;
border: none; border: none;
border-radius: 12px; border-radius: 12px;
padding: 1rem 1.75rem; padding: 0.85rem 1.5rem;
display: block; display: block;
background-color: var(--grey-two); background-color: var(--grey-two);
transition: transform 0.4s var(--bezier-one), filter 0.4s var(--bezier-one); transition: transform 0.4s var(--bezier-one), filter 0.4s var(--bezier-one);

View File

@ -33,7 +33,7 @@
div { div {
color: var(--white); color: var(--white);
text-decoration: none; text-decoration: none;
padding: 1.5rem; padding: 1.25rem;
width: 100%; width: 100%;
transition: all 0.3s var(--bezier-one); transition: all 0.3s var(--bezier-one);
border-radius: 8px; border-radius: 8px;
@ -43,6 +43,7 @@
border: 1px solid var(--grey-three); border: 1px solid var(--grey-three);
cursor: pointer; cursor: pointer;
align-items: center; align-items: center;
overflow: hidden;
} }
@ -82,8 +83,8 @@
img { img {
border-radius: 8px; border-radius: 8px;
height: 150px; height: 125px;
width: 150px; width: 125px;
background-color: var(--grey-two); background-color: var(--grey-two);
transition: transform 0.4s var(--bezier-one); transition: transform 0.4s var(--bezier-one);
user-select: none; user-select: none;

View File

@ -83,9 +83,13 @@
<div class="top-container"> <div class="top-container">
<h3>ReVanced</h3> <h3>ReVanced</h3>
<h1>{currentPage >= maxPages ? 'Review selected logos' : 'Select logos'}</h1> <h1>{currentPage >= maxPages ? 'Review selected logos' : 'Select logos'}</h1>
<h2>{selected.length}/{logos.length} selected · Page {Number(currentPage) + 1}/{maxPages+1}</h2> <h2>
{selected.length}/{logos.length} selected · Page {Number(currentPage) + 1}/{maxPages + 1}
</h2>
<div class="top-custom-button-container"> <div class="top-custom-button-container">
<a href="https://hhh.com" target="_blank" rel="noreferrer"><button>Help</button></a> <a href="https://hhh.com" target="_blank" rel="noreferrer"
><button>How does this work?</button></a
>
<button on:click={clearLogos}>Clear All</button> <button on:click={clearLogos}>Clear All</button>
</div> </div>
</div> </div>
@ -123,11 +127,12 @@
{/each} {/each}
{/if} {/if}
</div> </div>
</div>
<div class="buttons-container"> <div class="buttons-container">
<Button on:click={previousPage} unclickable={currentPage <= 0}>Previous</Button> <Button on:click={previousPage} unclickable={currentPage <= 0}>Previous</Button>
<Button kind="primary" on:click={nextPage} unclickable={currentPage >= maxPages}>{currentPage >= maxPages ? 'Submit' : 'Next'}</Button> <Button kind="primary" on:click={nextPage} unclickable={currentPage >= maxPages}
</div> >{currentPage >= maxPages ? 'Submit' : 'Next'}</Button
>
</div> </div>
</main> </main>
@ -165,8 +170,17 @@
gap: 1rem; gap: 1rem;
justify-content: right; justify-content: right;
float: bottom; float: bottom;
width: 100%;
z-index: 999;
position: fixed;
bottom: 0;
right: 0;
background-color: var(--grey-six);
padding: 1rem 1.5rem;
border-top: 1px solid var(--grey-three);
} }
button { button {
background-color: transparent; background-color: transparent;
border: none; border: none;
@ -185,7 +199,7 @@
gap: 0.5rem; gap: 0.5rem;
margin-bottom: 2rem; margin-bottom: 2rem;
background-color: var(--accent-color); background-color: var(--accent-color);
padding: 2rem; padding: 1.75rem;
border-radius: 12px; border-radius: 12px;
} }
@ -199,9 +213,8 @@
h1 { h1 {
font-size: 1.75rem; font-size: 1.75rem;
} }
.options-grid { .options-grid {
grid-template-columns: repeat(auto-fill, minmax(175px, 1fr)); grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
} }
} }
</style> </style>