| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296 |
- <!DOCTYPE html>
- <html lang="zh-CN">
- <head>
- <meta charset="UTF-8">
- <link rel="icon" href="/favicon.ico">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <meta name="theme-color" content="#eef5f1">
- <title>Flyfish File Viewer 在线预览器 Vue3</title>
- <style>
- :root {
- color-scheme: light;
- background: #eef5f1;
- }
- html,
- body {
- margin: 0;
- min-width: 320px;
- min-height: 100%;
- background: #eef5f1;
- color: #172033;
- font-family: Aptos, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
- -webkit-font-smoothing: antialiased;
- -moz-osx-font-smoothing: grayscale;
- }
- body {
- min-height: 100vh;
- }
- #app {
- min-height: 100vh;
- }
- /* Vue 挂载前的首屏骨架,避免大文件预览器资源加载期间出现空白或黑屏。 */
- .app-boot-screen {
- min-height: 100vh;
- display: grid;
- place-items: center;
- padding: 32px;
- background:
- linear-gradient(90deg, rgba(31, 150, 110, 0.07) 1px, transparent 1px),
- linear-gradient(180deg, rgba(31, 150, 110, 0.06) 1px, transparent 1px),
- linear-gradient(135deg, #eef5f1 0%, #f8fbff 52%, #edf7f2 100%);
- background-size: 28px 28px, 28px 28px, auto;
- box-sizing: border-box;
- }
- .app-boot-shell {
- width: min(960px, 100%);
- display: grid;
- grid-template-columns: minmax(220px, 0.85fr) minmax(320px, 1.45fr);
- gap: 18px;
- align-items: stretch;
- }
- .app-boot-brand,
- .app-boot-preview {
- min-width: 0;
- border: 1px solid rgba(114, 137, 161, 0.2);
- border-radius: 8px;
- background: rgba(255, 255, 255, 0.9);
- box-shadow: 0 24px 70px rgba(41, 66, 90, 0.12);
- }
- .app-boot-brand {
- display: flex;
- flex-direction: column;
- justify-content: space-between;
- padding: 26px;
- }
- .app-boot-title {
- display: flex;
- gap: 14px;
- align-items: center;
- }
- .app-boot-mark {
- width: 48px;
- height: 48px;
- display: grid;
- place-items: center;
- border-radius: 8px;
- background: #1f966e;
- color: #ffffff;
- font-size: 26px;
- font-weight: 800;
- line-height: 1;
- box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
- }
- .app-boot-name {
- display: block;
- font-size: 22px;
- font-weight: 800;
- line-height: 1.2;
- }
- .app-boot-status {
- display: block;
- margin-top: 6px;
- color: #6b7b8f;
- font-size: 14px;
- line-height: 1.5;
- }
- .app-boot-progress {
- position: relative;
- height: 6px;
- margin-top: 42px;
- overflow: hidden;
- border-radius: 999px;
- background: #dce7ee;
- }
- .app-boot-progress::after {
- position: absolute;
- inset: 0 auto 0 0;
- width: 42%;
- border-radius: inherit;
- background: linear-gradient(90deg, #1f966e, #3b82f6);
- animation: bootProgress 1.35s ease-in-out infinite;
- content: "";
- }
- .app-boot-preview {
- display: grid;
- grid-template-rows: auto 1fr;
- overflow: hidden;
- }
- .app-boot-toolbar {
- display: flex;
- gap: 8px;
- align-items: center;
- padding: 14px 16px;
- border-bottom: 1px solid rgba(114, 137, 161, 0.18);
- }
- .app-boot-dot {
- width: 10px;
- height: 10px;
- border-radius: 999px;
- background: #1f966e;
- }
- .app-boot-chip,
- .app-boot-line,
- .app-boot-page {
- background: linear-gradient(90deg, #eef3f7 0%, #f9fbfd 45%, #e7eff4 100%);
- background-size: 240% 100%;
- animation: bootShimmer 1.6s ease-in-out infinite;
- }
- .app-boot-chip {
- width: 86px;
- height: 18px;
- border-radius: 999px;
- }
- .app-boot-chip:nth-child(4) {
- width: 118px;
- margin-left: auto;
- }
- .app-boot-canvas {
- display: grid;
- grid-template-columns: 140px 1fr;
- gap: 18px;
- padding: 18px;
- background: #f4f8fb;
- }
- .app-boot-nav {
- display: grid;
- gap: 12px;
- align-content: start;
- }
- .app-boot-line {
- height: 14px;
- border-radius: 999px;
- }
- .app-boot-line:nth-child(2) {
- width: 72%;
- }
- .app-boot-line:nth-child(3) {
- width: 86%;
- }
- .app-boot-page {
- min-height: 300px;
- border: 1px solid rgba(114, 137, 161, 0.16);
- border-radius: 8px;
- background-color: #ffffff;
- }
- @keyframes bootProgress {
- 0% {
- transform: translateX(-110%);
- }
- 50% {
- transform: translateX(75%);
- }
- 100% {
- transform: translateX(240%);
- }
- }
- @keyframes bootShimmer {
- 0% {
- background-position: 160% 0;
- }
- 100% {
- background-position: -120% 0;
- }
- }
- @media (max-width: 720px) {
- .app-boot-screen {
- padding: 18px;
- }
- .app-boot-shell {
- grid-template-columns: 1fr;
- }
- .app-boot-brand {
- padding: 22px;
- }
- .app-boot-progress {
- margin-top: 26px;
- }
- .app-boot-canvas {
- grid-template-columns: 1fr;
- }
- .app-boot-nav {
- display: none;
- }
- }
- @media (prefers-reduced-motion: reduce) {
- .app-boot-progress::after,
- .app-boot-chip,
- .app-boot-line,
- .app-boot-page {
- animation: none;
- }
- }
- </style>
- </head>
- <body>
- <div id="app">
- <main class="app-boot-screen" role="status" aria-live="polite" aria-label="正在加载 Flyfish File Viewer">
- <div class="app-boot-shell">
- <section class="app-boot-brand">
- <div class="app-boot-title">
- <div class="app-boot-mark" aria-hidden="true">F</div>
- <div>
- <strong class="app-boot-name">Flyfish File Viewer</strong>
- <span class="app-boot-status">正在准备文档预览环境...</span>
- </div>
- </div>
- <div class="app-boot-progress" aria-hidden="true"></div>
- </section>
- <section class="app-boot-preview" aria-hidden="true">
- <div class="app-boot-toolbar">
- <span class="app-boot-dot"></span>
- <span class="app-boot-chip"></span>
- <span class="app-boot-chip"></span>
- <span class="app-boot-chip"></span>
- </div>
- <div class="app-boot-canvas">
- <div class="app-boot-nav">
- <span class="app-boot-line"></span>
- <span class="app-boot-line"></span>
- <span class="app-boot-line"></span>
- </div>
- <div class="app-boot-page"></div>
- </div>
- </section>
- </div>
- </main>
- </div>
- <script type="module" src="/src/main.ts"></script>
- </body>
- </html>
|