ray-template/index.html

51 lines
4.0 KiB
HTML

<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/ray-template/ray.svg" />
<meta
name="viewport"
content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"
/>
<title>Ray Template</title>
<script type="module" crossorigin src="/ray-template/js/index-rJvBcjbC.js"></script>
<link rel="modulepreload" crossorigin href="/ray-template/js/rolldown-runtime-COiEfhsA.js">
<link rel="modulepreload" crossorigin href="/ray-template/js/toString-BWDzaUQG.js">
<link rel="modulepreload" crossorigin href="/ray-template/js/replaceable-DW6s2lkT.js">
<link rel="modulepreload" crossorigin href="/ray-template/js/cache-O_hPMSdv.js">
<link rel="modulepreload" crossorigin href="/ray-template/js/_toKey-BqfG5Sv9.js">
<link rel="modulepreload" crossorigin href="/ray-template/js/color-to-class-G4jmrDIg.js">
<link rel="modulepreload" crossorigin href="/ray-template/js/Card-D38P0NK6.js">
<link rel="modulepreload" crossorigin href="/ray-template/js/Tag-B0MkmlBr.js">
<link rel="modulepreload" crossorigin href="/ray-template/js/browser-m4QWgN_p.js">
<link rel="modulepreload" crossorigin href="/ray-template/js/Button-vr5e8LJV.js">
<link rel="modulepreload" crossorigin href="/ray-template/js/get-slot-jO3Rp7n2.js">
<link rel="modulepreload" crossorigin href="/ray-template/js/Input-CcCbIWFY.js">
<link rel="stylesheet" crossorigin href="/ray-template/css/index-gBvadnO5.css">
</head>
<style>:root{--preloading-tag-color:#ff6700;--preloading-title-color:#2d8cf0;--r-theme-primary-fade-color:#3b63d9d9;--r-theme-primary-color:#3b63d9;--global-loading-bg-color:#fff}@media (prefers-color-scheme:dark){#pre-loading-animation{background-color:var(--global-loading-bg-color)}}@media (prefers-color-scheme:light){#pre-loading-animation{background-color:var(--global-loading-bg-color)}}html.dark #pre-loading-animation,html.light #pre-loading-animation{background-color:var(--global-loading-bg-color)}#pre-loading-animation{color:var(--preloading-title-color);text-align:center;background-color:var(--global-loading-bg-color);position:fixed;inset:0}#pre-loading-animation .pre-loading-animation__wrapper{flex-direction:column;justify-content:center;align-items:center;width:100%;height:100%;display:flex}#pre-loading-animation .pre-loading-animation__wrapper .pre-loading-animation__wrapper-title{padding-bottom:48px;font-size:32px;font-weight:500}.pre-loading-animation__wrapper-loading{background-color:var(--preloading-tag-color);width:6px;height:10px;animation:1s ease-in-out -.2s infinite rectangle;display:block;position:relative}.pre-loading-animation__wrapper-loading:before,.pre-loading-animation__wrapper-loading:after{content:"";background-color:var(--preloading-tag-color);width:6px;height:10px;position:absolute}.pre-loading-animation__wrapper-loading:before{animation:1s ease-in-out -.4s infinite rectangle;left:-14px}.pre-loading-animation__wrapper-loading:after{animation:1s ease-in-out infinite rectangle;right:-14px}@keyframes rectangle{0%,80%,to{height:20px;box-shadow:0 0 var(--preloading-tag-color)}40%{height:30px;box-shadow:0 -20px var(--preloading-tag-color)}}</style>
<script>
;(function () {
const html = document.documentElement
const store = window.localStorage.getItem('piniaSettingStore')
const { _appTheme = false } = store ? JSON.parse(store) : {}
const loadingBgColor = _appTheme ? '#1c1e23' : '#ffffff'
html.classList.add(_appTheme ? 'dark' : 'light')
html.style.setProperty('--global-loading-bg-color', loadingBgColor)
html.style.setProperty('background-color', loadingBgColor)
})()
</script>
<body>
<div id="app"></div>
<div id="pre-loading-animation">
<div class="pre-loading-animation__wrapper">
<div class="pre-loading-animation__wrapper-title">
Ray Template
</div>
<div class="pre-loading-animation__wrapper-loading"></div>
</div>
</div>
</body>
</html>