Browse Source

Contact add/edit screen + changes to view screen

master
Jose Olarte III 2 years ago
parent
commit
136239aea4
  1. 45
      contact-edit.html
  2. 130
      contact-list.html
  3. 62
      contact-transact-time.html
  4. 143
      contact-view.html

45
contact-edit.html

@ -0,0 +1,45 @@
<!doctype html>
<html class="text-slate-700">
<head>
<title>[New/Edit] Contact - Kickstarter for Time</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Tailwind -->
<script src="https://cdn.tailwindcss.com?plugins=forms"></script>
<!-- Font Awesome -->
<script src="https://kit.fontawesome.com/2396c18fde.js" crossorigin="anonymous"></script>
<link href="css/main.css" rel="stylesheet">
</head>
<body>
<!-- CONTENT -->
<section id="Content" class="p-6 pb-24">
<!-- Breadcrumb -->
<div id="ViewBreadcrumb" class="mb-8">
<h1 class="text-lg text-center font-light relative px-7">
<!-- Cancel -->
<a href="contact-view.html" class="text-lg text-center px-2 py-1 absolute -left-2 -top-1"><i class="fa-solid fa-chevron-left fa-fw"></i></a>
[New/Edit] Contact
</h1>
</div>
<form>
<input type="text" placeholder="DID" class="block w-full rounded border-slate-400 mb-4" required />
<input type="text" placeholder="Nickname" class="block w-full rounded border-slate-400 mb-4" />
<input type="text" placeholder="Public Key (optional)" class="block w-full rounded border-slate-400 mb-4" />
<div class="mt-8">
<button type="button" class="block w-full text-center text-lg font-bold uppercase bg-blue-600 text-white px-2 py-3 rounded-md mb-2">Save Changes</button>
<!-- SHOW ME instead while processing saving changes -->
<!-- <button type="button" class="block w-full text-center text-lg font-bold uppercase bg-blue-600 text-white px-2 py-3 rounded-md mb-2">Processing&hellip; <i class="fa-solid fa-spinner fa-spin-pulse" disabled></i></button> -->
<button type="button" class="block w-full text-center text-md uppercase bg-slate-500 text-white px-1.5 py-2 rounded-md">Cancel</button>
</div>
</form>
</section>
</body>
</html>

130
contact-list.html

