Skip to content

Commit

Permalink
update friendly link and RSS link
Browse files Browse the repository at this point in the history
  • Loading branch information
Lvista committed Jan 10, 2025
1 parent 23e0105 commit 7a9388b
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 26 deletions.
48 changes: 26 additions & 22 deletions docs/css/float_cards.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@
flex-flow: row wrap;
flex-wrap: wrap;
align-content: flex-start;
text-align: center;
}

.card-container .content {
text-align: center;
}

.card-container .card {
Expand All @@ -20,66 +25,65 @@
/* 固定宽度,或者根据需要调整 */
padding: 10px;
/* 添加内边距 */
border-radius: 15px;
border-radius: 50px;
background: #1e2129;
border: 1px solid rgba(255, 255, 255, 0.5);
margin: 10px;
border: 2px solid rgba(255, 255, 255, 0.5);
margin: 5px;
/* 卡片之间的间距 */
/* box-shadow: 0 4px 8px rgb(255, 255, 255); */
}

.card-container .card .content {
padding: 6px;
text-align: left;
padding-left: 6px;
text-align: center;
}

.card-container .card .content h3 {
font-size: 1.8em;
z-index: 1;
text-align: center;
}

.card-container .card .content p {
/* .card-container .card .content p {
font-size: 1em;
font-weight: 300;
}
} */

.card-container .card .content a {
position: relative;
display: inline-block;
padding: 8px 20px;
margin-top: 15px;
background: #4433ff;
border-radius: 20px;
text-decoration: none;
font-weight: 500;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
color: #fff;
outline: none;
border: 2px solid #4433ff;
}

.card-container .card .content a:hover {
background: #fff;
color: #4433ff;
/* background: #fff; */
color: #3355ff;
}

.card-container .card .img-container {
width: 60px;
width: 50px;
/* 图片容器宽度 */
height: 60px;
height: 50px;
/* 图片容器高度 */
margin-right: 3px;
margin-right: 0px;
/* 图片和文字之间的间距 */
flex-shrink: 0;
/* flex-shrink: 20px; */
/* 防止图片缩小 */
overflow: hidden;
display: flex;
/* 使用 flex 布局 */
align-items: center;
border-radius: 70%;
text-align: center;
/* border-radius: 70%; */
/* border: 2px solid rgba(255, 255, 255, 0.5); */
/* 如果需要圆形图片 */
}

.card-container .card .img-container a {
position: relative;
}

.card-container .card .img-container img {
width: 100%;
/* 图片适应容器宽度 */
Expand Down
2 changes: 1 addition & 1 deletion mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ extra:
link: https://bangumi.tv/user/754307
- icon: fontawesome/solid/rss
name: RSS
link: http://localhost:8000/feed_rss_created.xml
link: https://lvista.site/feed_rss_created.xml

tags:
Python: py
Expand Down
10 changes: 7 additions & 3 deletions overrides/main.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,15 @@
<h3>友情链接</h3>
<div class="card">
<div class="img-container">
<img src="https://yangzhang.site/assets/images/summation.png"
style="width: 70%; height: 70%; object-fit: contain;">
<a href="https://yangzhang.site/" target="_blank">
<img src="https://yangzhang.site/assets/images/summation.png"
style="width: 70%; height: 70%; object-fit: contain;">
</a>
</div>
<div class="content">
<h3>yangzhang's Site</h3>
<a href="https://yangzhang.site/">
<h3>yangzhang's Site</h3>
</a>
</div>
</div>
</div>
Expand Down

0 comments on commit 7a9388b

Please sign in to comment.