Skip to content

Commit

Permalink
✨ feat(style): adjust card style
Browse files Browse the repository at this point in the history
  • Loading branch information
bingling-sama committed Jun 23, 2024
1 parent 3473f19 commit 406d811
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 36 deletions.
37 changes: 2 additions & 35 deletions .vitepress/theme/layouts/Posts.vue
Original file line number Diff line number Diff line change
Expand Up @@ -56,49 +56,16 @@ import { data as posts } from "../../data/posts.data"
}
.container .card .content {
padding: 20px;
padding: 10px;
text-align: center;
transform: translateY(100px);
opacity: 0;
transition: 0.5s;
}
.container .card:hover .content {
transform: translateY(0px);
transform: translateY(0px) scale(0.8);
opacity: 1;
}
.container .card .content h2 {
position: absolute;
top: -60px;
right: 1px;
font-size: 10em;
color: rgba(255, 255, 255, 0.05);
pointer-events: none;
}
.container .card .content h3 {
font-size: 1.8em;
color: #fff;
z-index: 1;
}
.container .card .content p {
font-size: 1em;
color: #fff;
font-weight: 300;
}
.container .card .content a {
position: relative;
display: inline-block;
padding: 8px 20px;
margin-top: 15px;
background: #fff;
color: #000;
border-radius: 20px;
text-decoration: none;
font-weight: 500;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}
</style>
3 changes: 2 additions & 1 deletion docs/blog/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ Frontmatter 格式如下:
sidebar: false
title: 文章标题
date: 2024-06-22 19:11:00
hero: path/to/hero.jpg (可选, 可用链接)
---
```

出现在第一个 `---` (不包括 frontmatter)之前的部分为文章摘要,将显示在文章列表卡片中。

0 comments on commit 406d811

Please sign in to comment.