@ -0,0 +1,130 @@
<!doctype html>
<html class="text-slate-700">
<head>
<title>Contacts - Kickstarter for Time</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Tailwind -->
<script src="https://cdn.tailwindcss.com?plugins=forms"></script>
<!-- Font Awesome -->
<script src="https://kit.fontawesome.com/2396c18fde.js" crossorigin="anonymous"></script>
<link href="css/main.css" rel="stylesheet">
</head>
<body>
<!-- QUICK NAV -->
<nav id="QuickNav" class="fixed bottom-0 left-0 right-0 bg-slate-200 z-50">
<ul class="flex text-2xl p-2 gap-2">
<!-- Home Feed -->
<li class="basis-1/5 rounded-md text-slate-500"><a href="" class="block text-center py-3 px-1"><i class="fa-solid fa-house-chimney fa-fw"></i></a></li>
<!-- Search -->
<li class="basis-1/5 rounded-md text-slate-500"><a href="search.html" class="block text-center py-3 px-1"><i class="fa-solid fa-magnifying-glass fa-fw"></i></a></li>
<!-- Projects -->
<li class="basis-1/5 rounded-md text-slate-500"><a href="" class="block text-center py-3 px-1"><i class="fa-solid fa-folder-open fa-fw"></i></a></li>
<!-- Contacts -->
<li class="basis-1/5 rounded-md bg-slate-400 text-white"><a href="contact-list.html" class="block text-center py-3 px-1"><i class="fa-solid fa-users fa-fw"></i></a></li>
<!-- Profile -->
<li class="basis-1/5 rounded-md text-slate-500"><a href="account-view.html" class="block text-center py-3 px-1"><i class="fa-solid fa-circle-user fa-fw"></i></a></li>
</ul>
</nav>
<!-- CONTENT -->
<section id="Content" class="p-6 pb-24">
<!-- Heading -->
<h1 id="ViewHeading" class="text-4xl text-center font-light pt-4 mb-8">Your Contacts</h1>
<!-- Quick Search -->
<form id="QuickSearch" class="mb-4 flex">
<input type="text" placeholder="Search…" class="block w-full rounded-l border-r-0 border-slate-400" />
<button class="px-4 rounded-r bg-slate-200 border border-l-0 border-slate-400"><i class="fa-solid fa-magnifying-glass fa-fw"></i></button>
</form>
<!-- New Contact -->
<a href="contact-edit.html" class="fixed right-6 bottom-24 text-center text-4xl leading-none bg-blue-600 text-white w-14 py-2.5 rounded-full"><i class="fa-solid fa-plus fa-fw"></i></a>
<!-- Initial Loading Animation -->
<!-- SHOW ME only during load of first set of results -->
<p class="hidden text-slate-500 text-center italic mt-8 mb-4"><i class="fa-solid fa-spinner fa-spin-pulse"></i> Loading&hellip;</p>
<!-- Results List -->
<ul class="border-t border-slate-300">
<li class="border-b border-slate-300">
<a href="contact-view.html" class="block py-4 flex gap-4">
<!-- <div class="w-12">
<img src="https://picsum.photos/200/200?random=1" class="w-full rounded" />
</div> -->
<div class="grow overflow-hidden">
<h2 class="text-base flex gap-4">
<span class="grow font-semibold"><i class="fa-solid fa-user fa-fw text-slate-400"></i> User One</span>
<span class="text-right">
<!-- Given -->
<!-- [confirmed value]/[total value] -->
<span class="whitespace-nowrap"><i class="fa-solid fa-right-from-bracket fa-rotate-270 text-slate-400"></i> 4/8</span>
<!-- Received -->
<!-- [confirmed value]/[total value] -->
<span class="whitespace-nowrap ml-2"><i class="fa-solid fa-right-to-bracket fa-rotate-90 text-slate-400"></i> 2.5/3</span>
</span>
</h2>
<div class="text-sm truncate">did:ethr:0x000Ee5654b9742f6Fe18ea970e32b97ee2247B51</div>
</div>
</a>
</li>
<li class="border-b border-slate-300">
<a href="contact-view.html" class="block py-4 flex gap-4">
<!-- <div class="w-12">
<img src="https://picsum.photos/200/200?random=1" class="w-full rounded" />
</div> -->
<div class="grow overflow-hidden">
<h2 class="text-base flex gap-4">
<span class="grow font-semibold"><i class="fa-solid fa-user fa-fw text-slate-400"></i> User Two</span>
<span class="text-right">
<!-- Given -->
<!-- [confirmed value]/[total value] -->
<span class="whitespace-nowrap"><i class="fa-solid fa-right-from-bracket fa-rotate-270 text-slate-400"></i> 4/8</span>
<!-- Received -->
<!-- [confirmed value]/[total value] -->
<span class="whitespace-nowrap ml-2"><i class="fa-solid fa-right-to-bracket fa-rotate-90 text-slate-400"></i> 2.5/3</span>
</span>
</h2>
<div class="text-sm truncate">did:ethr:0x000Ee5654b9742f6Fe18ea970e32b97ee2247B51</div>
</div>
</a>
</li>
<li class="border-b border-slate-300">
<a href="contact-view.html" class="block py-4 flex gap-4">
<!-- <div class="w-12">
<img src="https://picsum.photos/200/200?random=1" class="w-full rounded" />
</div> -->
<div class="grow overflow-hidden">
<h2 class="text-base flex gap-4">
<span class="grow font-semibold"><i class="fa-solid fa-user fa-fw text-slate-400"></i> User Three</span>
<span class="text-right">
<!-- Given -->
<!-- [confirmed value]/[total value] -->
<span class="whitespace-nowrap"><i class="fa-solid fa-right-from-bracket fa-rotate-270 text-slate-400"></i> 4/8</span>
<!-- Received -->
<!-- [confirmed value]/[total value] -->
<span class="whitespace-nowrap ml-2"><i class="fa-solid fa-right-to-bracket fa-rotate-90 text-slate-400"></i> 2.5/3</span>
</span>
</h2>
<div class="text-sm truncate">did:ethr:0x000Ee5654b9742f6Fe18ea970e32b97ee2247B51</div>
</div>
</a>
</li>
</ul>
<!-- Infinite Scroll Loading Animation -->
<!-- SHOW ME only while loading more results into list -->
<p class="hidden text-slate-500 text-center italic mt-8 mb-4"><i class="fa-solid fa-spinner fa-spin-pulse"></i> Loading More&hellip;</p>
</section>
</body>
</html>

62
contact-transact-time.html

