crystelf-plugin/constants/rss/rss_template.html
2025-05-20 13:20:38 +08:00

135 lines
3.3 KiB
HTML

<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<title>{{title}}</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.11.1/styles/default.min.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.11.1/highlight.min.js"></script>
<script>hljs.highlightAll();</script>
<style>
html, body {
margin: 0;
padding: 0;
font-family: "Helvetica Neue", sans-serif;
overflow-x: hidden;
position: relative;
min-height: 100vh;
}
.background {
top: 0;
left: 0;
min-height: 100vh;
height: 100%;
position: absolute;
width: 100%;
background-image: url('https://www.dmoe.cc/random.php');
background-size: cover;
background-position: center;
z-index: -2;
filter: blur(8px);
}
.container {
position: relative;
max-width: 760px;
margin: 60px auto;
padding: 30px;
background: rgba(0, 0, 0, 0.4);
border-radius: 12px;
backdrop-filter: blur(18px);
-webkit-backdrop-filter: blur(18px);
box-shadow: 0 10px 25px rgba(0,0,0,0.4);
border: 2px solid rgba(76, 175, 80, 0.7);
}
.container pre code {
font-family: 'Fira Code', 'Courier New', monospace;
font-size: 14px;
border-radius: 8px;
padding: 16px;
display: block;
overflow-x: auto;
background: rgba(0, 0, 0, 0.58);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.1);
color: #ffffff;
}
h1 {
margin-top: 0;
font-size: 26px;
color: #fff;
}
.meta {
font-size: 14px;
color: #ccc;
margin-bottom: 15px;
}
.content {
font-size: 16px;
line-height: 1.7;
color: #eee;
}
.content img {
max-width: 100%;
border-radius: 8px;
margin-top: 10px;
}
.footer {
margin-top: 30px;
font-size: 14px;
color: #aaa;
text-align: right;
}
.footer a {
color: #40e147;
text-decoration: none;
}
.footer a:hover {
text-decoration: underline;
}
.bottom-credit {
text-align: center;
font-size: 15px;
color: rgb(0, 0, 0);
margin: 60px 20px 20px;
}
@media (max-width: 800px) {
.container {
margin: 40px 16px;
padding: 20px;
}
}
</style>
</head>
<body>
<div class="background"></div>
<div class="container">
<h1>{{title}}</h1>
<div class="meta">作者:{{author}} | 发布于:{{date}}</div>
<div class="content">
{{content}}
</div>
<div class="footer">
来自 <a href="{{link}}" target="_blank">{{feedTitle}}</a>
</div>
</div>
<div class="bottom-credit">
Created by crystelf-plugin
</div>
</body>
</html>