测试:修订间差异
来自SOKA CAFE
小 |
小 |
||
| (未显示同一用户的19个中间版本) | |||
| 第1行: | 第1行: | ||
<div style=" | <div style="width: 100%; max-width: 800px; margin: 0 auto !important; text-align: center; padding: 0 15px; box-sizing: border-box;"> | ||
''' | <div style="display: flex; align-items: center; justify-content: center; gap: 20px; font-family: {{{字体|serif}}}; width: 100%;"> | ||
<div style="font-size: 18px;margin-bottom: 15px;text-align: center;margin- | <div style="background: none; border: none; flex-shrink: 0;"> | ||
<div class="mini-block"> | [[文件:Soka Cafe Favicon.png|100x100px|无框|居中]] | ||
[[文件:2024080910430571.png| | </div> | ||
[[文件:20240722_111408.png| | <div style="text-align: center;"> | ||
<div style="font-size: min(5vw, 26px); font-weight: bold; margin-top: 20px; font-family: serif;">''' — SOKA CAFE —「エア本中文维基」'''</div> | |||
<div style="margin-top: 10px">'''◆ | {{折叠 | ||
<div style="margin-top: 10px">'''◆ | |数=1 | ||
<div style="margin-top: 13px;text-align: center">「よく来たわね、いらしゃい。」<br> | |展开= <div style="font-size: min(2.7vw, 18px); font-style: italic; margin-top: 10px; text-align: center; margin-bottom: 15px; font-family: serif;">''頭がパーン@wiki:中華エア本支部'' ▼</div></div></div></div> | ||
|收回= <div style="font-size: min(2.7vw, 18px); font-style: italic; margin-top: 10px; text-align: center; margin-bottom: 15px; font-family: serif;">''頭がパーン@wiki:中華エア本支部'' ▲</div></div></div></div> | |||
|内容= | |||
<div class="mini-block" style="font-size: min(3.5vw, 18px); font-family: serif; padding: 0 10px;"> | |||
[[文件:2024080910430571.png|220x220px|无框|右|link=柴田理惠]] | |||
[[文件:20240722_111408.png|220x220px|无框|左|link=久本雅美]] | |||
<div style="font-size: 16px;font-family:serif"> | |||
'''◆ 本站点是以创价学会成员为核心、以创价学会及其相关团体为线索组织,进行讨论、研究和二次创作的公益性交流论坛维基百科网站,欢迎您的到来!''' | |||
<div style="margin-top: 10px">'''◆ 本站点致力于营造和谐的社区环境,同时热烈欢迎任何人参与建设我们的网站。让我们一起共同来建设SOKA CAFE吧!'''</div> | |||
<div style="margin-top: 10px">'''◆ 本站点仅记录和展示由创价学会及相关人物衍生出的亚文化,非正式宗教维基,请注意!'''</div> | |||
<div style="margin-top: 13px;text-align: center"> | |||
「よく来たわね、いらしゃい。」<br>当前已有[[Special:Newpages|{{NUMBEROFARTICLES}}]]个条目,{{NUMBEROFEDITS}}次编辑,[[Special:活跃用户|2]]个活跃成员,上传了{{NUMBEROFFILES}}个文件。 | |||
</div> | </div> | ||
</div> | </div> | ||
}} | |||
</div> | </div> | ||
</div> | ---- | ||
</div> | <br> | ||
</div> | <html lang="zh-CN"> | ||
</div> | <head> | ||
<div style=" | <meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |||
<title>自适应轮播图</title> | |||
<style> | |||
* { | |||
margin: 0; | |||
padding: 0; | |||
box-sizing: border-box; | |||
} | |||
body { | |||
background: #f5f5f5; | |||
padding: 20px 0; | |||
} | |||
.header-container { | |||
width: 100%; | |||
padding: 0 20px; | |||
margin-bottom: 20px; | |||
} | |||
.carousel-section { | |||
width: 100%; | |||
display: flex; | |||
justify-content: flex-start; | |||
padding-left: 0; | |||
} | |||
.container { | |||
background: transparent; | |||
border-radius: 4px; | |||
padding: 0; | |||
box-shadow: none; | |||
overflow: hidden; | |||
margin: 0; | |||
} | |||
/* 电脑端 */ | |||
@media (min-width: 1025px) { | |||
.container { | |||
width: 31vw; | |||
max-width: none; | |||
min-width: auto; | |||
margin-right: auto; | |||
} | |||
.header-container { | |||
padding-left: calc(50vw + 40px); /* 调整标题位置与轮播图对齐 */ | |||
} | |||
} | |||
/* 平板端 */ | |||
@media (min-width: 769px) and (max-width: 1024px) { | |||
.container { | |||
width: 31vw; | |||
max-width: none; | |||
min-width: auto; | |||
margin-right: auto; | |||
} | |||
.header-container { | |||
padding-left: calc(50vw + 30px); | |||
} | |||
} | |||
/* 手机端 - 保持原有大小 */ | |||
@media (max-width: 768px) { | |||
.container { | |||
width: 92vw; | |||
max-width: 500px; | |||
margin: 15px auto; | |||
} | |||
.carousel-section { | |||
justify-content: center; | |||
} | |||
.header-container { | |||
padding-left: 0; | |||
text-align: center; | |||
} | |||
} | |||
/* 小手机设备 */ | |||
@media (max-width: 480px) { | |||
.container { | |||
width: 94vw; | |||
min-width: 260px | |||
margin: 10px auto; | |||
} | |||
} | |||
.carousel { | |||
position: relative; | |||
width: 100%; | |||
height: 100%; | |||
border-radius: 4px; | |||
overflow: hidden; | |||
} | |||
.carousel-wrapper { | |||
display: flex; | |||
width: 100%; | |||
height: 100%; | |||
transition: transform 0.5s ease; | |||
} | |||
.carousel-item { | |||
flex: 0 0 100%; | |||
width: 100%; | |||
height: 100%; | |||
display: flex; | |||
align-items: center; | |||
justify-content: center; | |||
background: #f0f0f0; /* 添加背景色以防图片加载慢时显示空白 */ | |||
} | |||
.carousel-link { | |||
display: block; | |||
width: 100%; | |||
height: 100%; | |||
} | |||
.carousel-item img { | |||
width: 100%; | |||
height: 100%; | |||
object-fit: cover; | |||
object-position: center; | |||
display: block; | |||
} | |||
.carousel-btn { | |||
position: absolute; | |||
top: 50%; | |||
transform: translateY(-50%); | |||
width: 36px; | |||
height: 36px; | |||
background: rgba(0,0,0,0.4); | |||
color: #fff; | |||
border: none; | |||
border-radius: 50%; | |||
font-size: 18px; | |||
cursor: pointer; | |||
z-index: 10; | |||
display: flex; | |||
align-items: center; | |||
justify-content: center; | |||
transition: background 0.3s; | |||
} | |||
.carousel-btn:hover { | |||
background: rgba(0,0,0,0.6); | |||
} | |||
.prev-btn { | |||
left: 12px; | |||
} | |||
.next-btn { | |||
right: 12px; | |||
} | |||
.carousel-indicators { | |||
position: absolute; | |||
bottom: 15px; | |||
left: 50%; | |||
transform: translateX(-50%); | |||
display: flex; | |||
gap: 8px; | |||
} | |||
.indicator { | |||
width: 10px; | |||
height: 10px; | |||
border-radius: 50%; | |||
background: rgba(255,255,255,0.5); | |||
cursor: pointer; | |||
transition: all 0.3s; | |||
} | |||
.indicator.active { | |||
background: #fff; | |||
transform: scale(1.2); | |||
} | |||
/* 平板设备按钮调整 */ | |||
@media (max-width: 1024px) { | |||
.carousel-btn { | |||
width: 32px; | |||
height: 32px; | |||
font-size: 16px; | |||
} | |||
} | |||
/* 手机设备按钮调整 */ | |||
@media (max-width: 768px) { | |||
.carousel-btn { | |||
width: 28px; | |||
height: 28px; | |||
font-size: 14px; | |||
opacity: 0.9; | |||
} | |||
.prev-btn { | |||
left: 8px; | |||
} | |||
.next-btn { | |||
right: 8px; | |||
} | |||
.carousel-indicators { | |||
bottom: 10px; | |||
} | |||
.indicator { | |||
width: 8px; | |||
height: 8px; | |||
} | |||
} | |||
/* 小手机设备按钮调整 */ | |||
@media (max-width: 480px) { | |||
.carousel-btn { | |||
width: 24px; | |||
height: 24px; | |||
font-size: 12px; | |||
} | |||
.prev-btn { | |||
left: 5px; | |||
} | |||
.next-btn { | |||
right: 5px; | |||
} | |||
.indicator { | |||
width: 6px; | |||
height: 6px; | |||
} | |||
} | |||
/* 标题样式 */ | |||
.main-title { | |||
font-size: min(4vw, 26px); | |||
margin-top: 20px; | |||
text-align: left; | |||
font-family: serif; | |||
padding: 0 10px; | |||
color: #333; | |||
} | |||
.sub-title { | |||
font-size: min(3vw, 18px); | |||
margin-bottom: 15px; | |||
text-align: left; | |||
margin-top: 10px; | |||
padding: 0 10px; | |||
color: #666; | |||
} | |||
@media (max-width: 768px) { | |||
.main-title, .sub-title { | |||
text-align: center; | |||
} | |||
} | |||
</style> | |||
</head> | |||
<body> | |||
<div class="carousel-section"> | |||
<div class="container"> | |||
<div class="carousel" id="carousel"> | |||
<div class="carousel-wrapper" id="carouselWrapper"> | |||
<div class="carousel-item"> | |||
<a href="https://soka.cafe/index.php?title=创学" class="carousel-link"> | |||
<img src="https://soka.cafe/Special:FilePath/新 解疑.png" alt="解惑"> | |||
</a> | |||
</div> | |||
<div class="carousel-item"> | |||
<a href="https://soka.cafe/index.php?title=维基观看与使用指南" class="carousel-link"> | |||
<img src="https://soka.cafe/Special:FilePath/新 导航.jpg" alt="维基观看与使用指南"> | |||
</a> | |||
</div> | |||
<div class="carousel-item"> | |||
<a href="https://soka.cafe/index.php?title=入站须知" class="carousel-link"> | |||
<img src="https://soka.cafe/Special:FilePath/新 条责.jpg" alt="入站须知"> | |||
</a> | |||
</div> | |||
</div> | |||
<button class="carousel-btn prev-btn" id="prevBtn"><</button> | |||
<button class="carousel-btn next-btn" id="nextBtn">></button> | |||
<div class="carousel-indicators" id="indicators"></div> | |||
</div> | |||
</div> | |||
</div> | |||
<script> | |||
const carouselWrapper = document.getElementById("carouselWrapper"); | |||
const prevBtn = document.getElementById("prevBtn"); | |||
const nextBtn = document.getElementById("nextBtn"); | |||
const indicators = document.getElementById("indicators"); | |||
const carouselItems = document.querySelectorAll(".carousel-item"); | |||
const itemCount = carouselItems.length; | |||
let currentIndex = 0; | |||
function renderIndicators() { | |||
indicators.innerHTML = ""; | |||
for (let i = 0; i < itemCount; i++) { | |||
const indicator = document.createElement("div"); | |||
indicator.className = `indicator ${i === currentIndex ? "active" : ""}`; | |||
indicator.addEventListener("click", () => goToSlide(i)); | |||
indicators.appendChild(indicator); | |||
} | |||
} | |||
function goToSlide(index) { | |||
currentIndex = index; | |||
carouselWrapper.style.transform = `translateX(-${currentIndex * 100}%)`; | |||
renderIndicators(); | |||
} | |||
function prevSlide() { | |||
currentIndex = (currentIndex - 1 + itemCount) % itemCount; | |||
goToSlide(currentIndex); | |||
} | |||
function nextSlide() { | |||
currentIndex = (currentIndex + 1) % itemCount; | |||
goToSlide(currentIndex); | |||
} | |||
let autoPlay = setInterval(nextSlide, 5000); | |||
const carousel = document.getElementById("carousel"); | |||
// 鼠标悬停时暂停自动播放 | |||
carousel.addEventListener("mouseenter", () => clearInterval(autoPlay)); | |||
carousel.addEventListener("mouseleave", () => { | |||
clearInterval(autoPlay); | |||
autoPlay = setInterval(nextSlide, 5000); | |||
}); | |||
// 触摸设备支持 | |||
let startX = 0; | |||
let endX = 0; | |||
carousel.addEventListener("touchstart", (e) => { | |||
startX = e.touches[0].clientX; | |||
clearInterval(autoPlay); | |||
}); | |||
carousel.addEventListener("touchend", (e) => { | |||
endX = e.changedTouches[0].clientX; | |||
if (startX - endX > 50) { | |||
nextSlide(); // 向左滑动 | |||
} else if (endX - startX > 50) { | |||
prevSlide(); // 向右滑动 | |||
} | |||
autoPlay = setInterval(nextSlide, 5000); | |||
}); | |||
prevBtn.addEventListener("click", prevSlide); | |||
nextBtn.addEventListener("click", nextSlide); | |||
// 初始化 | |||
renderIndicators(); | |||
// 窗口大小变化时重新计算 | |||
window.addEventListener("resize", () => { | |||
goToSlide(currentIndex); | |||
}); | |||
// 预加载图片,确保轮播图加载时图片已经准备好 | |||
window.addEventListener('load', () => { | |||
const images = document.querySelectorAll('.carousel-item img'); | |||
images.forEach(img => { | |||
if (img.complete) { | |||
// 图片已经加载完成 | |||
img.style.opacity = '1'; | |||
} else { | |||
// 图片正在加载 | |||
img.style.opacity = '0'; | |||
img.onload = () => { | |||
img.style.opacity = '1'; | |||
}; | |||
} | |||
}); | |||
}); | |||
</script> | |||
</body> | |||
</html> | |||
<br> | |||
[[文件:萌新引导.png|330x330px|无框|左|link=森雅晴]] | [[文件:萌新引导.png|330x330px|无框|左|link=森雅晴]] | ||
<div class="mini-block-container mini-block-list"> | <div class="mini-block-container mini-block-list"> | ||
<div class="mini-block"> | <div class="mini-block"> | ||
| 第45行: | 第440行: | ||
<div class="mini-block"> | <div class="mini-block"> | ||
<div style="font-size: 50px; font-weight: 200; text-align: right; height: 0; color: #f1f1f1; user-select: none; margin-bottom: 0">Creation</div> | <div style="font-size: 50px; font-weight: 200; text-align: right; height: 0; color: #f1f1f1; user-select: none; margin-bottom: 0">Creation</div> | ||
<div style="font-family:Huiwen;margin-bottom: 15px><big><big><big>🪶 | <div style="font-family:Huiwen;margin-bottom: 15px><big><big><big>🪶 术语与二创</big></big></big></div> | ||
<div id="left-column"> | <div id="left-column"> | ||
<li class="mdui-ripple">[[文件:Home6.png|无框|133x133像素|link=分类:词典概念]]</li> | <li class="mdui-ripple">[[文件:Home6.png|无框|133x133像素|link=分类:词典概念]]</li> | ||
| 第283行: | 第678行: | ||
</div> | </div> | ||
<div style="margin-top: 25px"></div> | <div style="margin-top: 25px"></div> | ||
[[文件: | [[文件:内容导航.png|330x330px|无框|左|link=元气安]] | ||
<div class="mini-block-container mini-block-list"> | <div class="mini-block-container mini-block-list"> | ||
<div class="mini-block"> | <div class="mini-block"> | ||
| 第321行: | 第716行: | ||
</div> | </div> | ||
<div style="margin-top: 25px"></div> | <div style="margin-top: 25px"></div> | ||
[[文件: | [[文件:猜你想找.png|330x330px|无框|左|link=古贺清]] | ||
<div class="mini-block-container mini-block-list"> | <div class="mini-block-container mini-block-list"> | ||
<div class="mini-block"> | <div class="mini-block"> | ||
2026年1月30日 (五) 18:00的最新版本
頭がパーン@wiki:中華エア本支部 ▲


Create
💻 创建页面
感谢您对SOKA CAFE的编辑贡献!但也请在过程中务必依照创作协议及版权,遵循CC BY-SA 3.0协议!
准备好了?来尝试创建页面吧!

Notice
⚠️ 入站须知
Soka Cafe一直是一个合作性、公益性的网站,我们致力于营造和谐的社区环境,并热情地欢迎任何人参与我们之间的创作,不论您的信仰、外表、地域.... 为了打造一个和谐的、无骚扰的社区环境,请通读入站须知,了解网站的性质及规则。
Plan
📄 任务计划
Soka Cafe的基本底层已大体完确! 现在的最紧要的人物是登场作品分区的规范及完成度!这对创学新人入坑的帮助极其重要! 没有相关技术不要紧,请使用“可视化编辑器”来进行编辑!如果有任何技术问题请在页面下方获取我们的联系方式!
Website
🛜 友情站点
日本创价学会Wiki
旧创价学会中文维基
亚文化维基
Cookie☆Wiki
新哲学维基
旧哲学维基
潮学维基
中文音MAD维基
OTOMAD Libraries
Aira软件库
HUIJIA FUN - Plurimod学生会官方站点
Contact
📞 联系我们
本站点以八叶莲华会社的名义设立,我们是中华阵营活跃的最大创价学会二创主题团体,欢迎各位对音MAD或AIR本文化感兴趣的各位加入我们团体!
八叶莲华会社QQ群聊:3681760584
八叶莲华会社QQ频道
八叶莲华会社Discord频道
前创价中文维基 群聊:1150098641
创价学会资源QQ群:256770365








