-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from hviwen/blog/vitepress
fix: 06-05 09:33
- Loading branch information
Showing
8 changed files
with
184 additions
and
217 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: Sync and Deploy Workflow | ||
|
||
on: | ||
schedule: | ||
- cron: '0 12 * * *' | ||
|
||
|
||
jobs: | ||
sync-and-deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 # 如果未启用 lastUpdated,则不需要 | ||
uses: pnpm/action-setup@v3 | ||
|
||
- name: Setup Node | ||
uses: actions/setup-node@v4 | ||
|
||
- name: Install pnpm | ||
run: npm install -g pnpm # 安装 pnpm | ||
|
||
- name: Download and unzip repository | ||
run: | | ||
curl -L https://github.com/monocytess/simple/archive/refs/heads/master.zip > repo.zip | ||
unzip repo.zip | ||
- name: Sync files | ||
run: rsync -av --checksum --delete simple-master/src/js30 docs/public/pages/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
@font-face { | ||
font-family: Leckerli; | ||
font-style: normal; | ||
font-weight: normal; | ||
src: url("/assets/fonts/LeckerliOne-Regular.ttf") format('truetype'); | ||
} | ||
|
||
html, body { | ||
height: 100%; | ||
padding: 0; | ||
margin: 0; | ||
overflow-x: hidden; | ||
font-family: Roboto, sans-serif; | ||
} | ||
|
||
.background { | ||
position: absolute; | ||
top: 0; | ||
left: 0; | ||
z-index: -1; | ||
width: 100vw; | ||
height: 100vh; | ||
background-repeat: no-repeat; | ||
background-position: center; | ||
background-size: cover; | ||
} | ||
|
||
.footer { | ||
position: fixed; | ||
bottom: 0; | ||
display: flex; | ||
justify-content: center; | ||
width: 100%; | ||
margin-bottom: 12px; | ||
font-size: 0.8rem; | ||
color: white; | ||
} | ||
|
||
.footer a { | ||
display: inline-block; | ||
margin: 0 8px; | ||
color: white; | ||
text-decoration-line: none; | ||
transition: color 0.3s ease 0s; | ||
} | ||
|
||
.footer a::after { | ||
position: absolute; | ||
bottom: 0; | ||
left: 50%; | ||
display: block; | ||
width: 0; | ||
height: 2px; | ||
content: ""; | ||
background: yellow; | ||
transition: width 0.3s ease 0s, left 0.3s ease 0s; | ||
} | ||
|
||
.footer a:hover::after { | ||
left: 0; | ||
width: 100%; | ||
} | ||
|
||
.footer a:hover { | ||
color: yellow; | ||
} |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.