Main Page: Difference between revisions

From yangwa
No edit summary
No edit summary
Line 2: Line 2:


{{#if:{{#ifeq:{{USERID}}|0|0|1}}|
{{#if:{{#ifeq:{{USERID}}|0|0|1}}|
<!-- 未登录用户视图(暗色 + DNA + 顶栏到底部 + 鼠标移入顶部显示 + 双按钮统一暗色) -->
<!-- 未登录用户视图:深暗背景 + 悬浮DNA + 鼠标悬停顶栏 + 双按钮 -->
<html>
<html>


   <style>
   <style>
     /* 🌑 暗色背景 */
     /* 🌑 深暗背景 + 白色文字 */
     body {
     body {
       background-color: #121212;
       background-color: #0a0a0a !important;
       color: #eeeeee;
       color: #ffffff;
     }
     }


     /* 📦 顶部栏隐藏 + 鼠标悬停顶部显示 */
     /* 顶栏默认隐藏,鼠标悬停再显示 */
     body.page-Main_Page #mw-head-base,
     body.page-Main_Page #mw-head-base,
     body.page-Main_Page #p-personal,
     body.page-Main_Page #p-personal,
Line 45: Line 45:
       pointer-events: none;
       pointer-events: none;
       z-index: 0;
       z-index: 0;
       color: #bbb;
       color: #aaa;
     }
     }


Line 52: Line 52:
     .dna3 { top: 60%; left: 50%; animation-delay: 3s; }
     .dna3 { top: 60%; left: 50%; animation-delay: 3s; }


     /* 🔘 按钮 hover 效果 */
     /* 按钮 hover 效果 */
     .login-btn:hover,
     .login-btn:hover,
     .intro-btn:hover {
     .intro-btn:hover {
       background-color: #495057 !important;
       background-color: #555 !important;
       transform: scale(1.05);
       transform: scale(1.05);
     }
     }


     /* 🧼 隐藏 Wiki logo */
     /* 隐藏 wiki logo */
     #p-logo {
     #p-logo {
       display: none !important;
       display: none !important;
Line 73: Line 73:
   <div style="display:flex; flex-direction:column; align-items:center; justify-content:center; height:90vh; font-family:'Segoe UI',sans-serif; text-align:center; padding: 20px; position:relative; z-index:2;">
   <div style="display:flex; flex-direction:column; align-items:center; justify-content:center; height:90vh; font-family:'Segoe UI',sans-serif; text-align:center; padding: 20px; position:relative; z-index:2;">


     <h1 style="font-size: 32px; margin-bottom: 16px;">Welcome to the Lab of Synthetic Biopharmaceutics</h1>
     <h1 style="font-size: 32px; margin-bottom: 16px; color: #ffffff;">
      Welcome to the Lab of Synthetic Biopharmaceutics
    </h1>


     <p style="font-size: 16px; color: #bbb; margin-bottom: 40px;">
     <p style="font-size: 16px; color: #bbbbbb; margin-bottom: 40px;">
       Please log in to access Labwiki content.
       Please log in to access Labwiki content.
     </p>
     </p>


     <!-- ✅ 按钮组:统一暗色 -->
     <!-- 🔘 按钮区 -->
     <div style="display: flex; gap: 20px; justify-content: center; flex-wrap: wrap;">
     <div style="display: flex; gap: 20px; justify-content: center; flex-wrap: wrap;">


       <a href="/index.php?title=Special:UserLogin&returnto=Project:Dashboard"  
       <a href="/index.php?title=Special:UserLogin&returnto=Project:Dashboard"  
         class="login-btn"
         class="login-btn"
         style="padding: 12px 32px; background-color:#343a40; color:white; border-radius:8px; text-decoration:none; font-size:16px; transition: all 0.3s ease;">
         style="padding: 12px 32px; background-color:#222; color:white; border-radius:8px; text-decoration:none; font-size:16px; transition: all 0.3s ease;">
         Log in
         Log in
       </a>
       </a>
Line 90: Line 92:
       <a href="/index.php?title=Project:GroupIntro"  
       <a href="/index.php?title=Project:GroupIntro"  
         class="intro-btn"
         class="intro-btn"
         style="padding: 12px 32px; background-color:#343a40; color:white; border-radius:8px; text-decoration:none; font-size:16px; transition: all 0.3s ease;">
         style="padding: 12px 32px; background-color:#222; color:white; border-radius:8px; text-decoration:none; font-size:16px; transition: all 0.3s ease;">
         Group Introduction
         Group Introduction
       </a>
       </a>
Line 96: Line 98:
     </div>
     </div>


     <div style="margin-top: 60px; font-size: 12px; color: #666;">
     <div style="margin-top: 60px; font-size: 12px; color: #888888;">
       © 2025 Yangwa Lab · <a href="https://beian.miit.gov.cn" target="_blank" style="color: #888; text-decoration: none;">蜀ICP备2025131392号</a>
       © 2025 Yangwa Lab · <a href="https://beian.miit.gov.cn" target="_blank" style="color: #888888; text-decoration: none;">蜀ICP备2025131392号</a>
     </div>
     </div>


Line 105: Line 107:


|
|
<!-- 👤 登录后视图 -->
<!-- 登录后视图 -->
== Welcome ==
== Welcome ==
You are now logged in. This is the main page content visible only to authenticated users.
You are now logged in. This is the main page content visible only to authenticated users.
}}
}}

Revision as of 02:23, 12 April 2025


🧬
🧬
🧬

Welcome to the Lab of Synthetic Biopharmaceutics

Please log in to access Labwiki content.

© 2025 Yangwa Lab · 蜀ICP备2025131392号