This repository has been archived by the owner on May 28, 2024. It is now read-only.
forked from zackkrida/things-app
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #211 from starboardcoop/v0.7
v0.7
- Loading branch information
Showing
17 changed files
with
171 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,9 @@ | ||
<script> | ||
export let hovers = true | ||
export let style = "h-auto w-auto" | ||
</script> | ||
|
||
<div class={style}> | ||
<div class:hovers class="h-full bg-white brutal overflow-hidden"> | ||
<div class="h-full bg-white brutal hovers-static overflow-hidden"> | ||
<slot /> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
<script lang="ts"> | ||
import { createEventDispatcher } from "svelte"; | ||
export let options = []; | ||
let chosenOption = options[0]; | ||
let dropdownHidden = true; | ||
const dispatch = createEventDispatcher(); | ||
const toggleDropdown = () => { | ||
dropdownHidden = !dropdownHidden; | ||
} | ||
const optionChosen = (option) => { | ||
chosenOption = option; | ||
toggleDropdown(); | ||
dispatch("chosen", option); | ||
} | ||
</script> | ||
|
||
<svelte:window on:click={() => dropdownHidden = true} /> | ||
|
||
<div class="relative h-11" on:click|stopPropagation={() => {}} on:keypress={() => {}}> | ||
<button on:click={toggleDropdown} class="{ dropdownHidden ? 'bg-indigo-100 hover:bg-indigo-50' : 'bg-primary' } px-3 py-1 h-full w-44 rounded brutal hovers font-bold font-display text-left outline-none"> | ||
<span class="mr-1"> | ||
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" class="inline"><polyline points="6 9 12 15 18 9"></polyline></svg> | ||
</span> | ||
<span>{chosenOption}</span> | ||
</button> | ||
<div class:dropdownHidden class="fixed top-0 left-0 w-full h-full overflow-y-scroll md:h-fit md:absolute md:top-14 bg-indigo-50 md:brutal md:hovers-static p-4 md:rounded-md flex flex-col gap-y-4 md:gap-y-2 z-50"> | ||
<div class="text-xl font-bold md:hidden">Choose a category:</div> | ||
{#each options as option} | ||
<button on:click={() => optionChosen(option)} class="text-2xl md:text-lg text-left active:underline hover:underline hover:underline-offset-2 hover:decoration-2">{option}</button> | ||
{/each} | ||
</div> | ||
</div> | ||
|
||
<style lang="postcss"> | ||
.dropdownHidden { | ||
@apply hidden; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
<script> | ||
export let src = ""; | ||
export let alt = ""; | ||
export let height = "40"; | ||
let className = ""; | ||
export { className as class }; | ||
</script> | ||
|
||
<img {src} {alt} class="w-full h-{height} object-contain" /> | ||
<img {src} {alt} class="object-contain {className}" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,7 +41,7 @@ | |
} | ||
div.smallauto { | ||
@apply text-xs; | ||
@apply text-sm; | ||
@apply lg:text-lg; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
export enum ButtonTheme { | ||
default, | ||
primary | ||
} | ||
|
||
export enum ButtonSize { | ||
normal, | ||
small | ||
} |
This file was deleted.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,22 @@ | ||
<script> | ||
import { Row, Title } from "$lib/Foundation.svelte"; | ||
export let title = null; | ||
</script> | ||
|
||
<header class="w-full p-4 flex flex-col space-y-8 justify-center bg-long-city bg-center bg-cover border-b-2 border-bg"> | ||
<header class="w-full p-4 flex flex-col space-y-8 justify-center"> | ||
<div class="grid grid-cols-3"> | ||
<div class="flex flex-row justify-start"> | ||
<div> | ||
<a href="https://pvdthings.coop" class="flex flex-row items-center"> | ||
<svg xmlns="http://www.w3.org/2000/svg" class="w-8 h-8 lg:w-12 lg:h-12" viewBox="0 0 24 24" stroke-width="2" stroke="#000000" fill="none" stroke-linecap="round" stroke-linejoin="round"> | ||
<svg xmlns="http://www.w3.org/2000/svg" class="w-8 h-8" viewBox="0 0 24 24" stroke-width="2" stroke="#000000" fill="none" stroke-linecap="round" stroke-linejoin="round"> | ||
<path stroke="none" d="M0 0h24v24H0z" fill="none"/> | ||
<polyline points="15 6 9 12 15 18" /> | ||
</svg> | ||
<div class="text-xl lg:text-2xl font-bold font-display hover:underline">BACK</div> | ||
<div class="text-xl font-bold font-display hover:underline">HOME</div> | ||
</a> | ||
</div> | ||
</div> | ||
<div class="flex flex-row justify-center"> | ||
<div class="flex flex-row justify-center content-center"> | ||
<a href="https://pvdthings.coop"> | ||
<img src="/PVD_Things_Logo_White.png" alt="PVD Things" class="mt-2 h-14 md:h-20 lg:h-24"/> | ||
<img src="/PVD_Things_Logo_White.png" alt="PVD Things" class="h-16 lg:h-20"/> | ||
</a> | ||
</div> | ||
<div class="flex flex-row justify-end"></div> | ||
</div> | ||
<Row center><slot /></Row> | ||
{#if title} | ||
<Row center><Title bold caps>{title}</Title></Row> | ||
{:else} | ||
<h1 hidden>PVD Things</h1> | ||
{/if} | ||
<h1 hidden>PVD Things</h1> | ||
</header> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.