Small UI changes (more spacing)

pull/13/head
Anthony Catel 2022-03-27 22:28:49 +02:00
rodzic 82612d2f05
commit d766830206
1 zmienionych plików z 6 dodań i 7 usunięć

Wyświetl plik

@ -3,7 +3,7 @@
<div class="h-[60%] md:h-full w-full">
<Map :density="density" :startHash="startHash" ref="map" @densityChange="densityUpdate" @hashChange="hashUpdate" @surfaceUpdate="surfaceUpdate" />
</div>
<div class="flex flex-col relative w-full lg:w-2/3 py-2 md:px-4 font-sans md:border-l border-gray-500 bg-gray-100">
<div class="flex flex-col relative w-full lg:w-2/3 py-2 md:px-4 font-sans md:border-l border-gray-500 bg-slate-100">
<div class="order-last md:order-first px-4 mb-4 md:mb-0 md:px-0">
<h1 class="text-xl md:text-2xl">MapChecking &bull; Crowd size estimation</h1>
<span class="text-gray-800 leading-tight">This tool helps you estimate and fact-check the maximum number of people standing in a given area.</span>
@ -16,17 +16,17 @@
<span class="text-sm text-gray-700">Surface area <span class="font-semibold">{{ formatArea(surface) }}sqm</span> &bull; <span class="font-semibold">{{ formatArea(surface_feet) }}sqft</span></span>
<button @click="$refs.map.reset()" class="rounded absolute right-0 px-2 py-1 text-xs inline-block bg-red-400 shadow-md text-white font-bold hover:shadow-none focus:outline-none">Reset the area</button>
<div class="mt-2">
<div class="mt-2 space-y-2">
<span class="font-semibold">Crowd density <span class="text-xs text-gray-700"><a class="underline hover:no-underline" target="_blank" href="http://www.gkstill.com/Support/crowd-density/625sm/Density6.html">What does it look like?</a></span></span>
<input class="block w-full" type="range" min="0.1" max="5.0" step="0.05" v-model.number="density" />
</div>
<div class="flex justify-around pt-2">
<div class="flex justify-around pt-2 mt-2">
<button @click="setDensity(0.3)" class="btn">Light</button>
<button @click="setDensity(2)" class="btn">Crowded</button>
<button @click="setDensity(4)" class="btn">Packed</button>
</div>
<div class="text-center mt-1">
<div class="text-center mt-2">
<span class="block font-semibold text-teal-600">{{ density.toFixed(2) }} people per sqm <small>(~10 sqft)</small></span>
<span class="inline-block mt-2 text-xl font-bold text-gray-800">{{ estimated }} estimated</span>
</div>
@ -51,10 +51,9 @@
<a href="javascript:void(0)" @click="$refs.map.reloadHash('bAAAAQEJ4Q0IdShdAAACQQcp4Q0IfKxdAeXlDQtI7F0CseENClVIXQNl3Q0IeaBdAG3dDQnlYF0A')" class="inline-block btn rounded-md mr-3 mb-2 text-sm">Place de la République</a>
<a href="javascript:void(0)" @click="$refs.map.reloadHash('bAAAAQHoRUkLzzlVBAABwQRsPUkISoVVB0A5SQhKhVUF_EFJChAhWQccQUkJBCFZB')" class="inline-block btn rounded-md mr-3 mb-2 text-sm">Tiergatern - Berlin</a>
</div>
<div class="flex justify-around text-center order-last bg-white p-3 text-xs tracking-tight border-t border-gray-300">
<div class="grow"></div>
<div class="flex space-x-4 order-last bg-white p-4 text-xs tracking-tight md:-mx-4 items-center font-medium justify-center">
<span>Created by Anthony Catel</span>
<a href="https://twitter.com/antcatel?ref_src=twsrc%5Etfw" class="twitter-follow-button" data-show-count="false">Follow @antcatel</a>
</div>
<!-- <div class="bottom-0 left-0 md:absolute h-8 bg-white border-t border-gray-300 w-full text-xs tracking-tight text-center py-2">Created by Anthony Catel</div> -->