This repository has been archived by the owner on May 28, 2024. It is now read-only.
forked from starboardcoop/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 #35 from pvdthings/dev
v0.11.0
- Loading branch information
Showing
15 changed files
with
256 additions
and
139 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,9 +1,7 @@ | ||
<script context="module"> | ||
export { default as Button } from "./foundation/Button.svelte"; | ||
export { default as Column } from "./foundation/Column.svelte"; | ||
export { default as Link } from "./foundation/Link.svelte"; | ||
export { default as Row } from "./foundation/Row.svelte"; | ||
export { default as Text } from "./foundation/Text.svelte"; | ||
export { default as TextInput } from "./foundation/TextInput.svelte"; | ||
export { default as Title } from "./foundation/Title.svelte"; | ||
</script> |
This file was deleted.
Oops, something went wrong.
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.
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 |
---|---|---|
@@ -0,0 +1,49 @@ | ||
<script lang="ts"> | ||
import Button from "$lib/foundation/Button.svelte"; | ||
import { ButtonTheme } from "$lib/foundation/button"; | ||
import { showBorrowModal } from "./borrowModalStore"; | ||
import CloseIcon from "$lib/icons/x-mark.svg"; | ||
import { onDestroy } from "svelte"; | ||
import { t } from "$lib/language/translate"; | ||
let dialog: HTMLDialogElement; | ||
const unsubscribe = showBorrowModal.subscribe((value) => { | ||
if (value) dialog.showModal(); | ||
}); | ||
const closeModal = () => showBorrowModal.set(false); | ||
const learnMore = () => { | ||
closeModal(); | ||
window.open("https://www.pvdthings.coop/membership", '_blank').focus(); | ||
}; | ||
onDestroy(unsubscribe); | ||
</script> | ||
|
||
<dialog bind:this={dialog} id="borrow-modal" class="modal modal-bottom sm:modal-middle"> | ||
<form method="dialog" class="modal-box"> | ||
<button class="btn btn-circle btn-ghost outline-none absolute right-2 top-2" on:click={() => showBorrowModal.set(false)}> | ||
<img src={CloseIcon} alt="Close" height="24" width="24" /> | ||
</button> | ||
<h3 class="font-bold text-lg">{$t('How to Borrow')}</h3> | ||
<ol class="py-4"> | ||
<li class="mb-2">1. {$t('How to Borrow.Step1')}</li> | ||
<li class="mb-2">2. {$t('How to Borrow.Step2')}</li> | ||
</ol> | ||
<h4 class="font-bold">{$t('Hours')}</h4> | ||
<ul class="pt-1 pb-6"> | ||
<li>{$t('Wednesday')} 6PM - 8PM</li> | ||
<li>{$t('Saturday')} 11AM - 2PM</li> | ||
</ul> | ||
<div class="modal-bottom flex flex-row justify-between"> | ||
<Button on:click={learnMore}> | ||
{$t('Learn More')} | ||
</Button> | ||
<Button theme={ButtonTheme.primary} on:click={closeModal}> | ||
{$t('OK')} | ||
</Button> | ||
</div> | ||
</form> | ||
</dialog> |
Oops, something went wrong.