Skip to content

Commit b017f12

Browse files
committed
style: merry xmas (eve)
1 parent 8f88ab9 commit b017f12

File tree

6 files changed

+44
-11
lines changed

6 files changed

+44
-11
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "neko-astro-blog",
33
"type": "module",
4-
"version": "2.24.2",
4+
"version": "2.25.0",
55
"private": true,
66
"engines": {
77
"node": ">=20"

src/components/Logo.astro

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ if (decoration === "harmony") {
4343
<div class="vert-hide absolute floating opacity-40" style="inset-block-start: -300px; inset-inline-start: -220px;">
4444
<img src="/decorations/planet.svg" class="rotating" width="450" height="450" alt="planet" id="planet"/>
4545
</div>
46-
<i class="roloc i-mdi:satellite-variant absolute inset-bs-0 inset-is-50 w-12! h-12! text-lg opacity-40 hover:opacity-100"></i>
47-
<i class="roloc i-mdi:satellite-variant absolute inset-bs-20 inset-is-65 w-10! h-10! rotate-90 text-lg opacity-40 hover:opacity-100"></i>
48-
<i class="roloc floating i-mdi:rocket hover:i-mdi:rocket-launch absolute inset-bs-12 inset-is-25 w-10! h-10! rotate-50 text-lg opacity-40 hover:opacity-100"></i>
46+
<i class="roloc i-mingcute:christmas-hat-fill x-i-mdi:satellite-variant absolute inset-bs-0 inset-is-50 w-12! h-12! text-lg opacity-40 hover:opacity-100"></i>
47+
<i class="roloc i-mdi:christmas-star x-i-mdi:satellite-variant absolute inset-bs-20 inset-is-65 w-10! h-10! rotate-90 text-lg opacity-40 hover:opacity-100"></i>
48+
<i class="roloc floating i-icon-park-solid:christmas-tree x-i-mdi:rocket hover:x-i-mdi:rocket-launch absolute inset-bs-12 inset-is-25 w-10! h-10! rotate-50 text-lg opacity-40 hover:opacity-100"></i>
4949
)}
5050
</div>
5151

src/components/inject/Snowflakes.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import "@/styles/snowflakes.scss";
33
---
44

5-
<div class="snowflakes">
5+
<div class="snowflakes z-1000">
66
{
77
Array(100)
88
.fill(0)

src/components/sidebar/Index.astro

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ import OtherPlatfromItem from "./OtherPlatfromItem.astro";
44
import "@/styles/manchu.less";
55
import "@fontsource/noto-sans-mongolian";
66
import { Picture } from "astro:assets";
7-
import avatar from "@/assets/avatar.png";
7+
// import avatar from "@/assets/avatar.png";
8+
const avatar = "https://tong.xinshijiededa.men/avatar/xmas-2025-avatar.svg";
89
import Search from "./Search.astro";
910
---
1011

@@ -21,14 +22,15 @@ import Search from "./Search.astro";
2122
itemtype="http://schema.org/Person"
2223
>
2324
<div id="site-author-image">
24-
<Picture
25+
<!-- <Picture
2526
loading="eager"
2627
class="site-author-image"
2728
itemprop="avatar"
2829
alt="ᡥᠠᡳᡤᡳᠶᠠ ᡥᠠᠯᠠ·ᠨᡝᡴᠣ 猫"
2930
src={avatar}
3031
formats={["avif", "webp", "png"]}
31-
/>
32+
/> -->
33+
<img src={avatar} alt="ᡥᠠᡳᡤᡳᠶᠠ ᡥᠠᠯᠠ·ᠨᡝᡴᠣ 猫" class="site-author-image" itemprop="avatar" />
3234
</div>
3335
<p class="site-author-name write-vertical-left vertical-mid" itemprop="name" lang="mnc">
3436
ᡥᠠᡳᡤᡳᠶᠠ ᡥᠠᠯᠠ·ᠨᡝᡴᠣ <span lang="zh">猫</span>
@@ -125,7 +127,8 @@ import Search from "./Search.astro";
125127
border: 1px solid #eee;
126128
width: 120px;
127129
height: 120px;
128-
border-radius: 50%;
130+
/* border-radius: 50%; */
131+
transform: scaleX(-1);
129132
transition: transform 1s ease-out;
130133
}
131134
#site-author-image {
@@ -137,6 +140,7 @@ import Search from "./Search.astro";
137140
margin: 0px;
138141
}
139142
.site-author-image:hover {
140-
transform: rotateZ(360deg);
143+
/* transform: rotateZ(360deg); */
144+
transform: scaleX(1);
141145
}
142146
</style>

src/styles/snowflakes.scss

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,39 @@
88
@return $random_range;
99
}
1010

11+
.main {
12+
filter: brightness(0.95) saturate(1.1);
13+
text-shadow:
14+
0 0 1px #fff,
15+
0 0 2px #ebebeb,
16+
0 0 3px #b9b9b9;
17+
}
18+
19+
body {
20+
background-image: url("https://remnote-user-data.s3.amazonaws.com/2fkaCqjyo5c_vBnTuvfev6zA_CGNNwC8T06mm_dB1v6RtXUT8R8JABHzDjbwTaFgQrL7q_w82XqD9mW9aE8KP1ShiaP91UmkJPTxygfo-_uZzMlPaxl6ntrmzz4GZWym.jpeg")!important;
21+
background-blend-mode: luminosity;
22+
background-size: cover!important;
23+
background-attachment: fixed!important;
24+
}
25+
26+
@container style(--dark-scheme) {
27+
body {
28+
background-image: url("https://remnote-user-data.s3.amazonaws.com/r_tz5f_Khz-iLtRyuF-Z2E2VPC7YNGgThKJt2NOBmJ_4y9C3aSF8RBrsQ9zCsY9q8_PbbNfrIrtP1pZtIA_mgAEVDDGt8tfgr5IHCUaS2lasVdXPXFRAyKVuoQaewrpj.jpeg")!important;
29+
}
30+
}
31+
1132
.snow {
1233
$total: 200;
13-
position: absolute;
34+
position: fixed;
1435
width: 10px;
1536
height: 10px;
37+
z-index: 1111;
1638
background: white;
39+
// shadow
40+
box-shadow:
41+
0 0 5px 2px rgba(255, 255, 255, 0.8),
42+
0 0 10px 4px rgba(255, 255, 255, 0.6),
43+
0 0 15px 6px rgba(255, 255, 255, 0.4);
1744
border-radius: 50%;
1845

1946
@for $i from 1 through $total {

src/templates/zh/Page.astro

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,11 @@ const metas = {
4141
import Base from "./Base.astro";
4242
import Footer from "../zh/Footer.astro";
4343
import { genOpenGraphMetas, type OpenGraphData } from "@/scripts/open-graph";
44+
import Snowflakes from "@/components/inject/Snowflakes.astro";
4445
---
4546

4647
<Base title={title} metas={metas} lang={lang}>
48+
<Snowflakes />
4749
<div class="main overflow-inline-clip">
4850
<slot />
4951
</div>

0 commit comments

Comments
 (0)