@ -0,0 +1,62 @@
<!doctype html>
<html class="text-slate-700">
<head>
<title>Give/Request Time - Kickstarter for Time</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Tailwind -->
<script src="https://cdn.tailwindcss.com?plugins=forms"></script>
<!-- Font Awesome -->
<script src="https://kit.fontawesome.com/2396c18fde.js" crossorigin="anonymous"></script>
<link href="css/main.css" rel="stylesheet">
</head>
<body>
<!-- CONTENT -->
<section id="Content" class="p-6 pb-24">
<!-- Breadcrumb -->
<div id="ViewBreadcrumb" class="mb-8">
<h1 class="text-lg text-center font-light relative px-7">
<!-- Cancel -->
<a href="contact-transact-time.html" class="text-lg text-center px-2 py-1 absolute -left-2 -top-1"><i class="fa-solid fa-chevron-left fa-fw"></i></a>
[Give/Request] Time
</h1>
</div>
<!-- Project Details -->
<form>
<div class="grid grid-cols-2 gap-2 mb-4">
<div class="bg-slate-200 rounded-md px-4 py-3">
<p class="text-sm text-slate-400 uppercase">From</p>
<h2 class="text-md font-semibold overflow-hidden truncate"><i class="fa-solid fa-user fa-fw text-slate-400"></i> <i>You</i></h2>
</div>
<div class="bg-slate-200 rounded-md px-4 py-3">
<p class="text-sm text-slate-400 uppercase">To</p>
<h2 class="text-md font-semibold overflow-hidden truncate"><i class="fa-solid fa-user fa-fw text-slate-400"></i> User Two</h2>
</div>
</div>
<!-- Time amount -->
<div class="mb-4 flex items-stretch">
<input type="number" placeholder="0.0" class="block w-full rounded-l border-slate-400" />
<span class="px-4 py-2 rounded-r bg-slate-200 border border-l-0 border-slate-400">hours</span>
</div>
<input type="text" placeholder="Description" class="block w-full rounded border-slate-400 mb-4" />
<div class="mt-8">
<input type="submit" class="block w-full text-center text-lg font-bold uppercase bg-blue-600 text-white px-2 py-3 rounded-md mb-2" value="[Give/Request]" />
<button type="button" class="block w-full text-center text-md uppercase bg-slate-500 text-white px-1.5 py-2 rounded-md">Maybe Later</button>
</div>
</form>
</section>
</body>
</html>

143
contact-view.html

