Skip to content

Commit 850562c

Browse files
committed
UPDATE
1 parent b83b767 commit 850562c

1 file changed

Lines changed: 37 additions & 18 deletions

File tree

index.html

Lines changed: 37 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -10,54 +10,73 @@
1010
<meta name="viewport" content="width=device-width, initial-scale=1">
1111
<meta name="author" content="红蓝灯">
1212
<meta name="keywords" content="红蓝灯, RBL">
13+
<meta http-equiv="Content-Language" content="zh-CN">
14+
<meta name="robots" content="all">
1315
<script>
1416
function isIE() {
1517
return !!document.documentMode;
1618
}
1719
if (isIE()) {
1820
window.alert("检测到为IE浏览器,即将跳转到Edge下载界面...");
1921
console.warn("用户使用IE浏览器");
20-
location.href = "https://www.microsoft.com/zh-cn/edge/download";
22+
setTimeout(() =>{location.href = "https://www.microsoft.com/zh-cn/edge/download";}, 500);
2123
} else {
2224
console.info("用户使用非IE浏览器");
2325
}
2426
</script>
25-
<meta name="author" content="这里是红蓝灯的个人网站,时不时发点文章">
27+
<meta name="description" content="这里是红蓝灯的个人网站,时不时发点文章">
2628
<title>首页 - 红蓝灯的个人网站</title>
2729
<script src="include/prism.js"></script>
2830
<link href="include/prism.css" rel="stylesheet">
29-
</head>
30-
<body class="line-numbers">
31-
<p class="chinese">警告!本网站处于测试阶段!</p>
32-
<p class="english">Warning! Page is test!</p>
33-
<pre><code class="language-python">print("hi")
34-
import tkinter as tk
35-
</code></pre>
3631
<style>
37-
@font-face {
38-
font-family: "JetBrains Mono";
39-
src: url("include/JetBrainsMono.ttf") format("truetype");
32+
@font-face {
33+
font-family: "JetBrains Mono";
34+
src: url("include/JetBrainsMono.ttf") format("truetype");
35+
}
36+
37+
:root {
38+
--9_6-color: #999999;
39+
--5_6-color: #555555;
40+
--mono-font: "JetBrains Mono";
41+
--tahoma: Tahoma;
42+
--bg-img: url("include/bg.jpg");
4043
}
4144

4245
body {
43-
background-image: url("include/bg.jpg");
46+
background-image: var(--bg-img);
4447
background-size: cover;
4548
background-repeat: no-repeat;
4649
background-position: center center;
4750
background-attachment: fixed;
4851
min-height: 100%;
49-
background-color: #555555; /*避免无法加载导致出现纯白 Avoid failing to load and resulting in pure white*/
52+
background-color: var(--5_6-color,#555555); /*避免无法加载导致出现纯白 Avoid failing to load and resulting in pure white*/
5053
}
5154

5255
.chinese {
53-
font-family: Tahoma,system-ui;
56+
font-family: var(--tahoma),system-ui;
57+
color: var(--9_6-color,#999999);
5458
}
5559
.english {
56-
font-family: "JetBrains Mono",system-ui;
60+
font-family: var(--mono-font), system-ui;
61+
color: var(--9_6-color,#999999);
5762
}
58-
code {
59-
font-family: "JetBrains Mono",system-ui;
63+
code pre {
64+
font-family: var(--mono-font),system-ui;
6065
}
6166
</style>
67+
</head>
68+
<body class="line-numbers">
69+
<p class="chinese">警告!本网站处于测试阶段!</p>
70+
<p class="english">Warning! Page is test!</p>
71+
<pre><code class="language-python">print("Hello World!")
72+
</code></pre>
73+
<pre><code class="language-cpp">#include &lt;iostream&gt;
74+
using namespace std;
75+
int main()
76+
{
77+
cout &lt;&lt; "Hello World!" &lt;&lt; endl;
78+
return 0;
79+
}
80+
</code></pre>
6281
</body>
6382
</html>

0 commit comments

Comments
 (0)