|
|
- <!DOCTYPE html>
- <html lang="zh-CN">
- <head>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <title>泥耶论坛地址发布页,收藏我回家不迷路!</title>
- <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
- <style>
- /* 基础样式 */
- * {
- margin: 0;
- padding: 0;
- box-sizing: border-box;
- transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
- }
- body {
- min-height: 100vh;
- font-family: 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
- padding: 20px 15px;
- display: flex;
- justify-content: center;
- align-items: center;
- }
- .container {
- width: 100%;
- max-width: 500px;
- padding: 30px;
- border-radius: 16px;
- box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
- }
- .header {
- display: flex;
- justify-content: space-between;
- align-items: center;
- margin-bottom: 30px;
- padding-bottom: 15px;
- border-bottom: 1px solid;
- }
- h1 {
- font-size: 1.8rem;
- font-weight: 600;
- letter-spacing: -0.5px;
- }
- .actions {
- display: flex;
- gap: 12px;
- }
- .btn {
- border: none;
- border-radius: 8px;
- padding: 10px 16px;
- cursor: pointer;
- font-size: 14px;
- font-weight: 500;
- display: flex;
- align-items: center;
- gap: 6px;
- }
- .bookmark-btn {
- background-color: #3498db;
- color: white;
- }
- .bookmark-btn:hover {
- background-color: #2980b9;
- transform: translateY(-2px);
- }
- .theme-btn {
- width: 40px;
- height: 40px;
- padding: 0;
- border-radius: 50%;
- background-color: rgba(255, 255, 255, 0.1);
- color: inherit;
- }
- .theme-btn:hover {
- background-color: rgba(255, 255, 255, 0.2);
- transform: rotate(15deg);
- }
- .links-grid {
- display: grid;
- gap: 18px;
- }
- .link-card {
- padding: 20px;
- border-radius: 12px;
- transition: all 0.3s ease;
- }
- .link-card:hover {
- transform: translateY(-5px);
- box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
- }
- .link-title {
- font-size: 1.1rem;
- font-weight: 600;
- margin-bottom: 8px;
- display: block;
- }
- .link-url {
- text-decoration: none;
- font-size: 0.95rem;
- word-break: break-all;
- display: inline-block;
- padding: 2px 0;
- position: relative;
- }
- .link-url::after {
- content: '';
- position: absolute;
- width: 0;
- height: 1px;
- bottom: 0;
- left: 0;
- background-color: currentColor;
- transition: width 0.3s ease;
- }
- .link-url:hover::after {
- width: 100%;
- }
- .footer {
- margin-top: 40px;
- padding-top: 20px;
- text-align: center;
- font-size: 12px;
- }
- /* 响应式设计 */
- @media (max-width: 480px) {
- .container {
- padding: 20px 15px;
- }
- h1 {
- font-size: 1.5rem;
- }
- .actions {
- gap: 8px;
- }
- .btn {
- padding: 8px 12px;
- font-size: 13px;
- }
- .link-card {
- padding: 16px;
- }
- }
- /* 黑暗模式 */
- body.dark-mode {
- background-color: #1a1a2e;
- color: #e6e6e6;
- }
- body.dark-mode .container {
- background-color: #16213e;
- }
- body.dark-mode .header {
- border-bottom-color: rgba(255, 255, 255, 0.1);
- }
- body.dark-mode h1 {
- color: #4cc9f0;
- }
- body.dark-mode .link-card {
- background-color: #0f3460;
- }
- body.dark-mode .link-url {
- color: #4cc9f0;
- }
- body.dark-mode .footer {
- color: rgba(255, 255, 255, 0.5);
- }
- /* 明亮模式 */
- body.light-mode {
- background-color: #f8f9fa;
- color: #2d3436;
- }
- body.light-mode .container {
- background-color: white;
- }
- body.light-mode .header {
- border-bottom-color: rgba(0, 0, 0, 0.1);
- }
- body.light-mode h1 {
- color: #2980b9;
- }
- body.light-mode .link-card {
- background-color: #f1f5f9;
- }
- body.light-mode .link-url {
- color: #2980b9;
- }
- body.light-mode .footer {
- color: rgba(0, 0, 0, 0.5);
- }
- </style>
- </head>
- <body class="light-mode">
- <div class="container">
- <div class="header">
- <h1>地址发布页</h1>
- <div class="actions">
- <button class="btn bookmark-btn" onclick="bookmarkPage()">
- <i class="fas fa-bookmark"></i> 收藏
- </button>
- <button class="btn theme-btn" onclick="toggleTheme()" title="切换主题">
- <i class="fas fa-moon" id="themeIcon"></i>
- </button>
- </div>
- </div>
- <div class="links-grid">
- <div class="link-card">
- <span class="link-title">泥耶论坛</span>
- <a href="https://www.niyelt.cc" target="_blank" class="link-url">https://www.niyelt.cc</a>
- </div>
- <div class="link-card">
- <span class="link-title">本站同款服务器</span>
- <a href="https://www.qiezic.com/aff/OUVNCPPQ" target="_blank" class="link-url">https://www.qiezic.com/aff/OUVNCPPQ</a>
- </div>
- <div class="link-card">
- <span class="link-title">三毛机场5元1200g</span>
- <a href="https://g-1.smjcdh.top/#/register?code=MMWgjJKw" target="_blank" class="link-url">https://g-1.smjcdh.top/#/register?code=MMWgjJKw</a>
- </div>
- </div>
- <div class="footer">
- Copyright © 2025 niyelt.cc All Rights Reserved
- </div>
- </div>
- <script>
- // 主题管理 - 默认改为明亮模式
- let currentTheme = 'light-mode';
-
- document.addEventListener('DOMContentLoaded', () => {
- // 读取保存的主题偏好
- const savedTheme = localStorage.getItem('siteTheme');
- if (savedTheme) {
- setTheme(savedTheme);
- } else {
- setTheme('light-mode'); // 默认使用明亮模式
- }
- });
-
- function toggleTheme() {
- const newTheme = currentTheme === 'dark-mode' ? 'light-mode' : 'dark-mode';
- setTheme(newTheme);
- localStorage.setItem('siteTheme', newTheme);
- }
-
- function setTheme(theme) {
- const body = document.body;
- const themeIcon = document.getElementById('themeIcon');
-
- body.classList.remove(currentTheme);
- currentTheme = theme;
- body.classList.add(currentTheme);
-
- // 更新主题图标
- themeIcon.className = currentTheme === 'dark-mode' ? 'fas fa-sun' : 'fas fa-moon';
- }
-
- // 收藏页面功能
- function bookmarkPage() {
- try {
- if (window.external && window.external.AddFavorite) {
- window.external.AddFavorite(window.location.href, document.title);
- } else if (window.sidebar && window.sidebar.addPanel) {
- window.sidebar.addPanel(document.title, window.location.href, "");
- } else {
- alert('收藏功能:请使用 Ctrl+D (Windows) 或 Command+D (Mac)');
- }
- } catch (e) {
- alert('请使用 Ctrl+D (Windows) 或 Command+D (Mac) 收藏本页');
- }
- }
- </script>
- <script charset="UTF-8" id="LA_COLLECT" src="//sdk.51.la/js-sdk-pro.min.js"></script>
- <script>LA.init({id:"KuTI5BDKT7RBW9k0",ck:"KuTI5BDKT7RBW9k0"})</script>
- </body>
- </html>
复制代码
|
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?立即注册
×
|