Add new quiz button and refine UI
This commit is contained in:
parent
931ba4ec68
commit
6e83b4323c
2 changed files with 265 additions and 210 deletions
|
@ -16,6 +16,13 @@
|
|||
<!-- App Bar -->
|
||||
<AppBar>
|
||||
<svelte:fragment slot="lead">
|
||||
<span class="mr-2">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" class="w-10 h-10">
|
||||
<path d="M11.7 2.805a.75.75 0 01.6 0A60.65 60.65 0 0122.83 8.72a.75.75 0 01-.231 1.337 49.949 49.949 0 00-9.902 3.912l-.003.002-.34.18a.75.75 0 01-.707 0A50.009 50.009 0 007.5 12.174v-.224c0-.131.067-.248.172-.311a54.614 54.614 0 014.653-2.52.75.75 0 00-.65-1.352 56.129 56.129 0 00-4.78 2.589 1.858 1.858 0 00-.859 1.228 49.803 49.803 0 00-4.634-1.527.75.75 0 01-.231-1.337A60.653 60.653 0 0111.7 2.805z" />
|
||||
<path d="M13.06 15.473a48.45 48.45 0 017.666-3.282c.134 1.414.22 2.843.255 4.285a.75.75 0 01-.46.71 47.878 47.878 0 00-8.105 4.342.75.75 0 01-.832 0 47.877 47.877 0 00-8.104-4.342.75.75 0 01-.461-.71c.035-1.442.121-2.87.255-4.286A48.4 48.4 0 016 13.18v1.27a1.5 1.5 0 00-.14 2.508c-.09.38-.222.753-.397 1.11.452.213.901.434 1.346.661a6.729 6.729 0 00.551-1.608 1.5 1.5 0 00.14-2.67v-.645a48.549 48.549 0 013.44 1.668 2.25 2.25 0 002.12 0z" />
|
||||
<path d="M4.462 19.462c.42-.419.753-.89 1-1.394.453.213.902.434 1.347.661a6.743 6.743 0 01-1.286 1.794.75.75 0 11-1.06-1.06z" />
|
||||
</svg>
|
||||
</span>
|
||||
<strong class="text-xl uppercase">Probo</strong>
|
||||
</svelte:fragment>
|
||||
<svelte:fragment slot="trail">
|
||||
|
@ -35,7 +42,7 @@
|
|||
</AppBar>
|
||||
</svelte:fragment>
|
||||
<svelte:fragment slot="sidebarLeft">
|
||||
<AppRail>
|
||||
<AppRail background="bg-surface-50-900-token">
|
||||
|
||||
<AppRailTile bind:group={currentTile} name="tile-1" value={0} title="tile-1">
|
||||
<svelte:fragment slot="lead">
|
||||
|
@ -70,7 +77,19 @@
|
|||
<span>Groups</span>
|
||||
</AppRailTile>
|
||||
|
||||
<AppRailTile bind:group={currentTile} name="groups" value={3} title="Settings">
|
||||
<AppRailTile bind:group={currentTile} name="tags" value={4} title="Tags">
|
||||
<svelte:fragment slot="lead">
|
||||
<div class="flex justify-center">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-6 h-6">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" d="M9.568 3H5.25A2.25 2.25 0 003 5.25v4.318c0 .597.237 1.17.659 1.591l9.581 9.581c.699.699 1.78.872 2.607.33a18.095 18.095 0 005.223-5.223c.542-.827.369-1.908-.33-2.607L11.16 3.66A2.25 2.25 0 009.568 3z" />
|
||||
<path stroke-linecap="round" stroke-linejoin="round" d="M6 6h.008v.008H6V6z" />
|
||||
</svg>
|
||||
</div>
|
||||
</svelte:fragment>
|
||||
<span>Tags</span>
|
||||
</AppRailTile>
|
||||
|
||||
<AppRailTile bind:group={currentTile} name="settings" value={3} title="Settings">
|
||||
<svelte:fragment slot="lead">
|
||||
<div class="flex justify-center">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-6 h-6">
|
||||
|
|
|
@ -2,9 +2,31 @@
|
|||
|
||||
<div class="h-full flex flex-col">
|
||||
|
||||
<div class="card p-4 m-4 font-heading-token">
|
||||
<header class="p-3 flex justify-end">
|
||||
<span class="badge variant-filled"><h1 class="text-xs">1ad25d0000</h1></span>
|
||||
<button type="button" class="btn sticky top-0 mt-4 mx-4 variant-ghost-secondary">
|
||||
<span><svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-6 h-6">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" d="M12 9v6m3-3H9m12 0a9 9 0 11-18 0 9 9 0 0118 0z" />
|
||||
</svg>
|
||||
</span>
|
||||
<span>Add a new quiz</span>
|
||||
</button>
|
||||
|
||||
<div class="card p-4 my-3 mx-4 font-heading-token">
|
||||
<header class="p-3">
|
||||
<div class="flex justify-between">
|
||||
<div>
|
||||
<button type="button" class="btn-icon variant-filled-primary">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-4 h-4">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" d="M16.862 4.487l1.687-1.688a1.875 1.875 0 112.652 2.652L10.582 16.07a4.5 4.5 0 01-1.897 1.13L6 18l.8-2.685a4.5 4.5 0 011.13-1.897l8.932-8.931zm0 0L19.5 7.125M18 14v4.75A2.25 2.25 0 0115.75 21H5.25A2.25 2.25 0 013 18.75V8.25A2.25 2.25 0 015.25 6H10" />
|
||||
</svg>
|
||||
</button>
|
||||
<button type="button" class="btn-icon variant-filled-error">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-4 h-4">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" d="M14.74 9l-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 01-2.244 2.077H8.084a2.25 2.25 0 01-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 00-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 013.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 00-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 00-7.5 0" />
|
||||
</svg>
|
||||
</button>
|
||||
</div>
|
||||
<span class="badge variant-ghost-secondary"><h1 class="text-xs">1ad25d0000…</h1></span>
|
||||
</div>
|
||||
</header>
|
||||
<hr class="opacity-50" />
|
||||
<p class="p-4">
|
||||
|
@ -44,8 +66,22 @@
|
|||
</div>
|
||||
|
||||
<div class="card p-4 m-4 font-heading-token">
|
||||
<header class="p-3 flex justify-end">
|
||||
<span class="badge variant-filled"><h1 class="text-xs">1ad25d0000</h1></span>
|
||||
<header class="p-3">
|
||||
<div class="flex justify-between">
|
||||
<div>
|
||||
<button type="button" class="btn-icon variant-filled-primary">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-4 h-4">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" d="M16.862 4.487l1.687-1.688a1.875 1.875 0 112.652 2.652L10.582 16.07a4.5 4.5 0 01-1.897 1.13L6 18l.8-2.685a4.5 4.5 0 011.13-1.897l8.932-8.931zm0 0L19.5 7.125M18 14v4.75A2.25 2.25 0 0115.75 21H5.25A2.25 2.25 0 013 18.75V8.25A2.25 2.25 0 015.25 6H10" />
|
||||
</svg>
|
||||
</button>
|
||||
<button type="button" class="btn-icon variant-filled-error">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-4 h-4">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" d="M14.74 9l-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 01-2.244 2.077H8.084a2.25 2.25 0 01-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 00-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 013.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 00-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 00-7.5 0" />
|
||||
</svg>
|
||||
</button>
|
||||
</div>
|
||||
<span class="badge variant-ghost-secondary"><h1 class="text-xs">1ad25d0000…</h1></span>
|
||||
</div>
|
||||
</header>
|
||||
<hr class="opacity-50" />
|
||||
<p class="p-4">
|
||||
|
@ -89,7 +125,7 @@
|
|||
|
||||
<div class="card p-4 m-4 font-heading-token">
|
||||
<header class="p-3 flex justify-end">
|
||||
<span class="badge variant-filled"><h1 class="text-xs">1ad25d0000</h1></span>
|
||||
<span class="badge variant-ghost-secondary"><h1 class="text-xs">1ad25d0000…</h1></span>
|
||||
</header>
|
||||
<hr class="opacity-50" />
|
||||
<p class="p-4">
|
||||
|
|
Loading…
Reference in a new issue