Skip to content

Commit

Permalink
Merge branch 'main' into 26-add-user-store
Browse files Browse the repository at this point in the history
  • Loading branch information
MaHaWo committed Aug 30, 2024
2 parents 1ec12b5 + 4e11711 commit dd3ead5
Show file tree
Hide file tree
Showing 9 changed files with 435 additions and 231 deletions.
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,5 @@ vite.config.ts.timestamp-*
# packaging
package-lock.json


# extension data
# vscode extensions
.VSCodeCounter
25 changes: 25 additions & 0 deletions src/lib/components/AlertMessage.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<script>
import { Alert, Button } from 'flowbite-svelte';
import { EyeSolid, InfoCircleSolid } from 'flowbite-svelte-icons';
export let message = '';
export let title = '';
export let infotitle = '';
export let lastpage = '';
export let infopage = '';
export let onclick = () => {};
</script>

<Alert>
<div class="flex items-center gap-3">
<InfoCircleSolid class="h-5 w-5" />
<span class="text-lg font-medium"> {title} </span>
</div>
<p class="mb-4 mt-2">{message}</p>
<div class="flex gap-2">
{#if infopage != ''}
<Button size="md" href={infopage}><EyeSolid class="me-2 h-4 w-4" />{infotitle}</Button>
{/if}
<Button size="md" outline href={lastpage} on:click={onclick}>Verstanden</Button>
</div>
</Alert>
Loading

0 comments on commit dd3ead5

Please sign in to comment.