refactor(app): remove unused components
This commit is contained in:
@@ -6,6 +6,4 @@ export * from "./splash-background";
|
||||
export * from "./splash-button";
|
||||
export * from "./splash-content";
|
||||
export * from "./splash-latest-message";
|
||||
export * from "./splash-loading";
|
||||
export * from "./splash-logo";
|
||||
export * from "./splash-progress";
|
||||
|
||||
@@ -1,12 +0,0 @@
|
||||
/**
|
||||
* Splash 加载状态
|
||||
*
|
||||
*
|
||||
*
|
||||
* 包装 `<LoadingIndicator>`,splash 阶段可能用于等待 auth 检查。
|
||||
*/
|
||||
import { LoadingIndicator } from "@/app/_components/core/loading-indicator";
|
||||
|
||||
export function SplashLoading() {
|
||||
return <LoadingIndicator size={48} color="var(--color-accent)" />;
|
||||
}
|
||||
@@ -1,28 +0,0 @@
|
||||
.wrapper {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: var(--responsive-inline-gap-xs, 4px);
|
||||
border-radius: var(--radius-full);
|
||||
background: rgba(255, 255, 255, 0.1);
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.bar {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
height: 100%;
|
||||
width: 30%;
|
||||
border-radius: var(--radius-full);
|
||||
background: linear-gradient(90deg, var(--color-accent), var(--color-facebook-button-gradient-end));
|
||||
animation: progress 1.5s ease-in-out infinite;
|
||||
}
|
||||
|
||||
@keyframes progress {
|
||||
0% {
|
||||
left: -30%;
|
||||
}
|
||||
100% {
|
||||
left: 100%;
|
||||
}
|
||||
}
|
||||
@@ -1,16 +0,0 @@
|
||||
/**
|
||||
* Splash 进度条
|
||||
*
|
||||
*
|
||||
*
|
||||
* 当前实现:简单 CSS 动画进度条,0 → 100% 1.5s。
|
||||
*/
|
||||
import styles from "./splash-progress.module.css";
|
||||
|
||||
export function SplashProgress() {
|
||||
return (
|
||||
<div className={styles.wrapper} role="progressbar" aria-valuemin={0} aria-valuemax={100}>
|
||||
<div className={styles.bar} />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user