@ -0,0 +1,143 @@
<!doctype html>
<html class="text-slate-700">
<head>
<title>View Contact - Kickstarter for Time</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Tailwind -->
<script src="https://cdn.tailwindcss.com?plugins=forms"></script>
<!-- Font Awesome -->
<script src="https://kit.fontawesome.com/2396c18fde.js" crossorigin="anonymous"></script>
<link href="css/main.css" rel="stylesheet">
</head>
<body>
<!-- QUICK NAV -->
<nav id="QuickNav" class="fixed bottom-0 left-0 right-0 bg-slate-200 z-50">
<ul class="flex text-2xl p-2 gap-2">
<!-- Home Feed -->
<li class="basis-1/5 rounded-md text-slate-500"><a href="" class="block text-center py-3 px-1"><i class="fa-solid fa-house-chimney fa-fw"></i></a></li>
<!-- Search -->
<li class="basis-1/5 rounded-md text-slate-500"><a href="search.html" class="block text-center py-3 px-1"><i class="fa-solid fa-magnifying-glass fa-fw"></i></a></li>
<!-- Projects -->
<li class="basis-1/5 rounded-md text-slate-500"><a href="" class="block text-center py-3 px-1"><i class="fa-solid fa-folder-open fa-fw"></i></a></li>
<!-- Contacts -->
<li class="basis-1/5 rounded-md bg-slate-400 text-white"><a href="contact-list.html" class="block text-center py-3 px-1"><i class="fa-solid fa-users fa-fw"></i></a></li>
<!-- Profile -->
<li class="basis-1/5 rounded-md text-slate-500"><a href="account-view.html" class="block text-center py-3 px-1"><i class="fa-solid fa-circle-user fa-fw"></i></a></li>
</ul>
</nav>
<!-- CONTENT -->
<section id="Content" class="p-6 pb-24">
<!-- Breadcrumb -->
<div id="ViewBreadcrumb" class="mb-8">
<h1 class="text-lg text-center font-light relative px-7">
<!-- Back -->
<a href="contact-list.html" class="text-lg text-center px-2 py-1 absolute -left-2 -top-1"><i class="fa-solid fa-chevron-left fa-fw"></i></a>
<!-- Context Menu -->
<a href="" class="text-lg text-center px-2 py-1 absolute -right-2 -top-1"><i class="fa-solid fa-ellipsis-vertical fa-fw"></i></a>
View Contact
</h1>
</div>
<!-- Contact Details -->
<div class="bg-slate-100 rounded-md overflow-hidden px-4 py-3 mb-2">
<div>
<h2 class="text-xl font-semibold"><i class="fa-solid fa-user fa-fw text-slate-400"></i> User One</h2>
<div class="text-sm overflow-hidden truncate">did:ethr:0x000Ee5654b9742f6Fe18ea970e32b97ee2247B51</div>
</div>
</div>
<!-- Give / Record Time -->
<!-- <h3 class="text-sm uppercase font-semibold mb-3">Time Actions</h3> -->
<div class="grid grid-cols-2 gap-2 mb-8">
<a href="contact-transact-time.html" class="block text-center text-md font-bold uppercase bg-blue-600 text-white px-2 py-3 rounded-md">Give</a>
<a href="contact-transact-time.html" class="block text-center text-md font-bold uppercase bg-blue-600 text-white px-2 py-3 rounded-md">Record Given</a>
</div>
<!-- Time Totals -->
<div class="bg-slate-100 rounded-md text-center px-4 py-3 mb-4">
<h3 class="text-sm uppercase font-semibold mb-2">Transaction Totals</h3>
<div class="grid grid-cols-2 gap-2">
<div>
<h4 class="text-xs uppercase">Total Time</h4>
<p class="text-md font-semibold">
<!-- Given -->
<span class="whitespace-nowrap"><i class="fa-solid fa-right-from-bracket fa-rotate-270 text-sm text-slate-400"></i> 8,888</span>
<!-- Received -->
<span class="whitespace-nowrap ml-1"><i class="fa-solid fa-right-to-bracket fa-rotate-90 text-sm text-slate-400"></i> 888</span>
</p>
</div>
<div>
<h4 class="text-xs uppercase">Unconfirmed</h4>
<p class="text-md font-semibold">
<!-- Given -->
<span class="whitespace-nowrap"><i class="fa-solid fa-right-from-bracket fa-rotate-270 text-sm text-slate-400"></i> 88</span>
<!-- Received -->
<span class="whitespace-nowrap ml-1"><i class="fa-solid fa-right-to-bracket fa-rotate-90 text-sm text-slate-400"></i> 8</span>
</p>
</div>
</div>
</div>
<!-- Commitments -->
<div class="bg-slate-100 px-4 py-3 mb-6 rounded-md">
<h3 class="text-sm uppercase font-semibold mb-3">Transaction History</h3>
<ul class="text-sm border-t border-slate-300">
<li class="flex justify-between gap-4 py-1.5 border-b border-slate-300">
<span>8888-88-88 88:88</span>
<span><i class="fa-solid fa-right-from-bracket fa-rotate-270 text-slate-400"></i> 4h <i class="fa-solid fa-spinner fa-fw text-slate-400"></i></span>
</li>
<li class="flex justify-between gap-4 py-1.5 border-b border-slate-300">
<span>8888-88-88 88:88</span>
<span><a href="" class="font-bold uppercase bg-blue-600 text-white px-2 py-1 mr-2 rounded-md">Confirm</a> <i class="fa-solid fa-right-to-bracket fa-rotate-90 text-blue-600"></i> 0.5h <i class="fa-solid fa-spinner fa-fw text-slate-400"></i></span>
</li>
<li class="flex justify-between gap-4 py-1.5 border-b border-slate-300">
<span>8888-88-88 88:88</span>
<span><i class="fa-solid fa-right-from-bracket fa-rotate-270 text-slate-400"></i> 4h <i class="fa-solid fa-circle-check fa-fw text-lime-500"></i></span>
</li>
<li class="flex justify-between gap-4 py-1.5 border-b border-slate-300">
<span>8888-88-88 88:88</span>
<span><i class="fa-solid fa-right-to-bracket fa-rotate-90 text-blue-600"></i> 2.5h <i class="fa-solid fa-circle-check fa-fw text-lime-500"></i></span>
</li>
</ul>
</div>
<h3 class="text-sm uppercase font-semibold mb-3">Contact Options</h3>
<label for="toggleIsVisible" class="flex items-center cursor-pointer mb-4">
<!-- toggle -->
<div class="relative">
<!-- input -->
<input type="checkbox" id="toggleIsVisible" class="sr-only">
<!-- line -->
<div class="block bg-slate-500 w-14 h-8 rounded-full"></div>
<!-- dot -->
<div class="dot absolute left-1 top-1 bg-slate-400 w-6 h-6 rounded-full transition"></div>
</div>
<!-- label -->
<div class="ml-2">
User can see my activity
</div>
</label>
<a href="contact-edit.html" class="block w-full text-center text-md uppercase bg-slate-500 text-white px-1.5 py-2 rounded-md mb-2">Edit Contact</a>
<button type="button" class="block w-full text-center text-md uppercase bg-red-600 text-white px-1.5 py-2 rounded-md mb-2">Remove Contact</button>
</section>
</body>
</html>
Loading…
Cancel
Save