瀏覽代碼

Added messages when there is no album or shared album

Alex Tran 3 年之前
父節點
當前提交
ec1c3a86f5
共有 4 個文件被更改,包括 25 次插入0 次删除
  1. 13 0
      web/src/routes/albums/index.svelte
  2. 12 0
      web/src/routes/sharing/index.svelte
  3. 0 0
      web/static/empty-1.svg
  4. 0 0
      web/static/empty-2.svg

+ 13 - 0
web/src/routes/albums/index.svelte

@@ -161,6 +161,19 @@
 					{/key}
 				{/each}
 			</div>
+
+			<!-- Empty Message -->
+			{#if albums.length === 0}
+				<div
+					class="border p-5 w-[50%] m-auto mt-10 bg-gray-50 rounded-lg flex flex-col place-content-center place-items-center"
+				>
+					<img src="/empty-1.svg" alt="Empty shared album" width="500" />
+
+					<p class="text-center text-immich-text-gray-500">
+						Create an album to organize your photos and videos
+					</p>
+				</div>
+			{/if}
 		</section>
 	</section>
 

+ 12 - 0
web/src/routes/sharing/index.svelte

@@ -108,6 +108,18 @@
 					>
 				{/each}
 			</div>
+
+			<!-- Empty List -->
+			{#if sharedAlbums.length === 0}
+				<div
+					class="border p-5 w-[50%] m-auto mt-10 bg-gray-50 rounded-lg flex flex-col place-content-center place-items-center"
+				>
+					<img src="/empty-2.svg" alt="Empty shared album" width="500" />
+					<p class="text-center text-immich-text-gray-500">
+						Create a shared album to share photos and videos with people in your network
+					</p>
+				</div>
+			{/if}
 		</section>
 	</section>
 </section>

文件差異過大導致無法顯示
+ 0 - 0
web/static/empty-1.svg


文件差異過大導致無法顯示
+ 0 - 0
web/static/empty-2.svg


部分文件因文件數量過多而無法顯示