forked from trent_larson/crowd-funder-for-time-pwa
36 lines
1.1 KiB
Vue
36 lines
1.1 KiB
Vue
<template>
|
|
<section
|
|
v-if="isRegistered"
|
|
id="sectionSearchLocation"
|
|
class="bg-slate-100 rounded-md overflow-hidden px-4 py-4 mt-8 mb-8"
|
|
aria-labelledby="searchLocationHeading"
|
|
>
|
|
<h2 id="searchLocationHeading" class="mb-2 font-bold">
|
|
Location for Searches
|
|
</h2>
|
|
<div v-if="searchAreaLabel" class="mb-2">
|
|
<span class="text-slate-700">Current Area: </span>
|
|
<span class="font-mono">{{ searchAreaLabel }}</span>
|
|
</div>
|
|
<button
|
|
class="w-full text-md 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-4 py-2 rounded-md"
|
|
@click="setSearchArea"
|
|
>
|
|
Set Search Area...
|
|
</button>
|
|
</section>
|
|
</template>
|
|
|
|
<script lang="ts">
|
|
import { Component, Vue, Prop, Emit } from "vue-facing-decorator";
|
|
|
|
@Component({ name: "LocationSearchSection" })
|
|
export default class LocationSearchSection extends Vue {
|
|
@Prop({ required: true }) isRegistered!: boolean;
|
|
@Prop({ required: false }) searchAreaLabel?: string;
|
|
|
|
@Emit("set-search-area")
|
|
setSearchArea() {}
|
|
}
|
|
</script>
|