Browse Source

Record Dialog UI

master
Jose Olarte III 1 month ago
parent
commit
d09a927d24
  1. 362
      home.html

362
home.html

@ -37,23 +37,23 @@
<h1 id="ViewHeading" class="text-4xl text-center font-light pt-4 mb-8">Time Safari</h1>
<!-- Tabs -->
<div class="text-center text-slate-500 border-b border-slate-300 mb-8">
<div class="hidden text-center text-slate-500 border-b border-slate-300 mb-8">
<ul class="flex flex-wrap justify-center gap-4 -mb-px">
<li>
<a href="#" class="inline-block py-3 rounded-t-lg border-b-2 border-transparent hover:text-slate-600 hover:border-slate-300">
<a href="#" class="inline-block py-3 rounded-t-lg border-b-2 active text-blue-600 border-blue-600 font-semibold">
Dashboard
</a>
</li>
<li>
<a href="#" class="inline-block py-3 rounded-t-lg border-b-2 border-transparent hover:text-slate-600 hover:border-slate-300">
Updates
</a>
</li>
<li>
<a href="#" class="inline-block py-3 rounded-t-lg border-b-2 active text-blue-600 border-blue-600 font-semibold">
Record
</a>
</li>
<!-- li>
<a href="#" class="inline-block py-3 rounded-t-lg border-b-2 border-transparent hover:text-slate-600 hover:border-slate-300">
Updates
</a>
</li -->
</ul>
</div>
@ -61,13 +61,30 @@
<div class="mb-8">
<!-- Record Quick-Action -->
<div class="mb-6">
<h2 class="text-xl font-bold mb-2">Record something given by:</h2>
<div class="grid grid-cols-5 gap-2">
<button type="button" class="col-span-3 text-center text-base uppercase bg-gradient-to-b from-blue-400 to-blue-700 shadow-[inset_0_-1px_0_0_rgba(0,0,0,0.5)] text-white px-2 py-3 rounded-md mb-2">Unnamed / Unknown</button>
<button type="button" class="col-span-2 text-center text-base uppercase bg-gradient-to-b from-blue-400 to-blue-700 shadow-[inset_0_-1px_0_0_rgba(0,0,0,0.5)] text-white px-2 py-3 rounded-md mb-2">Contact</button>
<div class="flex gap-2 items-center mb-2">
<h2 class="text-xl font-bold">Record something given by:</h2>
<button class="block ms-auto text-center text-white bg-gradient-to-b from-slate-400 to-slate-700 shadow-[inset_0_-1px_0_0_rgba(0,0,0,0.5)] p-2 rounded-full"><i class="block text-center fa-solid fa-lightbulb w-[1em]"></i></button>
</div>
<div class="grid grid-cols-2 gap-2">
<button id="btnShowRecord" type="button" class="text-center text-base uppercase bg-gradient-to-b from-blue-400 to-blue-700 shadow-[inset_0_-1px_0_0_rgba(0,0,0,0.5)] text-white px-3 py-2 rounded-lg">
<i class="fa-solid fa-user"></i>
Person
</button>
<button type="button" class="text-center text-base uppercase bg-gradient-to-b from-blue-400 to-blue-700 shadow-[inset_0_-1px_0_0_rgba(0,0,0,0.5)] text-white px-3 py-2 rounded-lg">
<i class="fa-solid fa-folder-open"></i>
Project
</button>
</div>
</div>
<!-- List -->
<div class="overflow-hidden mb-6">
<div class="flex gap-2 items-end mb-3">
<h2 class="text-xl font-bold">Latest Activity</h2>
<button class="block ms-auto text-center text-white bg-gradient-to-b from-slate-400 to-slate-700 shadow-[inset_0_-1px_0_0_rgba(0,0,0,0.5)] p-2 rounded-full"><i class="block text-center fa-solid fa-filter w-[1em] translate-y-[0.05em]"></i></button>
</div>
<!-- Dashboard Widgets -->
<div class="mb-6">
<div class="grid grid-flow-col auto-cols-fr gap-2">
@ -88,14 +105,6 @@
</div>
</div>
<!-- List -->
<div class="overflow-hidden my-6">
<div class="flex gap-2 items-center mb-3">
<h2 class="text-xl font-bold">Latest Activity</h2>
<button class="block text-center ml-auto text-sm text-white bg-gradient-to-b from-slate-400 to-slate-700 shadow-[inset_0_-1px_0_0_rgba(0,0,0,0.5)] px-3 py-1.5 rounded-md"><i class="fa-solid fa-filter fa-fw"></i></button>
<button class="block text-center text-sm text-white bg-gradient-to-b from-green-500 to-green-700 shadow-[inset_0_-1px_0_0_rgba(0,0,0,0.5)] px-3 py-1.5 rounded-md"><i class="fa-solid fa-plus fa-fw"></i></button>
</div>
<ul class="space-y-4">
<li>
<div class="border-b border-dashed border-slate-300 text-orange-400 mt-4 mb-6 font-bold text-sm">
@ -268,8 +277,93 @@
</div>
</div>
<!-- Updates Tab Body -->
<!-- Record Tab Body -->
<div class="hidden mb-8">
<div class="flex justify-between items-center">
<h2 class="text-lg font-bold">What have you seen someone do?</h2>
<button class="block text-center ml-auto text-sm text-white bg-gradient-to-b from-slate-400 to-slate-700 shadow-[inset_0_-1px_0_0_rgba(0,0,0,0.5)] px-3 py-1.5 rounded-md">Ideas...</button>
</div>
<ul class="grid grid-cols-4 sm:grid-cols-5 md:grid-cols-6 gap-x-3 gap-y-5 text-center mb-5 mt-6">
<li>
<a href="">
<img src="https://placehold.co/480?text=(Image)" class="max-w-16 mx-auto border border-slate-300 rounded-md mb-1">
<h3 class="text-xs font-medium italic text-ellipsis whitespace-nowrap overflow-hidden">Unnamed/Unknown</h3>
</a>
</li>
<li>
<a href="">
<img src="https://placehold.co/480?text=(Image)" class="max-w-16 mx-auto border border-slate-300 rounded-md mb-1">
<h3 class="text-xs font-medium text-ellipsis whitespace-nowrap overflow-hidden">Dave Grohl</h3>
</a>
</li>
<li>
<a href="">
<img src="https://placehold.co/480?text=(Image)" class="max-w-16 mx-auto border border-slate-300 rounded-md mb-1">
<h3 class="text-xs font-medium text-ellipsis whitespace-nowrap overflow-hidden">Taylor hawkins</h3>
</a>
</li>
<li>
<a href="">
<img src="https://placehold.co/480?text=(Image)" class="max-w-16 mx-auto border border-slate-300 rounded-md mb-1">
<h3 class="text-xs font-medium text-ellipsis whitespace-nowrap overflow-hidden">Chris Shiflett</h3>
</a>
</li>
<li>
<a href="">
<img src="https://placehold.co/480?text=(Image)" class="max-w-16 mx-auto border border-slate-300 rounded-md mb-1">
<h3 class="text-xs font-medium text-ellipsis whitespace-nowrap overflow-hidden">Kurt Cobain</h3>
</a>
</li>
<li>
<a href="">
<img src="https://placehold.co/480?text=(Image)" class="max-w-16 mx-auto border border-slate-300 rounded-md mb-1">
<h3 class="text-xs font-medium text-ellipsis whitespace-nowrap overflow-hidden">Krist Novoselic</h3>
</a>
</li>
<li>
<a href="">
<img src="https://placehold.co/480?text=(Image)" class="max-w-16 mx-auto border border-slate-300 rounded-md mb-1">
<h3 class="text-xs font-medium text-ellipsis whitespace-nowrap overflow-hidden">Chad Channing</h3>
</a>
</li>
<li>
<a href="">
<img src="https://placehold.co/480?text=(Image)" class="max-w-16 mx-auto border border-slate-300 rounded-md mb-1">
<h3 class="text-xs font-medium text-ellipsis whitespace-nowrap overflow-hidden">Lori Goldston</h3>
</a>
</li>
<li>
<a href="">
<img src="https://placehold.co/480?text=(Image)" class="max-w-16 mx-auto border border-slate-300 rounded-md mb-1">
<h3 class="text-xs font-medium text-ellipsis whitespace-nowrap overflow-hidden">Franz Stahl</h3>
</a>
</li>
<li>
<a href="">
<img src="https://placehold.co/480?text=(Image)" class="max-w-16 mx-auto border border-slate-300 rounded-md mb-1">
<h3 class="text-xs font-medium text-ellipsis whitespace-nowrap overflow-hidden">Nate Mendel</h3>
</a>
</li>
<li>
<a href="">
<img src="https://placehold.co/480?text=(Image)" class="max-w-16 mx-auto border border-slate-300 rounded-md mb-1">
<h3 class="text-xs font-medium text-ellipsis whitespace-nowrap overflow-hidden">Rami Jaffee</h3>
</a>
</li>
<li>
<a href="">
<img src="https://placehold.co/480?text=(Image)" class="max-w-16 mx-auto border border-slate-300 rounded-md mb-1">
<h3 class="text-xs font-medium text-ellipsis whitespace-nowrap overflow-hidden">Josh Freese</h3>
</a>
</li>
</ul>
<!-- a href="contact-list-give.html" class="block text-center text-md font-bold uppercase bg-gradient-to-b from-slate-400 to-slate-700 shadow-[inset_0_-1px_0_0_rgba(0,0,0,0.5)] text-white px-2 py-3 rounded-md">Show More Contacts&hellip;</a -->
</div>
<!-- Updates Tab Body -->
<!-- div class="hidden mb-8">
<div class="mb-8">
<h3 class="text-sm uppercase font-semibold mb-3"><i class="fa-solid fa-hand text-slate-500"></i> Offers</h3>
@ -318,93 +412,275 @@
</li>
</ul>
</div>
</div>
</div -->
<!-- Record Tab Body -->
<div class="hidden mb-8">
<div class="flex justify-between items-center">
<h2 class="text-xl font-bold">Record Something Given By:</h2>
<button class="block text-center ml-auto text-sm text-white bg-gradient-to-b from-slate-400 to-slate-700 shadow-[inset_0_-1px_0_0_rgba(0,0,0,0.5)] px-3 py-1.5 rounded-md">Ideas...</button>
</div>
<!-- RECORD DIALOG popup -->
<dialog id="dlgRecord" class="backdrop:bg-black/75 rounded-md p-4 w-[90vw] max-w-[500px]">
<form method="dialog">
<!-- Step 1 -->
<div class="hidden">
<label class="block font-bold mb-4">Choose a person to receive from:</label>
<ul class="grid grid-cols-4 sm:grid-cols-5 md:grid-cols-6 gap-x-3 gap-y-5 text-center mb-5 mt-4">
<!-- Search box -->
<!-- input type="text" class="block w-full rounded border border-slate-400 mb-4 px-3 py-2 placeholder:italic" placeholder="Search for a person…" -->
<!-- Quick-pick grid -->
<ul class="grid grid-cols-4 sm:grid-cols-5 md:grid-cols-6 gap-x-2 gap-y-4 text-center mb-4">
<li>
<a href="">
<img src="https://placehold.co/480?text=(Image)" class="max-w-16 mx-auto border border-slate-300 rounded-md mb-1">
<h3 class="text-xs font-medium italic text-ellipsis whitespace-nowrap overflow-hidden">Unnamed/Unknown</h3>
<i class="fa-solid fa-circle-question text-slate-400 text-5xl mb-1"></i>
<h3 class="text-xs text-slate-500 font-medium italic text-ellipsis whitespace-nowrap overflow-hidden">Unnamed</h3>
</a>
</li>
<li>
<a href="">
<img src="https://placehold.co/480?text=(Image)" class="max-w-16 mx-auto border border-slate-300 rounded-md mb-1">
<div class="relative w-fit mx-auto">
<img src="https://placehold.co/480?text=(Image)" class="max-w-12 mx-auto border border-slate-300 rounded-full mb-1">
<div class="rounded-full bg-orange-500 absolute bottom-0 right-0 p-0.5 translate-x-1/3">
<i class="block fa-solid fa-thumbtack fa-fw text-white text-xs w-4"></i>
</div>
</div>
<h3 class="text-xs font-medium text-ellipsis whitespace-nowrap overflow-hidden">Dave Grohl</h3>
</a>
</li>
<li>
<a href="">
<img src="https://placehold.co/480?text=(Image)" class="max-w-16 mx-auto border border-slate-300 rounded-md mb-1">
<div class="relative w-fit mx-auto">
<img src="https://placehold.co/480?text=(Image)" class="max-w-12 mx-auto border border-slate-300 rounded-full mb-1">
<div class="rounded-full bg-orange-500 absolute bottom-0 right-0 p-0.5 translate-x-1/3">
<i class="block fa-solid fa-thumbtack fa-fw text-white text-xs w-4"></i>
</div>
</div>
<h3 class="text-xs font-medium text-ellipsis whitespace-nowrap overflow-hidden">Taylor hawkins</h3>
</a>
</li>
<li>
<a href="">
<img src="https://placehold.co/480?text=(Image)" class="max-w-16 mx-auto border border-slate-300 rounded-md mb-1">
<div class="relative w-fit mx-auto">
<img src="https://placehold.co/480?text=(Image)" class="max-w-12 mx-auto border border-slate-300 rounded-full mb-1">
<div class="rounded-full bg-slate-400 absolute bottom-0 right-0 p-0.5 translate-x-1/3">
<i class="block fa-solid fa-clock fa-fw text-white text-xs w-4"></i>
</div>
</div>
<h3 class="text-xs font-medium text-ellipsis whitespace-nowrap overflow-hidden">Chris Shiflett</h3>
</a>
</li>
<li>
<a href="">
<img src="https://placehold.co/480?text=(Image)" class="max-w-16 mx-auto border border-slate-300 rounded-md mb-1">
<div class="relative w-fit mx-auto">
<img src="https://placehold.co/480?text=(Image)" class="max-w-12 mx-auto border border-slate-300 rounded-full mb-1">
<div class="rounded-full bg-slate-400 absolute bottom-0 right-0 p-0.5 translate-x-1/3">
<i class="block fa-solid fa-clock fa-fw text-white text-xs w-4"></i>
</div>
</div>
<h3 class="text-xs font-medium text-ellipsis whitespace-nowrap overflow-hidden">Kurt Cobain</h3>
</a>
</li>
<li>
<a href="">
<img src="https://placehold.co/480?text=(Image)" class="max-w-16 mx-auto border border-slate-300 rounded-md mb-1">
<div class="relative w-fit mx-auto">
<img src="https://placehold.co/480?text=(Image)" class="max-w-12 mx-auto border border-slate-300 rounded-full mb-1">
<div class="rounded-full bg-slate-400 absolute bottom-0 right-0 p-0.5 translate-x-1/3">
<i class="block fa-solid fa-clock fa-fw text-white text-xs w-4"></i>
</div>
</div>
<h3 class="text-xs font-medium text-ellipsis whitespace-nowrap overflow-hidden">Krist Novoselic</h3>
</a>
</li>
<li>
<a href="">
<img src="https://placehold.co/480?text=(Image)" class="max-w-16 mx-auto border border-slate-300 rounded-md mb-1">
<div class="relative w-fit mx-auto">
<img src="https://placehold.co/480?text=(Image)" class="max-w-12 mx-auto border border-slate-300 rounded-full mb-1">
<div class="rounded-full bg-slate-400 absolute bottom-0 right-0 p-0.5 translate-x-1/3">
<i class="block fa-solid fa-clock fa-fw text-white text-xs w-4"></i>
</div>
</div>
<h3 class="text-xs font-medium text-ellipsis whitespace-nowrap overflow-hidden">Chad Channing</h3>
</a>
</li>
<li>
<a href="">
<img src="https://placehold.co/480?text=(Image)" class="max-w-16 mx-auto border border-slate-300 rounded-md mb-1">
<div class="relative w-fit mx-auto">
<img src="https://placehold.co/480?text=(Image)" class="max-w-12 mx-auto border border-slate-300 rounded-full mb-1">
<div class="rounded-full bg-slate-400 absolute bottom-0 right-0 p-0.5 translate-x-1/3">
<i class="block fa-solid fa-clock fa-fw text-white text-xs w-4"></i>
</div>
</div>
<h3 class="text-xs font-medium text-ellipsis whitespace-nowrap overflow-hidden">Lori Goldston</h3>
</a>
</li>
<li>
<a href="">
<img src="https://placehold.co/480?text=(Image)" class="max-w-16 mx-auto border border-slate-300 rounded-md mb-1">
<div class="relative w-fit mx-auto">
<img src="https://placehold.co/480?text=(Image)" class="max-w-12 mx-auto border border-slate-300 rounded-full mb-1">
<div class="rounded-full bg-slate-400 absolute bottom-0 right-0 p-0.5 translate-x-1/3">
<i class="block fa-solid fa-clock fa-fw text-white text-xs w-4"></i>
</div>
</div>
<h3 class="text-xs font-medium text-ellipsis whitespace-nowrap overflow-hidden">Franz Stahl</h3>
</a>
</li>
<li>
<a href="">
<img src="https://placehold.co/480?text=(Image)" class="max-w-16 mx-auto border border-slate-300 rounded-md mb-1">
<div class="relative w-fit mx-auto">
<img src="https://placehold.co/480?text=(Image)" class="max-w-12 mx-auto border border-slate-300 rounded-full mb-1">
<div class="rounded-full bg-slate-400 absolute bottom-0 right-0 p-0.5 translate-x-1/3">
<i class="block fa-solid fa-clock fa-fw text-white text-xs w-4"></i>
</div>
</div>
<h3 class="text-xs font-medium text-ellipsis whitespace-nowrap overflow-hidden">Nate Mendel</h3>
</a>
</li>
<li>
<a href="">
<img src="https://placehold.co/480?text=(Image)" class="max-w-16 mx-auto border border-slate-300 rounded-md mb-1">
<div class="relative w-fit mx-auto">
<img src="https://placehold.co/480?text=(Image)" class="max-w-12 mx-auto border border-slate-300 rounded-full mb-1">
<div class="rounded-full bg-slate-400 absolute bottom-0 right-0 p-0.5 translate-x-1/3">
<i class="block fa-solid fa-clock fa-fw text-white text-xs w-4"></i>
</div>
</div>
<h3 class="text-xs font-medium text-ellipsis whitespace-nowrap overflow-hidden">Rami Jaffee</h3>
</a>
</li>
<li>
<a href="">
<img src="https://placehold.co/480?text=(Image)" class="max-w-16 mx-auto border border-slate-300 rounded-md mb-1">
<h3 class="text-xs font-medium text-ellipsis whitespace-nowrap overflow-hidden">Josh Freese</h3>
<i class="fa-solid fa-circle-right text-blue-500 text-5xl mb-1"></i>
<h3 class="text-xs text-slate-500 font-medium italic text-ellipsis whitespace-nowrap overflow-hidden">Show All</h3>
</a>
</li>
</ul>
<!-- a href="contact-list-give.html" class="block text-center text-md font-bold uppercase bg-gradient-to-b from-slate-400 to-slate-700 shadow-[inset_0_-1px_0_0_rgba(0,0,0,0.5)] text-white px-2 py-3 rounded-md">Show More Contacts&hellip;</a -->
<!-- Search results-->
<ul class="hidden mb-4 space-y-2">
<li class="">
<a href="" class="flex items-center gap-2">
<img src="https://placehold.co/480?text=(Image)" class="size-8 object-cover border border-slate-300 rounded-full">
<p class="truncate"><b>Matt</b> Bellamy</p>
</a>
</li>
<li class="">
<a href="" class="flex items-center gap-2">
<img src="https://placehold.co/480?text=(Image)" class="size-8 object-cover border border-slate-300 rounded-full">
<p class="truncate"><b>Matt</b>hew Raymer</p>
</a>
</li>
<li class="">
<a href="" class="flex items-center gap-2">
<img src="https://placehold.co/480?text=(Image)" class="size-8 object-cover border border-slate-300 rounded-full">
<p class="truncate"><b>Matt</b>hew Broderick</p>
</a>
</li>
<li class="">
<a href="" class="flex items-center gap-2">
<img src="https://placehold.co/480?text=(Image)" class="size-8 object-cover border border-slate-300 rounded-full">
<p class="truncate">Dave <b>Matt</b>hews</p>
</a>
</li>
</ul>
<button value="cancel" class="block w-full text-center text-md uppercase bg-gradient-to-b from-slate-400 to-slate-700 shadow-[inset_0_-1px_0_0_rgba(0,0,0,0.5)] text-white px-1.5 py-2 rounded-lg">Cancel</button>
</div>
<!-- Step 2 -->
<div>
<button class="w-full flex items-center gap-2 bg-slate-100 border border-slate-300 rounded-md p-2 mb-4">
<img src="https://placehold.co/480?text=(Image)" class="size-8 object-cover rounded-full">
<div class="text-start">
<p class="text-xs text-slate-500 leading-1 -mb-1 uppercase">Received from:</p>
<h3 class="font-semibold">Matthew Raymer</h3>
</div>
<p class="ms-auto text-sm uppercase font-medium pe-2">Change</p>
</button>
<div class="flex mb-4">
<input type="text" class="block w-full rounded border border-slate-400 px-3 py-2 placeholder:italic" placeholder="What was given?">
</div>
<!-- Idea Carousel -->
<!-- div class="flex items-stretch bg-amber-100 border border-amber-300 rounded -mt-3 mb-4">
<button class="bg-amber-200 p-3">
<i class="fa-solid fa-chevron-left"></i>
</button>
<p class="text-amber-700 leading-tight text-center p-3">What did you see someone give to someone else? (What is the effect of the positivity you gained from seeing that?)</p>
<button class="bg-amber-200 p-3">
<i class="fa-solid fa-chevron-right"></i>
</button>
</div -->
<div class="flex mb-4">
<button class="rounded-s border border-e-0 border-slate-400 bg-slate-200 px-4 py-2">
<i class="fa-solid fa-chevron-left"></i>
</button>
<input type="number" class="flex-1 border border-e-0 border-slate-400 px-2 py-2 text-center w-[1px]" value="0">
<button class="rounded-e border border-slate-400 bg-slate-200 px-4 py-2">
<i class="fa-solid fa-chevron-right"></i>
</button>
<select class="flex-1 rounded border border-slate-400 ms-2 px-3 py-2">
<option value="1">Hours</option>
<option value="2">US $</option>
<option value="3">BTC</option>
<option value="3">BX</option>
<option value="3">ETH</option>
</select>
</div>
<button value="cancel" class="block w-full text-center text-md uppercase bg-gradient-to-b from-slate-400 to-slate-700 shadow-[inset_0_-1px_0_0_rgba(0,0,0,0.5)] text-white px-1.5 py-2 rounded-lg mb-4">Photo &amp; more options&hellip;</button>
<p class="text-center mb-4"><b class="font-medium">Sign &amp; Send</b> to publish to the world <a href=""><i class="fa-solid fa-circle-info fa-fw text-blue-500 text-lg"></i></a></p>
<div class="grid grid-cols-1 sm:grid-cols-2 gap-2">
<button value="cancel" class="block w-full text-center text-md uppercase font-bold bg-gradient-to-b from-blue-400 to-blue-700 shadow-[inset_0_-1px_0_0_rgba(0,0,0,0.5)] text-white px-1.5 py-2 rounded-lg">Sign & Send</button>
<button value="cancel" class="block w-full text-center text-md uppercase bg-gradient-to-b from-slate-400 to-slate-700 shadow-[inset_0_-1px_0_0_rgba(0,0,0,0.5)] text-white px-1.5 py-2 rounded-lg">Cancel</button>
</div>
</div>
</form>
</dialog>
</section>
<script>
const showDialogRecord = document.getElementById('btnShowRecord');
const dialogRecord = document.getElementById('dlgRecord');
// If a browser doesn't support the dialog, then hide the
// dialog contents by default.
if (typeof dialogRecord.showModal !== 'function') {
dialogRecord.hidden = true;
}
// button opens the <dialog> modally
showDialogRecord.addEventListener('click', () => {
if (typeof dialogRecord.showModal === "function") {
dialogRecord.showModal();
}
});
</script>
</body>
</html>
Loading…
Cancel
Save