Update
This commit is contained in:
parent
f161703032
commit
17850c3b2a
34
index.html
34
index.html
|
@ -30,6 +30,40 @@
|
|||
<meta name="og:description" content="It's me, 186526! | 186526 的自留地">
|
||||
|
||||
<link rel="manifest" href="./manifest.json">
|
||||
|
||||
<script>
|
||||
(function () {
|
||||
function getBroswer() {
|
||||
var sys = {};
|
||||
var ua = navigator.userAgent.toLowerCase();
|
||||
var s;
|
||||
(s = ua.match(/edge\/([\d.]+)/)) ? sys.edge = s[1] :
|
||||
(s = ua.match(/rv:([\d.]+)\) like gecko/)) ? sys.ie = s[1] :
|
||||
(s = ua.match(/msie ([\d.]+)/)) ? sys.ie = s[1] :
|
||||
(s = ua.match(/firefox\/([\d.]+)/)) ? sys.firefox = s[1] :
|
||||
(s = ua.match(/chrome\/([\d.]+)/)) ? sys.chrome = s[1] :
|
||||
(s = ua.match(/opera.([\d.]+)/)) ? sys.opera = s[1] :
|
||||
(s = ua.match(/version\/([\d.]+).*safari/)) ? sys.safari = s[1] : 0;
|
||||
|
||||
if (sys.edge) return { broswer: "Edge", version: sys.edge };
|
||||
if (sys.ie) return { broswer: "IE", version: sys.ie };
|
||||
if (sys.firefox) return { broswer: "Firefox", version: sys.firefox };
|
||||
if (sys.chrome) return { broswer: "Chrome", version: sys.chrome };
|
||||
if (sys.opera) return { broswer: "Opera", version: sys.opera };
|
||||
if (sys.safari) return { broswer: "Safari", version: sys.safari };
|
||||
|
||||
return { broswer: "", version: "0" };
|
||||
}
|
||||
|
||||
var broswerUA = getBroswer();
|
||||
|
||||
if (broswerUA.broswer == "IE") {
|
||||
document.body.innerHTML = '<div class="toast">去他妈的Internet Explorer,请使用现代浏览器访问该站点,例如<a href="http://aka.186526.xyz/Chrome">Chrome</a>、<a href="http://aka.186526.xyz/Firefox">Firefox</a>。</div>' + document.body.innerHTML;
|
||||
} else if (broswerUA.broswer == "chrome" && broswerUA.version <= 60) {
|
||||
document.body.innerHTML = '<div class="toast">摆脱旧版Chrome,请使用新版<a href="http://aka.186526.xyz/Chrome">Chrome</a>访问该站点。</div>' + document.body.innerHTML;
|
||||
}
|
||||
})()
|
||||
</script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
|
|
@ -15,16 +15,18 @@
|
|||
--linear-start-color: #f37335;
|
||||
--linear-end-color: #ff4200fc;
|
||||
--icon-size: 48px;
|
||||
--mask-color: rgba(255, 255, 255, 0.5);
|
||||
}
|
||||
|
||||
h2,
|
||||
h1 {
|
||||
font-family: "Google Sans", Roboto, Noto Sans SC, sans-serif;
|
||||
background: linear-gradient(
|
||||
background-image: linear-gradient(
|
||||
90deg,
|
||||
var(--linear-start-color),
|
||||
var(--linear-end-color)
|
||||
);
|
||||
) !important;
|
||||
color: transparent !important;
|
||||
-webkit-background-clip: text;
|
||||
background-clip: text;
|
||||
-webkit-text-fill-color: transparent;
|
||||
|
@ -46,10 +48,10 @@ body {
|
|||
background > p {
|
||||
visibility: hidden;
|
||||
position: absolute;
|
||||
top: 69vh;
|
||||
right: 0;
|
||||
color: var(--font-color-lighter);
|
||||
font-size: calc(var(--font-size-description) - 0.4rem);
|
||||
top: 69vh;
|
||||
right: 0;
|
||||
color: var(--font-color-lighter);
|
||||
font-size: calc(var(--font-size-description) - 0.4rem);
|
||||
}
|
||||
|
||||
background:hover > p {
|
||||
|
@ -66,6 +68,10 @@ a {
|
|||
margin: 6rem 2vw;
|
||||
}
|
||||
|
||||
.toast {
|
||||
margin: 0 2vw !important;
|
||||
}
|
||||
|
||||
:root {
|
||||
--font-size-main: 2.25rem;
|
||||
--font-size-description: 1.045rem;
|
||||
|
@ -94,6 +100,7 @@ icon {
|
|||
word-wrap: normal;
|
||||
direction: ltr;
|
||||
-webkit-font-feature-settings: "liga";
|
||||
font-feature-settings: "liga";
|
||||
-webkit-font-smoothing: antialiased;
|
||||
}
|
||||
|
||||
|
@ -105,7 +112,8 @@ background {
|
|||
min-width: 100%;
|
||||
min-height: 75vh;
|
||||
background-size: cover;
|
||||
background-image: url(https://storage.186526.xyz/home-app/assets/background.webp), url(https://storage.186526.xyz/home-app/assets/background.png);
|
||||
background-image: url(https://storage.186526.xyz/home-app/assets/background.webp),
|
||||
url(https://storage.186526.xyz/home-app/assets/background.png);
|
||||
z-index: -1;
|
||||
border-radius: 0 0 15px 15px;
|
||||
filter: blur(0.2px);
|
||||
|
@ -125,6 +133,7 @@ background {
|
|||
--working-with-error-color: #fdd663;
|
||||
--linear-start-color: #0c8cca;
|
||||
--linear-end-color: #00bdff;
|
||||
--mask-color: rgba(0, 0, 0, 0.5);
|
||||
}
|
||||
|
||||
background {
|
||||
|
@ -154,3 +163,21 @@ tooltiptext {
|
|||
visibility: visible;
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.toast {
|
||||
background: var(--mask-color);
|
||||
border-radius: 8px;
|
||||
display: block;
|
||||
padding: 0.4rem;
|
||||
width: 100%;
|
||||
|
||||
left: 0px;
|
||||
position: absolute;
|
||||
top: 8px;
|
||||
right: 0px;
|
||||
width: -webkit-fill-available;
|
||||
width: fill-available;
|
||||
margin: 0 5vw;
|
||||
|
||||
backdrop-filter: blur(15px);
|
||||
}
|
||||
|
|
|
@ -6,7 +6,7 @@ contents {
|
|||
right: 0vh;
|
||||
left: 0vh;
|
||||
|
||||
margin: 0vh 5vw;
|
||||
margin: 0vh calc(5vw - 0.5rem);
|
||||
|
||||
justify-content: center;
|
||||
align-items: flex-start;
|
||||
|
@ -72,6 +72,6 @@ group#footer > * {
|
|||
|
||||
@media screen and (max-width: 480px) {
|
||||
contents {
|
||||
margin: 0 2vw;
|
||||
margin: 0 calc(2vw - 0.5rem);
|
||||
}
|
||||
}
|
|
@ -33,7 +33,7 @@ header {
|
|||
flex-direction: column;
|
||||
justify-content: center;
|
||||
backdrop-filter: blur(15px);
|
||||
background-color: rgba(255, 255, 255, 0.5);
|
||||
background-color: var(--mask-color);
|
||||
border-radius: 15px;
|
||||
border: 10px;
|
||||
padding: 20px 40px;
|
||||
|
@ -61,9 +61,3 @@ header > img {
|
|||
width: fill-available;
|
||||
}
|
||||
}
|
||||
|
||||
@media (prefers-color-scheme: dark) {
|
||||
header {
|
||||
background-color: rgba(0, 0, 0, 0.5);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue