Skip to content

Commit 843bee3

Browse files
authored
Merge pull request #58 from GoGaucho/reccencapacity
added button to a link for rec cen capacity
2 parents 1bf9d35 + 174c3f9 commit 843bee3

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

src/views/Waitz.vue

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<script setup>
22
import { get, log } from '../firebase.js'
3+
import { InformationCircleIcon } from '@heroicons/vue/24/outline'
4+
35
log('web/waitz')
46
57
let data = $ref(undefined)
@@ -15,9 +17,19 @@ function getClass (c) {
1517

1618
<template>
1719
<div class="p-4 sm:p-10">
20+
<div class="flex items-center justify-between flex-wrap">
21+
<div>
1822
<h1 class="text-2xl">Building Capacity</h1>
1923
<p v-if="!data" class="text-sm text-gray-500">Loading...</p>
2024
<p v-else class="text-sm text-gray-500">Data from waitz.io</p>
25+
</div>
26+
<a
27+
href="https://recreation.ucsb.edu/facilities/livecount"
28+
target="_blank"
29+
class="cursor-pointer my-2 px-3 py-1 text-sm sm:text-base sm:px-4 sm:py-2 rounded-full border
30+
font-bold text-blue-500 bg-white flex items-center all-transition hover:shadow">
31+
<InformationCircleIcon class="w-5 mr-1" /> Recreation Center Capacity </a>
32+
</div>
2133
<div class="my-2 sm:my-4 p-4 sm:p-6 bg-white shadow rounded" v-for="(l, name) in data">
2234
<div class="flex items-center flex-wrap">
2335
<div class="flex-grow">

0 commit comments

Comments
 (0)