Skip to content

Commit

Permalink
home 添加~骚气~的 grid 质感背景小块
Browse files Browse the repository at this point in the history
  • Loading branch information
d1y committed Jul 25, 2020
1 parent 3509727 commit f0d45de
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
Binary file added src/static/overlay.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 11 additions & 2 deletions src/views/home/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
</topbar>
<glass :opacity=".4" :blur="24" :bg="bgImg">
<wrapper>
<view class="bg-img bg-mask bg-black light flex align-center dark-remove" :style="bgMaskImgStyle">
<view class="bg-img bg-mask bg-black light flex align-center dark-remove bg-mask-overlay" :style="bgMaskImgStyle">
<view class="padding-sm text-white dark-remove">
<view class="padding-xs text-xl text-bold dark-remove">
{{ sayWord.hitokoto }}
Expand Down Expand Up @@ -135,5 +135,14 @@ export default Vue.extend({
</script>

<style>

/* 参考: https://www.deepin.org/zh/download/ */
.bg-mask-overlay::before {
content: "";
position: absolute;
left: 0;
top: 0;
right: 0;
bottom: 0;
background: url(/static/overlay.png);
}
</style>

0 comments on commit f0d45de

Please sign in to comment.