update
continuous-integration/drone/push Build is passing Details

This commit is contained in:
186526 2024-02-26 21:55:56 +08:00
parent b4b5bebaf4
commit 3d91194116
4 changed files with 182 additions and 171 deletions

View File

@ -190,6 +190,8 @@
<p>「長い夜の終わりを信じながら」<br>“仍信长夜终破晓”</p> <p>「長い夜の終わりを信じながら」<br>“仍信长夜终破晓”</p>
<p>「人生全部が馬鹿みたいなのに」<br>“人生什么的全部明明愚蠢至极”</p> <p>「人生全部が馬鹿みたいなのに」<br>“人生什么的全部明明愚蠢至极”</p>
<p>「牡丹は散っても花だ 夏が去っても追慕は切だ」<br>“牡丹落尽亦是花,夏去秋来思愈切。”</p> <p>「牡丹は散っても花だ 夏が去っても追慕は切だ」<br>“牡丹落尽亦是花,夏去秋来思愈切。”</p>
<p>「きっと、人生最後の日も愛をうたうのだろう」<br>“我一定也会在人生最后的日子讴歌着爱”</p>
<p>「もうちょっとだけ貴方を探せたら もう一歩だけ歩いてみれるかな」<br>“如果再稍稍去寻找一下你的话,我就能再向前踏出一步了吧”</p>
<p>人生、二十七で死ねるならロックンロールは僕を救った</p> <p>人生、二十七で死ねるならロックンロールは僕を救った</p>
</none> </none>

View File

