浏览代码

Added login to create station card on homepage

Owen Diffey 4 年之前
父节点
当前提交
4d0cb772de
共有 1 个文件被更改,包括 21 次插入1 次删除
  1. 21 1
      frontend/src/pages/Home/index.vue

+ 21 - 1
frontend/src/pages/Home/index.vue

@@ -215,7 +215,6 @@
 					<div class="card-image">
 						<figure class="image is-square">
 							<i class="material-icons">radio</i>
-							<!-- <img src="/assets/notes-transparent.png" /> -->
 						</figure>
 					</div>
 					<div class="card-content">
@@ -231,6 +230,27 @@
 					</div>
 					<div class="bottomBar"></div>
 				</a>
+				<a
+					v-else
+					class="card station-card createStation"
+					:style="'--station-theme: rgb(2, 166, 242)'"
+				>
+					<div class="card-image">
+						<figure class="image is-square">
+							<i class="material-icons">radio</i>
+						</figure>
+					</div>
+					<div class="card-content">
+						<div class="media">
+							<div class="media-left displayName">
+								<h5>Create Station</h5>
+							</div>
+						</div>
+
+						<div class="content">Login to create a station!</div>
+					</div>
+					<div class="bottomBar"></div>
+				</a>
 
 				<router-link
 					v-for="(station, index) in filteredStations"