Skip to content

Commit

Permalink
添加灯笼和雪花
Browse files Browse the repository at this point in the history
  • Loading branch information
Yang-qwq committed Jan 22, 2025
1 parent 6ee18f1 commit 63cc434
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 8 deletions.
41 changes: 38 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@
<link rel="stylesheet" href="https://unpkg.com/[email protected]/source/jquery.fancybox.css"
crossorigin="anonymous" />

<!-- 灯笼css -->
<link rel="stylesheet" type="text/css" href="https://github.yang-qwq.top/deng/deng.css">
<!-- <link rel="stylesheet" type="text/css" href="../deng/deng.css"> -->

<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/APlayer.min.css" crossorigin="anonymous" />

<!-- jQuery -->
Expand Down Expand Up @@ -372,6 +376,37 @@ <h2>摸鱼</h2>
</div>
</main>
<footer id="footer">
<!-- 灯笼1 -->
<div class="deng-box deng-box-left">
<div class="deng">
<div class="xian"></div>
<div class="deng-a">
<div class="deng-b">
<!-- <div class="deng-t">春</div> -->
</div>
</div>
<div class="shui shui-a">
<div class="shui-c"></div>
<div class="shui-b"></div>
</div>
</div>
</div>

<!-- 灯笼2 -->
<div class="deng-box deng-box-right">
<div class="deng">
<div class="xian"></div>
<div class="deng-a">
<div class="deng-b">
<!-- <div class="deng-t">节</div> -->
</div>
</div>
<div class="shui shui-a">
<div class="shui-c"></div>
<div class="shui-b"></div>
</div>
</div>
</div>
<div id="footer-wrap">
<div class="copyright">
&copy;Yang 2019 - 2024 | Powered by
Expand Down Expand Up @@ -412,7 +447,7 @@ <h2>摸鱼</h2>
<script async src="https://github.yang-qwq.top/CDN-for-itrhx.com/js/maodian.js" crossorigin="anonymous"></script>

<!-- 雪花 -->
<!-- <script src="https://unpkg.com/[email protected]/dist/snowflakes.bundle.min.js" crossorigin="anonymous"></script> -->
<script src="https://unpkg.com/[email protected]/dist/snowflakes.bundle.min.js" crossorigin="anonymous"></script>

<!-- 初始化计时器 -->
<script async>
Expand Down Expand Up @@ -473,12 +508,12 @@ <h2>摸鱼</h2>
</script>

<!-- 启动雪花 -->
<!-- <script async>
<script async>
new SnowScene('main', {
color: '#ffffff', // 雪花颜色 (默认 #ffffff)
volumn: 800, // 雪花数量/强度 (默认 300)
}).play();
</script> -->
</script>

<script>
// 为所有具有 data-click-href 属性的 div 添加点击事件
Expand Down
20 changes: 15 additions & 5 deletions static/css/responsive.css
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,11 @@
.blogtitle {
width: 95%;
}

/* 移动端不显示 */
.deng-box {
display: none;
}
}

@media screen and (min-width: 750px) {
Expand Down Expand Up @@ -82,22 +87,27 @@
}

.siteinfo-box {
flex: 1 1 calc(50% - 10px); /* 每个盒子尝试占据一行的一半宽度减去一些间隙 */
margin: 0.5rem 5px; /* 统一外边距 */
flex: 1 1 calc(50% - 10px);
/* 每个盒子尝试占据一行的一半宽度减去一些间隙 */
margin: 0.5rem 5px;
/* 统一外边距 */
padding: 0px 0.5rem;
border-radius: 0.5rem;
transition: transform 0.3s, box-shadow 0.3s;
overflow: hidden;
}

.siteinfo-box:nth-child(3) {
flex: 1 1 calc(50% - 10px); /* 第三个盒子与第一个盒子宽度相同 */
margin: 0.5rem 5px; /* 调整外边距以确保居中显示 */
flex: 1 1 calc(50% - 10px);
/* 第三个盒子与第一个盒子宽度相同 */
margin: 0.5rem 5px;
/* 调整外边距以确保居中显示 */
}

.sites-contair::after {
content: "";
flex: 1 1 calc(50% - 10px); /* 添加一个透明的伪元素以填充剩余空间 */
flex: 1 1 calc(50% - 10px);
/* 添加一个透明的伪元素以填充剩余空间 */
}

/* .blogtitle {
Expand Down

0 comments on commit 63cc434

Please sign in to comment.