Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
HEO 主题改动记录
1. 博文卡片悬停动画改动
在 BlogPostCard.js 中,我发现当鼠标悬浮在博文卡片上时,整个卡片和封面图都会同时放大,这种效果使卡片显得不够美观。因此,我对以下内容进行了调整:
改动内容:
删除了整个卡片的放大效果:
hover:scale-110
悬停放大效果,这样博文卡片的文字和描述部分不再随着封面一起放大。改进封面图的动画效果:
scale-105
,但修改了动画时长,从300ms
增加到了500ms
,并且使用了ease-in-out
,让封面图的悬停放大效果更加平滑自然。封面图居中显示:
h-60
更改为h-full
,这样封面图可以在卡片中自适应显示,确保其内容居中,避免被卡片的其他部分遮挡。改动前效果:
(图片链接)
改动后效果:
(图片链接)
2. 标题图标的改动
在博文标题前的图标(icon)显示偏大,且与文字不对齐,导致整体布局不协调。为了改善这一点,我进行了以下修改:
改动内容:
针对
NotionIcon.js
的修改:NotionIcon
的地方,我在Heo主题下新建了NotionIcon.js
来针对Heo这个主题的icon。4.70版本 heo主题封面比例、动画更改 #2725 这就是刚刚这个提交撤回的原因,我忘记考虑hexo主题了。
在
BlogPostCard.js
中调整图标的大小和位置:BlogPostCard.js
中,我将图标的大小调整为w-5 h-5
,并通过my-auto
确保图标与文字垂直居中对齐,同时在图标后添加了translate-y-[-8%]
以保证图标和文字之间正确对其。改动前效果:
(图片链接)
改动后效果:
(图片链接)
因为是第一次提交代码,有不足之处还请谅解。