Add other UI elements
This commit is contained in:
parent
bffce2be40
commit
6d40444de0
2 changed files with 119 additions and 20 deletions
|
@ -48,6 +48,7 @@
|
|||
</svelte:fragment>
|
||||
<svelte:fragment slot="sidebarLeft">
|
||||
<AppRail>
|
||||
|
||||
<AppRailTile bind:group={currentTile} name="tile-1" value={0} title="tile-1">
|
||||
<svelte:fragment slot="lead">
|
||||
<div class="flex justify-center">
|
||||
|
@ -58,6 +59,7 @@
|
|||
</svelte:fragment>
|
||||
<span>Quizzes</span>
|
||||
</AppRailTile>
|
||||
|
||||
<AppRailTile bind:group={currentTile} name="tile-2" value={1} title="tile-2">
|
||||
<svelte:fragment slot="lead">
|
||||
<div class="flex justify-center">
|
||||
|
@ -69,8 +71,31 @@
|
|||
<span>Notes</span>
|
||||
</AppRailTile>
|
||||
|
||||
<AppRailTile bind:group={currentTile} name="groups" value={2} title="Groups">
|
||||
<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="M18 18.72a9.094 9.094 0 003.741-.479 3 3 0 00-4.682-2.72m.94 3.198l.001.031c0 .225-.012.447-.037.666A11.944 11.944 0 0112 21c-2.17 0-4.207-.576-5.963-1.584A6.062 6.062 0 016 18.719m12 0a5.971 5.971 0 00-.941-3.197m0 0A5.995 5.995 0 0012 12.75a5.995 5.995 0 00-5.058 2.772m0 0a3 3 0 00-4.681 2.72 8.986 8.986 0 003.74.477m.94-3.197a5.971 5.971 0 00-.94 3.197M15 6.75a3 3 0 11-6 0 3 3 0 016 0zm6 3a2.25 2.25 0 11-4.5 0 2.25 2.25 0 014.5 0zm-13.5 0a2.25 2.25 0 11-4.5 0 2.25 2.25 0 014.5 0z" />
|
||||
</svg>
|
||||
</div>
|
||||
</svelte:fragment>
|
||||
<span>Groups</span>
|
||||
</AppRailTile>
|
||||
|
||||
<AppRailTile bind:group={currentTile} name="groups" 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">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" d="M9.594 3.94c.09-.542.56-.94 1.11-.94h2.593c.55 0 1.02.398 1.11.94l.213 1.281c.063.374.313.686.645.87.074.04.147.083.22.127.324.196.72.257 1.075.124l1.217-.456a1.125 1.125 0 011.37.49l1.296 2.247a1.125 1.125 0 01-.26 1.431l-1.003.827c-.293.24-.438.613-.431.992a6.759 6.759 0 010 .255c-.007.378.138.75.43.99l1.005.828c.424.35.534.954.26 1.43l-1.298 2.247a1.125 1.125 0 01-1.369.491l-1.217-.456c-.355-.133-.75-.072-1.076.124a6.57 6.57 0 01-.22.128c-.331.183-.581.495-.644.869l-.213 1.28c-.09.543-.56.941-1.11.941h-2.594c-.55 0-1.02-.398-1.11-.94l-.213-1.281c-.062-.374-.312-.686-.644-.87a6.52 6.52 0 01-.22-.127c-.325-.196-.72-.257-1.076-.124l-1.217.456a1.125 1.125 0 01-1.369-.49l-1.297-2.247a1.125 1.125 0 01.26-1.431l1.004-.827c.292-.24.437-.613.43-.992a6.932 6.932 0 010-.255c.007-.378-.138-.75-.43-.99l-1.004-.828a1.125 1.125 0 01-.26-1.43l1.297-2.247a1.125 1.125 0 011.37-.491l1.216.456c.356.133.751.072 1.076-.124.072-.044.146-.087.22-.128.332-.183.582-.495.644-.869l.214-1.281z" />
|
||||
<path stroke-linecap="round" stroke-linejoin="round" d="M15 12a3 3 0 11-6 0 3 3 0 016 0z" />
|
||||
</svg>
|
||||
</div>
|
||||
</svelte:fragment>
|
||||
<span>Settings</span>
|
||||
</AppRailTile>
|
||||
|
||||
<svelte:fragment slot="trail">
|
||||
<AppRailAnchor href="/" target="_blank" title="Account">
|
||||
<AppRailAnchor href="/" target="_blank" title="Exit">
|
||||
<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="M5.636 5.636a9 9 0 1012.728 0M12 3v9" />
|
||||
|
|
|
@ -1,23 +1,97 @@
|
|||
<!-- YOU CAN DELETE EVERYTHING IN THIS PAGE -->
|
||||
|
||||
<div class="container h-full mx-auto flex justify-center items-center">
|
||||
<div class="space-y-10 text-center flex flex-col items-center">
|
||||
<h2 class="h2">Welcome to Skeleton.</h2>
|
||||
<div class="flex justify-center space-x-2">
|
||||
<a
|
||||
class="btn variant-filled"
|
||||
href="https://skeleton.dev/"
|
||||
target="_blank"
|
||||
rel="noreferrer"
|
||||
>
|
||||
Launch Documentation
|
||||
</a>
|
||||
<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>
|
||||
</header>
|
||||
|
||||
<hr class="opacity-50" />
|
||||
|
||||
<p class="p-4">
|
||||
Per intensità di corrente elettrica si intende
|
||||
</p>
|
||||
|
||||
<form id="question1">
|
||||
<div class="space-y-2 p-4">
|
||||
<label class="flex items-center space-x-2">
|
||||
<input class="radio" type="radio" checked name="radio-direct" value="1" />
|
||||
<p>La quantità di carica che scorre in un circuito per unità di tempo</p>
|
||||
</label>
|
||||
<label class="flex items-center space-x-2">
|
||||
<input class="radio" type="radio" name="radio-direct" value="2" />
|
||||
<p>La differenza di potenziale elettrico</p>
|
||||
</label>
|
||||
<label class="flex items-center space-x-2">
|
||||
<input class="radio" type="radio" name="radio-direct" value="3" />
|
||||
<p>La quantità di carica elettrica</p>
|
||||
</label>
|
||||
<label class="flex items-center space-x-2">
|
||||
<input class="radio" type="radio" name="radio-direct" value="3" />
|
||||
<p>L'accelerazione a cui sono sottoposti gli elettroni all'interno del circuito</p>
|
||||
</label>
|
||||
</div>
|
||||
<div class="space-y-2">
|
||||
<p>Try editing the following:</p>
|
||||
<p><code class="code">/src/routes/+layout.svelte</code></p>
|
||||
<p><code class="code">/src/routes/+page.svelte</code></p>
|
||||
</form>
|
||||
<hr class="opacity-50" />
|
||||
<footer class="p-3 flex justify-start items-center space-x-4">
|
||||
<div class="flex-auto flex gap-1">
|
||||
<span class="badge chip variant-filled-tertiary">#foo</span>
|
||||
<span class="badge variant-filled-tertiary">#bar</span>
|
||||
<span class="badge variant-filled-tertiary">#biz</span>
|
||||
</div>
|
||||
<div class="flex-auto flex justify-end">
|
||||
<small>Created on {new Date().toLocaleDateString()}</small>
|
||||
</div>
|
||||
|
||||
</footer>
|
||||
</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>
|
||||
|
||||
<hr class="opacity-50" />
|
||||
|
||||
<p class="p-4">
|
||||
Affinché in un circuito possa circolare corrente continua, il generatore di tensione
|
||||
</p>
|
||||
<form id="question_2">
|
||||
<div class="space-y-2 p-4">
|
||||
<label class="flex items-center space-x-2">
|
||||
<input class="radio" type="radio" checked name="radio-direct" value="1" />
|
||||
<p>Fornisce una potenza pari a quella dissipata per effetto Joule</p>
|
||||
</label>
|
||||
<label class="flex items-center space-x-2">
|
||||
<input class="radio" type="radio" name="radio-direct" value="2" />
|
||||
<p>Fornisce una potenza minore a quella dissipata per effetto Joule</p>
|
||||
</label>
|
||||
<label class="flex items-center space-x-2">
|
||||
<input class="radio" type="radio" name="radio-direct" value="3" />
|
||||
<p>Rallenta le cariche elettriche</p>
|
||||
</label>
|
||||
<label class="flex items-center space-x-2">
|
||||
<input class="radio" type="radio" name="radio-direct" value="3" />
|
||||
<p>Dev'essere spento</p>
|
||||
</label>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<hr class="opacity-50" />
|
||||
|
||||
<footer class="p-3 flex justify-start items-center space-x-4">
|
||||
<div class="flex-auto flex gap-1">
|
||||
<span class="badge variant-filled-tertiary">#foo</span>
|
||||
<span class="badge variant-filled-tertiary">#bar</span>
|
||||
<span class="badge variant-filled-tertiary">#biz</span>
|
||||
</div>
|
||||
<div class="flex-auto flex justify-end">
|
||||
<small>Created on {new Date().toLocaleDateString()}</small>
|
||||
</div>
|
||||
|
||||
</footer>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
Loading…
Reference in a new issue