浏览代码

refac: her

Timothy J. Baek 10 月之前
父节点
当前提交
a2e30ace02
共有 2 个文件被更改,包括 16 次插入4 次删除
  1. 13 3
      src/app.html
  2. 3 1
      src/routes/+layout.svelte

+ 13 - 3
src/app.html

@@ -89,18 +89,19 @@
 					position: absolute;
 					position: absolute;
 					width: 12rem;
 					width: 12rem;
 					height: 12rem;
 					height: 12rem;
-					top: 32%;
+					top: 34%;
 					left: 50%;
 					left: 50%;
 					margin-left: -6rem;
 					margin-left: -6rem;
 				"
 				"
 				src="/logo.svg"
 				src="/logo.svg"
+				class="animate-pulse-fast"
 			/>
 			/>
 
 
 			<div
 			<div
 				id="progress-background"
 				id="progress-background"
 				style="
 				style="
 					position: absolute;
 					position: absolute;
-					top: 56%;
+					top: 58%;
 					left: 50%;
 					left: 50%;
 
 
 					margin-left: -12rem;
 					margin-left: -12rem;
@@ -117,7 +118,7 @@
 				id="progress-bar"
 				id="progress-bar"
 				style="
 				style="
 					position: absolute;
 					position: absolute;
-					top: 56%;
+					top: 58%;
 					left: 50%;
 					left: 50%;
 
 
 					margin-left: -12rem;
 					margin-left: -12rem;
@@ -186,4 +187,13 @@
 	html.her #progress-bar {
 	html.her #progress-bar {
 		display: block;
 		display: block;
 	}
 	}
+
+	@keyframes pulse {
+		50% {
+			opacity: 0.65;
+		}
+	}
+	.animate-pulse-fast {
+		animation: pulse 1.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
+	}
 </style>
 </style>

+ 3 - 1
src/routes/+layout.svelte

@@ -2,7 +2,9 @@
 	import { io } from 'socket.io-client';
 	import { io } from 'socket.io-client';
 	import { spring } from 'svelte/motion';
 	import { spring } from 'svelte/motion';
 
 
-	let loadingProgress = spring(0);
+	let loadingProgress = spring(0, {
+		stiffness: 0.05
+	});
 
 
 	import { onMount, tick, setContext } from 'svelte';
 	import { onMount, tick, setContext } from 'svelte';
 	import {
 	import {