Skip to content

Commit

Permalink
Merge pull request #22 from uwcirg/24-06-18-changes
Browse files Browse the repository at this point in the history
24 06 18 changes
  • Loading branch information
daniellrgn authored Jun 28, 2024
2 parents c5515d1 + 0d094d4 commit 2a47f35
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 24 deletions.
4 changes: 2 additions & 2 deletions src/lib/CopyButton.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@
copyNotice = 'Copied!';
setTimeout(() => {
copyNotice = copyNoticePrev;
}, 1500);
}, 8000);
}
</script>
{#if copyNotice}
<Button size="lg" color="success" class="p-3" disabled>
<Button size="lg" color="secondary" class="p-3" disabled>
<Icon name="clipboard" />
{copyNotice}
</Button>
Expand Down
30 changes: 14 additions & 16 deletions src/lib/HealthLinkLTT.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -138,21 +138,6 @@
</Alert>
{/if}
<h3>Share Report</h3>
{#await href then href}
<p>Here is the link to your Report that you can copy and share with others:</p>
<Row class="justify-content-center mt-2">
<Col xs="auto" class="mb-2">
<CopyButton href={href} />
</Col>
</Row>
<Row class="px-3 my-2">
<Card style="max-width: 100%">
<CardBody class="p-2">
<span><em>{href}</em></span>
</CardBody>
</Card>
</Row>
{/await}
<p>Select the way you want to share your Report to see how:</p>
<Row class="d-flex justify-content-center">
<Button
Expand Down Expand Up @@ -183,7 +168,8 @@
<strong id="qr-label">QR Code</strong>
</Button>
</Row>
<Row class="pt-2 pb-3" style="border-bottom: 2px solid rgb(190, 190, 190);">
{#if instructions === 'email' || instructions === 'text' || instructions === 'qr'}
<Row class="pt-2 pb-3">
{#if instructions === 'email'}
<Card style="max-width: 100%">
<CardBody class="p-3">
Expand Down Expand Up @@ -283,6 +269,18 @@
</Card>
{/if}
</Row>
{/if}
{#await href then href}
<Row class="mt-1">
<p>Here is the link to your Report that you can copy and share with others:</p>
</Row>
<Row class="justify-content-center">
<Col xs="auto" class="mb-2">
<CopyButton href={href} />
</Col>
</Row>
{/await}

<Row style="margin-bottom: 10px">
<h3 class="mt-4">Frequently Asked Questions</h3>
</Row>
Expand Down
12 changes: 6 additions & 6 deletions static/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ table.responses {
}
.btn-primary {
background-image: none !important;
background-color: var(--secondary-color) !important;
background-color: var(--primary-color) !important;
color: var(--btn-bg-color) !important;
border: 0 !important;
transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,border 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms !important;
Expand All @@ -310,8 +310,8 @@ table.responses {
&:hover, &:active {
background-image: none !important;
color: var(--btn-bg-color) !important;
background-color: var(--highlight-dark-color) !important;
border-color: var(--highlight-dark-color) !important;
background-color: var(--primary-color-light) !important;
border-color: var(--primary-color-light) !important;
outline: none !important;
i {
color: var(--btn-bg-color) !important;
Expand All @@ -320,7 +320,7 @@ table.responses {
}
.btn-secondary {
background-image: none !important;
background-color: var(--primary-color) !important;
background-color: var(--secondary-color) !important;
color: var(--btn-bg-color) !important;
border: 0 !important;
transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,border 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms !important;
Expand All @@ -331,8 +331,8 @@ table.responses {
&:hover, &:active {
background-image: none !important;
color: var(--btn-bg-color) !important;
background-color: var(--primary-color-light) !important;
border-color: var(--primary-color-light) !important;
background-color: var(--secondary-color-dark) !important;
border-color: var(--secondary-color-dark) !important;
outline: none !important;
i {
color: var(--btn-bg-color) !important;
Expand Down

0 comments on commit 2a47f35

Please sign in to comment.