This commit is contained in:
底层用户 2021-09-27 21:07:24 +08:00
parent e1151a35e6
commit 46ddf457a7
4 changed files with 121 additions and 13 deletions

View File

@ -222,7 +222,8 @@
.line, .line,
.main-img, .main-img,
.social, .social,
.close { .close,
#link-text {
animation: fade 0.5; animation: fade 0.5;
-webkit-animation: fade 0.5s; -webkit-animation: fade 0.5s;
-moz-animation: fade 0.5s; -moz-animation: fade 0.5s;

View File

@ -1,4 +1,5 @@
@charset"utf-8"; @charset"utf-8";
/*全局样式*/ /*全局样式*/
html, html,
body { body {
@ -66,6 +67,7 @@ main {
/*transform: translateY(240px);*/ /*transform: translateY(240px);*/
transform: translateY(40px); transform: translateY(40px);
} }
/* /*
.main-right { .main-right {
transform: translateY(38%); transform: translateY(38%);
@ -111,6 +113,7 @@ span.img-text {
border-radius: 6px; border-radius: 6px;
margin-top: 3.5rem; margin-top: 3.5rem;
max-width: 460px; max-width: 460px;
cursor:pointer;
} }
.des { .des {
@ -213,7 +216,7 @@ span.time-text {
/*更多页面*/ /*更多页面*/
.more { .more {
display: none; display: none !important;
width: 46%; width: 46%;
z-index: 999; z-index: 999;
position: fixed; position: fixed;
@ -227,7 +230,7 @@ span.time-text {
} }
.mores .more { .mores .more {
display: flex; display: flex !important;
justify-content: space-evenly; justify-content: space-evenly;
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
@ -252,6 +255,10 @@ span.time-text {
font-size: 1.45rem; font-size: 1.45rem;
} }
.close:hover {
transform: scale(1.2);
}
/*进度条*/ /*进度条*/
.progress { .progress {
width: 100%; width: 100%;
@ -285,6 +292,59 @@ span.time-text {
height: 48px !important; height: 48px !important;
} }
/*box*/
.box {
position: fixed;
left: 0;
right: 0;
top: 0;
bottom: 0;
z-index: 1996;
background-color: rgba(0, 0, 0, .5);
backdrop-filter: blur(20px);
animation: fade 0.3s;
}
.box-wrapper {
position: absolute;
top: 50%;
left: 50%;
-webkit-transform: translate(-50%, -50%);
transform: translate(-50%, -50%);
z-index: 1997;
width: 80%;
height: 80%;
background: rgb(255 255 255 / 40%);
border-radius: 6px;
-webkit-animation: fade .3s;
animation: fade .3s;
padding: 40px;
display: flex;
flex-direction: column;
justify-content: space-evenly;
}
.upnote {
margin-top: 2rem;
margin-left: 2rem;
display: flex;
flex-direction: column;
line-height: 40px;
font-size: 1.25rem;
}
.closebox {
left: auto;
top: 4px;
right: 8px;
font-size: 1.45rem;
}
.closebox:hover {
transform: scale(1.2);
}
/*页脚样式*/ /*页脚样式*/
footer { footer {
text-align: center; text-align: center;

View File

@ -70,7 +70,7 @@
<section id="section" class="section"> <section id="section" class="section">
<main id="main" class="main"> <main id="main" class="main">
<div class="container" id="container"> <div class="container" id="container">
<div class="row"> <div class="row" id="row">
<div class="col left"> <div class="col left">
<!--基本信息--> <!--基本信息-->
<div class="main-left"> <div class="main-left">
@ -211,12 +211,14 @@
<a class="munu-button cards" id="menu" onclick="switchMenu()"><i class="fad fa-bars"></i></a> <a class="munu-button cards" id="menu" onclick="switchMenu()"><i class="fad fa-bars"></i></a>
</div> </div>
<!--第二屏 Logo--> <!--第二屏 Logo-->
<div class="logo" style="display: none;"> <div class="logo" style="display: none">
<a>imsyy.top</a> <a>imsyy.top</a>
</div> </div>
<!--更多内容--> <!--更多内容-->
<div class="more cards" id="more"> <div class="more cards" id="more">
<div class="close fixed-top" onclick="switchMore()" id="close"><i class="fad fa-times-circle"></i></div> <!--关闭按钮-->
<div class="close fixed-top" onclick="switchMore()" id="close"><i class="fad fa-times-circle"></i>
</div>
<div class="line" style="margin-top: 1rem;"> <div class="line" style="margin-top: 1rem;">
<i class="fad fa-grip-lines-vertical"></i> <i class="fad fa-grip-lines-vertical"></i>
<span class="line-text">时间胶囊</span> <span class="line-text">时间胶囊</span>
@ -272,19 +274,41 @@
<div class="col 2"> <div class="col 2">
<a href="https://file.imsyy.top/" target="_blank"> <a href="https://file.imsyy.top/" target="_blank">
<div class="link-card cards"> <div class="link-card cards">
<span class="link-name">文件</span> <span class="link-name">文件</span>
</div> </div>
</a> </a>
</div> </div>
<div class="col"> <div class="col">
<a> <a onclick="openBox()">
<div class="link-card cards"> <div class="link-card cards">
<span class="link-name">还没搞</span> <span class="link-name">更多</span>
</div> </div>
</a> </a>
</div> </div>
</div> </div>
</div> </div>
<!--更多页面-->
<div class="box" id="box" style="display: none">
<div class="box-wrapper">
<!--关闭按钮-->
<div class="closebox fixed-top" onclick="closeBox()">
<i class="fad fa-times-circle"></i>
</div>
<!--更新日志-->
<div class="img-title">
<span class="img-title">imsyy</span>
<span class="img-text">.top</span>
<span class="img-text">&nbsp;&nbsp;v&nbsp;1.2</span>
</div>
<div class="upnote">
<span class="uptext"><i class="fad fa-plus-circle"></i>&nbsp;点击左侧简介可弹出隐藏页面</span>
<span class="uptext"><i class="fad fa-plus-circle"></i>&nbsp;新增时间胶囊( 时光进度条 </span>
<span class="uptext"><i class="fad fa-plus-circle"></i>&nbsp;隐藏页面新增更多页面弹窗</span>
<span class="uptext"><i class="fad fa-wrench"></i>&nbsp;星期进度条显示错误</span>
<span class="uptext"><i class="fad fa-wrench"></i>&nbsp;移动端动画及细节</span>
</div>
</div>
</div>
</div> </div>
</main> </main>
<footer id="footer" class="fixed-bottom footer"> <footer id="footer" class="fixed-bottom footer">

View File

@ -6,7 +6,7 @@ iziToast.settings({
position: 'topLeft', position: 'topLeft',
transitionIn: 'bounceInRight', transitionIn: 'bounceInRight',
transitionOut: 'fadeOutLeft', transitionOut: 'fadeOutLeft',
displayMode: '2', displayMode: 'replace',
layout: '2', layout: '2',
titleColor: '#efefef', titleColor: '#efefef',
messageColor: '#efefef', messageColor: '#efefef',
@ -46,8 +46,8 @@ color: rgb(30,152,255);
var title1 = '無名の主页' var title1 = '無名の主页'
var title2 = 'imsyy.top' var title2 = 'imsyy.top'
var content = ` var content = `
1.1.0 1.2.0
更新日期2021-09-26 19:39:21 更新日期2021-09-27 19:39:21
更新说明 更新说明
1. 新增 点击左侧简介弹出更多页面 1. 新增 点击左侧简介弹出更多页面
@ -237,6 +237,19 @@ function switchMore() {
} }
} }
//更多弹窗页面
function openBox() {
document.getElementById("box").style.cssText = "display: block";
document.getElementById("row").style.cssText = "display: none";
document.getElementById("more").style.cssText = "display: none!important";
}
function closeBox() {
document.getElementById("box").style.cssText = "display: none";
document.getElementById("row").style.cssText = "display: flex";
document.getElementById("more").style.cssText = "display: flex";
}
//监听网页宽度 //监听网页宽度
window.addEventListener('load', function () { window.addEventListener('load', function () {
//console.log(window.innerWidth); //console.log(window.innerWidth);
@ -262,3 +275,13 @@ $("#more").hover(function(){
},function(){ },function(){
document.getElementById("close").style.cssText = "display: none"; document.getElementById("close").style.cssText = "display: none";
}) })
//屏蔽右键
document.oncontextmenu = function(){
iziToast.info({
icon: 'fad fa-do-not-enter',
title: '温馨提醒',
message: '为了浏览体验,本站禁用右键'
});
return false;
}