@ -10,7 +10,7 @@ import Tippy from 'tippy.js';
import 'tippy.js/dist/tippy.css'; import 'tippy.js/dist/tippy.css';
import 'tippy.js/animations/scale.css'; import 'tippy.js/animations/scale.css';
window.addEventListener("load", (_ev) => { window.addEventListener("DOMContentLoaded", (_ev) => {
new Typed(document.querySelector("description") ?? "description", { new Typed(document.querySelector("description") ?? "description", {
stringsElement: "#description-list", stringsElement: "#description-list",
shuffle: true, shuffle: true,

View File

@ -1,160 +1,160 @@
:root { :root {
--background-color: #fff; --background-color: #fff;
--font-color: #000; --font-color: #000;
--font-color-lighter: rgb(87, 89, 88); --font-color-lighter: rgb(87, 89, 88);
--font-size-main: 3.045rem; --font-size-main: 3.045rem;
--font-size-description: 1.245rem; --font-size-description: 1.245rem;
--lineheight-description: 1.845rem; --lineheight-description: 1.845rem;
--box-color: rgba(242, 242, 242, 0.5); --box-color: rgba(242, 242, 242, 0.5);
--working-color: #137333; --working-color: #137333;
--working-color-background: #e6f4ea; --working-color-background: #e6f4ea;
--error-color-background: #fce8e6; --error-color-background: #fce8e6;
--error-color: #c5221f; --error-color: #c5221f;
--working-with-error-color: #b05a00; --working-with-error-color: #b05a00;
--working-with-error-color-background: #fef7e0; --working-with-error-color-background: #fef7e0;
--linear-start-color: #f37335; --linear-start-color: #f37335;
--linear-end-color: #ff4200fc; --linear-end-color: #ff4200fc;
--icon-size: 48px; --icon-size: 48px;
--mask-color: rgba(255, 255, 255, 0.5); --mask-color: rgba(255, 255, 255, 0.5);
} }
h2, h2,
h1 { h1 {
font-family: "Google Sans", Roboto, Noto Sans SC, sans-serif; font-family: "Google Sans", Roboto, Noto Sans SC, sans-serif;
background-image: linear-gradient( color: var(--linear-end-color);
90deg, background-image: linear-gradient(
var(--linear-start-color), 90deg,
var(--linear-end-color) var(--linear-start-color),
) !important; var(--linear-end-color)
color: transparent !important; );
-webkit-background-clip: text; -webkit-background-clip: text;
background-clip: text; background-clip: text;
-webkit-text-fill-color: transparent; -webkit-text-fill-color: transparent;
} }
div, div,
p { p {
font-family: Roboto, Noto Sans SC, sans-serif; font-family: Roboto, Noto Sans SC, sans-serif;
line-height: 140%; line-height: 140%;
} }
body { body {
margin: 20vh calc(10vw - 0.5rem); margin: 20vh calc(10vw - 0.5rem);
font-family: Roboto, Noto Sans SC, sans-serif; font-family: Roboto, Noto Sans SC, sans-serif;
color: var(--font-color); color: var(--font-color);
background-color: var(--background-color); background-color: var(--background-color);
} }
background > p { background > p {
visibility: hidden; visibility: hidden;
position: absolute; position: absolute;
top: 69vh; top: 69vh;
right: 0; right: 0;
color: var(--font-color-lighter); color: var(--font-color-lighter);
font-size: calc(var(--font-size-description) - 0.4rem); font-size: calc(var(--font-size-description) - 0.4rem);
} }
background:hover > p { background:hover > p {
visibility: visible; visibility: visible;
} }
a { a {
text-decoration: none; text-decoration: none;
color: #1e7dff; color: #1e7dff;
} }
@media screen and (max-width: 480px) { @media screen and (max-width: 480px) {
body { body {
margin: 20vh calc(4vw - 0.5rem); margin: 20vh calc(4vw - 0.5rem);
} }
.toast { .toast {
margin: 0 2vw !important; margin: 0 2vw !important;
} }
:root { :root {
--font-size-main: 2.25rem; --font-size-main: 2.25rem;
--font-size-description: 1.045rem; --font-size-description: 1.045rem;
} }
} }
code { code {
font-family: Fira Mono, monospace; font-family: Fira Mono, monospace;
} }
none { none {
display: none; display: none;
} }
icon { icon {
vertical-align: middle; vertical-align: middle;
font-size: 48px; font-size: 48px;
font-family: "Material Icons Outlined"; font-family: "Material Icons Outlined";
font-weight: normal; font-weight: normal;
font-style: normal; font-style: normal;
line-height: 1; line-height: 1;
letter-spacing: normal; letter-spacing: normal;
text-transform: none; text-transform: none;
display: inline-block; display: inline-block;
white-space: nowrap; white-space: nowrap;
word-wrap: normal; word-wrap: normal;
direction: ltr; direction: ltr;
-webkit-font-feature-settings: "liga"; -webkit-font-feature-settings: "liga";
font-feature-settings: "liga"; font-feature-settings: "liga";
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
} }
background { background {
top: 0px; top: 0px;
right: 0px; right: 0px;
float: right; float: right;
position: absolute; position: absolute;
width: 100%; width: 100%;
height: 95%; height: 95%;
max-height: 86vh; max-height: 86vh;
background-size: cover; background-size: cover;
background-image: url(/resources/background.webp), background-image: url(/resources/background.webp),
url(/resources/background.png); url(/resources/background.png);
z-index: -1; z-index: -1;
border-radius: 0 0 15px 15px; border-radius: 0 0 15px 15px;
filter: blur(0.2px); filter: blur(0.2px);
} }
@media (prefers-color-scheme: dark) { @media (prefers-color-scheme: dark) {
:root { :root {
--font-color: #e8eaed; --font-color: #e8eaed;
--font-color-lighter: #9aa0a6; --font-color-lighter: #9aa0a6;
--background-color: #121212; --background-color: #121212;
--box-color: rgb(40 40 40 / 73%); --box-color: rgb(40 40 40 / 73%);
--working-color-background: rgba(129, 201, 149, 0.24); --working-color-background: rgba(129, 201, 149, 0.24);
--error-color-background: rgba(242, 139, 130, 0.24); --error-color-background: rgba(242, 139, 130, 0.24);
--working-with-error-color-background: rgba(253, 214, 99, 0.24); --working-with-error-color-background: rgba(253, 214, 99, 0.24);
--working-color: #81c995; --working-color: #81c995;
--error-color: #f28b82; --error-color: #f28b82;
--working-with-error-color: #fdd663; --working-with-error-color: #fdd663;
--linear-start-color: #0c8cca; --linear-start-color: #0c8cca;
--linear-end-color: #00bdff; --linear-end-color: #00bdff;
--mask-color: rgba(0, 0, 0, 0.5); --mask-color: rgba(0, 0, 0, 0.5);
} }
background { background {
filter: brightness(50%); filter: brightness(50%);
} }
} }
.toast { .toast {
background: var(--mask-color); background: var(--mask-color);
border-radius: 8px; border-radius: 8px;
display: block; display: block;
padding: 0.4rem; padding: 0.4rem;
width: 100%; width: 100%;
left: 0px; left: 0px;
position: absolute; position: absolute;
top: 8px; top: 8px;
right: 0px; right: 0px;
width: stretch; width: stretch;
margin: 0 5vw; margin: 0 5vw;
backdrop-filter: blur(15px); backdrop-filter: blur(15px);
} }

View File

@ -1,59 +1,68 @@
{ {
"routes": [ "routes": [
{ {
"src": "/(.*)", "src": "/(.*)",
"headers": { "headers": {
"Cache-Control": "s-maxage=1209600, max-age=86400, public", "Cache-Control": "s-maxage=1209600, max-age=86400, public",
"Strict-Transport-Security": "max-age=63072000; includeSubDomains; preload", "Strict-Transport-Security": "max-age=63072000; includeSubDomains; preload",
"Access-Control-Allow-Origin": "*", "Access-Control-Allow-Origin": "*",
"Access-Control-Allow-Methods": "GET, POST, PUT, DELETE, OPTIONS", "Access-Control-Allow-Methods": "GET, POST, PUT, DELETE, OPTIONS",
"Access-Control-Allow-Headers": "Accept, Authorization, Cache-Control, Content-Type, DNT, If-Modified-Since, Keep-Alive, Origin, User-Agent, X-Requested-With, Token, x-access-token" "Access-Control-Allow-Headers": "Accept, Authorization, Cache-Control, Content-Type, DNT, If-Modified-Since, Keep-Alive, Origin, User-Agent, X-Requested-With, Token, x-access-token"
}, },
"continue": true "continue": true
}, },
{ { "handle": "filesystem" },
"src": "/goto/github", {
"status": 302, "src": "/goto/github",
"headers": { "status": 302,
"Location": "https://github.com/186526" "headers": {
} "Location": "https://github.com/186526"
}, }
{ },
"src": "/goto/telegram", {
"status": 302, "src": "/goto/telegram",
"headers": { "status": 302,
"Location": "https://t.me/real186526" "headers": {
} "Location": "https://t.me/real186526"
}, }
{ },
"src": "/goto/blog", {
"status": 302, "src": "/goto/blog",
"headers": { "status": 302,
"Location": "https://blog.186526.xyz" "headers": {
} "Location": "https://blog.186526.xyz"
}, }
{ },
"src": "/goto/email", {
"status": 302, "src": "/goto/email",
"headers": { "status": 302,
"Location": "mailto:i@186526.xyz" "headers": {
} "Location": "mailto:i@186526.xyz"
}, }
{ },
"src": "/generate_204", {
"status": 204, "src": "/generate_204",
"headers": { "status": 204,
"X-Powered-By": "SW2Express", "headers": {
"Server": "sw=>express" "X-Powered-By": "SW2Express",
} "Server": "sw=>express"
}, }
{ },
"src": "/v2/(.*)", {
"dest": "https://registry.186526.xyz/v2/$1" "src": "/v2/(.*)",
}, "dest": "https://registry.186526.xyz/v2/$1"
{ },
"src": "/shields.io/(.*)", {
"dest": "https://img.shields.io/$1" "src": "/shields.io/(.*)",
} "dest": "https://img.shields.io/$1"
] },
} {
"src": "/(.*)",
"status": 302,
"headers": {
"Location": "/?from=$1"
},
"continue": false
}
]
}