pull/7/head
Anthony Catel 2020-10-08 15:47:19 +02:00
rodzic 36437131ac
commit 85eb345996
2 zmienionych plików z 28 dodań i 10 usunięć

Wyświetl plik

@ -10,9 +10,10 @@
<meta property="og:image" content="https://www.mapchecking.com/img/socialimage.png" />
<meta property="og:site_name" content="MapChecking" />
<title>MapChecking - Crowd size estimator</title>
<script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>
</head>
<body>
<div id="app" class="antialiased text-gray-800"></div>
<div id="app" class="antialiased text-gray-800 min-h-screen flex"></div>
<script type="module" src="/src/main.js"></script>
</body>
</html>

Wyświetl plik

@ -1,24 +1,28 @@
<template>
<div class="flex flex-col items-stretch md:flex-row h-screen">
<div class="md:h-full w-full">
<div class="md:flex flex-1 md:items-stretch md:flex-row">
<div class="h-2/3 md:h-full w-full">
<Map :density="density" :startHash="startHash" ref="map" @densityChange="densityUpdate" @hashChange="hashUpdate" @surfaceUpdate="surfaceUpdate" />
</div>
<div class="relative w-full lg:w-2/3 px-4 py-2 font-sans border-l border-gray-500 bg-gray-100">
<h1 class="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>
<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="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>
<br />
<div class="text-sm mt-1 font-semibold">Source on github : <iframe class="inline" src="https://ghbtns.com/github-btn.html?user=paraboul&repo=mapchecking&type=star&count=false" frameborder="0" scrolling="0" width="150" height="20" title="GitHub"></iframe></div>
</div>
<div class="shadow-md rounded-md px-4 py-3 bg-white mt-4">
<div class="shadow-md md:rounded-md px-4 py-3 bg-white md:mt-4 mb-4 md:mb-1">
<div v-if="surface !== 0" class="relative">
<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">
<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" :value="density" v-model.number="density" />
<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">
<button @click="setDensity(0.5)" class="btn">Light</button>
<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>
@ -31,7 +35,20 @@
Start by delimiting an area on the map
</div>
</div>
<div class="bottom-0 left-0 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>
<div class="shadow-md md:rounded-md px-4 py-3 bg-white md:mt-4 mb-4 md:mb-8">
<h2 class="font-bold mb-2">Examples</h2>
<a href="//#bAABAQJtzQ0LZXRJAAACQQRh0Q0JORBJA03NDQsdDEkC4c0NCrU4SQF5zQ0IFUhJAJnNDQoBWEkD5ckNCglsSQCFzQ0J_ZhJAlXNDQsdwEkDVc0NCT3ESQA90Q0LgfRJAXXRDQnh8EkAhdENCQHASQFB0Q0K9bBJAqXRDQu9uEkDadENCwGkSQHl0Q0JSZhJAe3RDQiNhEkB-dENCaV4SQNt0Q0KnXBJA4XRDQkJYEkCYdENC9lgSQGp0Q0LAWRJAWnRDQuhXEkC8dENC-k0SQH90Q0K2SRJAD3RDQiNREkA" class="inline-block btn rounded-md mr-3 mb-2 text-sm">Place du Trocadeo - Paris</a>
<a href="//#bAAAAQEJ4Q0IdShdAAACQQcp4Q0IfKxdAeXlDQtI7F0CseENClVIXQNl3Q0IeaBdAG3dDQnlYF0A" class="inline-block btn rounded-md mr-3 mb-2 text-sm">Place de la République</a>
<a href="//#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">
<span>Created by Anthony Catel</span>
<a href="https://twitter.com/paraboul?ref_src=twsrc%5Etfw" class="twitter-follow-button" data-show-count="false">Follow @paraboul</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> -->
</div>
</div>
</template>