mirror of
https://github.com/vcscsvcscs/GenerationsHeritage.git
synced 2025-08-14 06:49:05 +02:00
Add person panel
This commit is contained in:
46
frontend/src/lib/family_tree/PersonPanel.svelte
Normal file
46
frontend/src/lib/family_tree/PersonPanel.svelte
Normal file
@@ -0,0 +1,46 @@
|
||||
<script>
|
||||
export let showPanel = true;
|
||||
export let data = {
|
||||
ID: '',
|
||||
Lastname: 'Nem',
|
||||
Firstname: 'Ismert',
|
||||
Middlename: '',
|
||||
ProfilePicture: 'https://www.flaticon.com/free-icons/user'
|
||||
};
|
||||
let dialog; // HTMLDialogElement
|
||||
|
||||
$: if (dialog && showPanel) dialog.showModal();
|
||||
</script>
|
||||
|
||||
<dialog bind:this={dialog} class="modal bg-base-300">
|
||||
<div class="modal-box w-11/12 max-w-5xl">
|
||||
<form method="dialog">
|
||||
<button class="btn btn-sm btn-circle btn-ghost absolute right-2 top-2">✕</button>
|
||||
</form>
|
||||
|
||||
<div class="hero min-h-screen bg-base-200">
|
||||
<div class="hero-content flex-col lg:flex-row">
|
||||
<div class="avatar max-w-sm rounded-lg shadow-2xl">
|
||||
<figure class="w-24 mask mask-squircle">
|
||||
<img src={data.ProfilePicture} alt="Picture of {data.Lastname} {data.Firstname}" />
|
||||
</figure>
|
||||
</div>
|
||||
<div>
|
||||
<h1 class="text-5xl font-bold">
|
||||
{data.Firstname}
|
||||
{data.Middlename}
|
||||
{data.Lastname}
|
||||
</h1>
|
||||
<p class="py-6">
|
||||
Provident cupiditate voluptatem et in. Quaerat fugiat ut assumenda excepturi
|
||||
exercitationem quasi. In deleniti eaque aut repudiandae et a id nisi.
|
||||
</p>
|
||||
<button class="btn btn-primary">Get Started</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<form method="dialog" class="modal-backdrop">
|
||||
<button>close</button>
|
||||
</form>
|
||||
</div>
|
||||
</dialog>
|
Reference in New Issue
Block a user