返回列表 发布新帖
查看: 13|回复: 0

泥耶论坛地址发布页HTML源码

1802

主题

50

回帖

1万

积分

管理员

积分
17266
发表于 6 天前 | 查看全部 |阅读模式




  1. <!DOCTYPE html>
  2. <html lang="zh-CN">
  3. <head>
  4.     <meta charset="UTF-8">
  5.     <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6.     <title>泥耶论坛地址发布页,收藏我回家不迷路!</title>
  7.     <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
  8.     <style>
  9.         /* 基础样式 */
  10.         * {
  11.             margin: 0;
  12.             padding: 0;
  13.             box-sizing: border-box;
  14.             transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
  15.         }

  16.         body {
  17.             min-height: 100vh;
  18.             font-family: 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  19.             padding: 20px 15px;
  20.             display: flex;
  21.             justify-content: center;
  22.             align-items: center;
  23.         }

  24.         .container {
  25.             width: 100%;
  26.             max-width: 500px;
  27.             padding: 30px;
  28.             border-radius: 16px;
  29.             box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  30.         }

  31.         .header {
  32.             display: flex;
  33.             justify-content: space-between;
  34.             align-items: center;
  35.             margin-bottom: 30px;
  36.             padding-bottom: 15px;
  37.             border-bottom: 1px solid;
  38.         }

  39.         h1 {
  40.             font-size: 1.8rem;
  41.             font-weight: 600;
  42.             letter-spacing: -0.5px;
  43.         }

  44.         .actions {
  45.             display: flex;
  46.             gap: 12px;
  47.         }

  48.         .btn {
  49.             border: none;
  50.             border-radius: 8px;
  51.             padding: 10px 16px;
  52.             cursor: pointer;
  53.             font-size: 14px;
  54.             font-weight: 500;
  55.             display: flex;
  56.             align-items: center;
  57.             gap: 6px;
  58.         }

  59.         .bookmark-btn {
  60.             background-color: #3498db;
  61.             color: white;
  62.         }

  63.         .bookmark-btn:hover {
  64.             background-color: #2980b9;
  65.             transform: translateY(-2px);
  66.         }

  67.         .theme-btn {
  68.             width: 40px;
  69.             height: 40px;
  70.             padding: 0;
  71.             border-radius: 50%;
  72.             background-color: rgba(255, 255, 255, 0.1);
  73.             color: inherit;
  74.         }

  75.         .theme-btn:hover {
  76.             background-color: rgba(255, 255, 255, 0.2);
  77.             transform: rotate(15deg);
  78.         }

  79.         .links-grid {
  80.             display: grid;
  81.             gap: 18px;
  82.         }

  83.         .link-card {
  84.             padding: 20px;
  85.             border-radius: 12px;
  86.             transition: all 0.3s ease;
  87.         }

  88.         .link-card:hover {
  89.             transform: translateY(-5px);
  90.             box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  91.         }

  92.         .link-title {
  93.             font-size: 1.1rem;
  94.             font-weight: 600;
  95.             margin-bottom: 8px;
  96.             display: block;
  97.         }

  98.         .link-url {
  99.             text-decoration: none;
  100.             font-size: 0.95rem;
  101.             word-break: break-all;
  102.             display: inline-block;
  103.             padding: 2px 0;
  104.             position: relative;
  105.         }

  106.         .link-url::after {
  107.             content: '';
  108.             position: absolute;
  109.             width: 0;
  110.             height: 1px;
  111.             bottom: 0;
  112.             left: 0;
  113.             background-color: currentColor;
  114.             transition: width 0.3s ease;
  115.         }

  116.         .link-url:hover::after {
  117.             width: 100%;
  118.         }

  119.         .footer {
  120.             margin-top: 40px;
  121.             padding-top: 20px;
  122.             text-align: center;
  123.             font-size: 12px;
  124.         }

  125.         /* 响应式设计 */
  126.         @media (max-width: 480px) {
  127.             .container {
  128.                 padding: 20px 15px;
  129.             }

  130.             h1 {
  131.                 font-size: 1.5rem;
  132.             }

  133.             .actions {
  134.                 gap: 8px;
  135.             }

  136.             .btn {
  137.                 padding: 8px 12px;
  138.                 font-size: 13px;
  139.             }

  140.             .link-card {
  141.                 padding: 16px;
  142.             }
  143.         }

  144.         /* 黑暗模式 */
  145.         body.dark-mode {
  146.             background-color: #1a1a2e;
  147.             color: #e6e6e6;
  148.         }

  149.         body.dark-mode .container {
  150.             background-color: #16213e;
  151.         }

  152.         body.dark-mode .header {
  153.             border-bottom-color: rgba(255, 255, 255, 0.1);
  154.         }

  155.         body.dark-mode h1 {
  156.             color: #4cc9f0;
  157.         }

  158.         body.dark-mode .link-card {
  159.             background-color: #0f3460;
  160.         }

  161.         body.dark-mode .link-url {
  162.             color: #4cc9f0;
  163.         }

  164.         body.dark-mode .footer {
  165.             color: rgba(255, 255, 255, 0.5);
  166.         }

  167.         /* 明亮模式 */
  168.         body.light-mode {
  169.             background-color: #f8f9fa;
  170.             color: #2d3436;
  171.         }

  172.         body.light-mode .container {
  173.             background-color: white;
  174.         }

  175.         body.light-mode .header {
  176.             border-bottom-color: rgba(0, 0, 0, 0.1);
  177.         }

  178.         body.light-mode h1 {
  179.             color: #2980b9;
  180.         }

  181.         body.light-mode .link-card {
  182.             background-color: #f1f5f9;
  183.         }

  184.         body.light-mode .link-url {
  185.             color: #2980b9;
  186.         }

  187.         body.light-mode .footer {
  188.             color: rgba(0, 0, 0, 0.5);
  189.         }
  190.     </style>
  191. </head>
  192. <body class="light-mode">
  193.     <div class="container">
  194.         <div class="header">
  195.             <h1>地址发布页</h1>
  196.             <div class="actions">
  197.                 <button class="btn bookmark-btn" onclick="bookmarkPage()">
  198.                     <i class="fas fa-bookmark"></i> 收藏
  199.                 </button>
  200.                 <button class="btn theme-btn" onclick="toggleTheme()" title="切换主题">
  201.                     <i class="fas fa-moon" id="themeIcon"></i>
  202.                 </button>
  203.             </div>
  204.         </div>

  205.         <div class="links-grid">
  206.             <div class="link-card">
  207.                 <span class="link-title">泥耶论坛</span>
  208.                 <a href="https://www.niyelt.cc" target="_blank" class="link-url">https://www.niyelt.cc</a>
  209.             </div>

  210.             <div class="link-card">
  211.                 <span class="link-title">本站同款服务器</span>
  212.                 <a href="https://www.qiezic.com/aff/OUVNCPPQ" target="_blank" class="link-url">https://www.qiezic.com/aff/OUVNCPPQ</a>
  213.             </div>

  214.             <div class="link-card">
  215.                 <span class="link-title">三毛机场5元1200g</span>
  216.                 <a href="https://g-1.smjcdh.top/#/register?code=MMWgjJKw" target="_blank" class="link-url">https://g-1.smjcdh.top/#/register?code=MMWgjJKw</a>
  217.             </div>
  218.         </div>

  219.         <div class="footer">
  220.             Copyright &copy; 2025 niyelt.cc All Rights Reserved
  221.         </div>
  222.     </div>

  223.     <script>
  224.         // 主题管理 - 默认改为明亮模式
  225.         let currentTheme = 'light-mode';
  226.         
  227.         document.addEventListener('DOMContentLoaded', () => {
  228.             // 读取保存的主题偏好
  229.             const savedTheme = localStorage.getItem('siteTheme');
  230.             if (savedTheme) {
  231.                 setTheme(savedTheme);
  232.             } else {
  233.                 setTheme('light-mode'); // 默认使用明亮模式
  234.             }
  235.         });
  236.         
  237.         function toggleTheme() {
  238.             const newTheme = currentTheme === 'dark-mode' ? 'light-mode' : 'dark-mode';
  239.             setTheme(newTheme);
  240.             localStorage.setItem('siteTheme', newTheme);
  241.         }
  242.         
  243.         function setTheme(theme) {
  244.             const body = document.body;
  245.             const themeIcon = document.getElementById('themeIcon');
  246.             
  247.             body.classList.remove(currentTheme);
  248.             currentTheme = theme;
  249.             body.classList.add(currentTheme);
  250.             
  251.             // 更新主题图标
  252.             themeIcon.className = currentTheme === 'dark-mode' ? 'fas fa-sun' : 'fas fa-moon';
  253.         }
  254.         
  255.         // 收藏页面功能
  256.         function bookmarkPage() {
  257.             try {
  258.                 if (window.external && window.external.AddFavorite) {
  259.                     window.external.AddFavorite(window.location.href, document.title);
  260.                 } else if (window.sidebar && window.sidebar.addPanel) {
  261.                     window.sidebar.addPanel(document.title, window.location.href, "");
  262.                 } else {
  263.                     alert('收藏功能:请使用 Ctrl+D (Windows) 或 Command+D (Mac)');
  264.                 }
  265.             } catch (e) {
  266.                 alert('请使用 Ctrl+D (Windows) 或 Command+D (Mac) 收藏本页');
  267.             }
  268.         }
  269.     </script>
  270. <script charset="UTF-8" id="LA_COLLECT" src="//sdk.51.la/js-sdk-pro.min.js"></script>
  271. <script>LA.init({id:"KuTI5BDKT7RBW9k0",ck:"KuTI5BDKT7RBW9k0"})</script>
  272. </body>
  273. </html>
复制代码
源码演示地址:https://niyelt.pages.dev/

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

×
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关灯 在本版发帖
扫一扫添加微信客服
QQ客服返回顶部
快速回复 返回顶部 返回列表