+
+
+
+ 个人博客 / 生活记录 / 彩色相册
+
+
+
+
+
+ {eyebrowTag || "Welcome"}
+
+
+
+ {welcomeSubtitle || "此间主人"}
+
+
+
+
+ {titleChars.map((char, index) => (
+
+
+ {char}
+
+
+ ))}
+
+
+
+ {welcomeText || "Spring Breeze"}
+
+
+
+ {heroDescription || "写一点代码,拍一些照片,记下那些普通但值得被留下的日子。"}
+
+
+
+
{
gsap.to(e.currentTarget, {
y: -4,
- backgroundColor: "rgba(255, 255, 255, 0.18)",
- borderColor: "rgba(255, 255, 255, 0.35)",
+ scale: 1.02,
+ backgroundColor: "#ffffff",
+ boxShadow: "0 24px 48px -18px rgba(0,0,0,0.8)",
duration: 0.35,
ease: "power2.out",
});
- const imgContainer = e.currentTarget.querySelector(".avatar-img-container");
- if (imgContainer) {
- gsap.to(imgContainer, { rotate: 6, duration: 0.4, ease: "back.out(1.7)" });
- }
- const img = e.currentTarget.querySelector("img");
- if (img) {
- gsap.to(img, { scale: 1.1, duration: 0.4, ease: "power2.out" });
- }
- const txt = e.currentTarget.querySelector(".avatar-text");
- if (txt) {
- gsap.to(txt, { color: "#ffffff", duration: 0.3 });
+ const icon = e.currentTarget.querySelector("svg");
+ if (icon) {
+ gsap.to(icon, { rotate: 8, scale: 1.1, duration: 0.3, ease: "power2.out" });
}
}}
onMouseLeave={(e) => {
gsap.to(e.currentTarget, {
y: 0,
- backgroundColor: "rgba(255, 255, 255, 0.14)",
- borderColor: "rgba(255, 255, 255, 0.22)",
+ scale: 1,
+ backgroundColor: "#f7f8f1",
+ boxShadow: "0 18px 42px -24px rgba(0,0,0,0.7)",
duration: 0.35,
ease: "power2.out",
});
- const imgContainer = e.currentTarget.querySelector(".avatar-img-container");
- if (imgContainer) {
- gsap.to(imgContainer, { rotate: 0, duration: 0.4, ease: "power2.out" });
- }
- const img = e.currentTarget.querySelector("img");
- if (img) {
- gsap.to(img, { scale: 1, duration: 0.4, ease: "power2.out" });
- }
- const txt = e.currentTarget.querySelector(".avatar-text");
- if (txt) {
- gsap.to(txt, { color: "rgba(247, 248, 241, 0.82)", duration: 0.3 });
+ const icon = e.currentTarget.querySelector("svg");
+ if (icon) {
+ gsap.to(icon, { rotate: 0, scale: 1, duration: 0.3, ease: "power2.out" });
}
}}
- className="group inline-flex max-w-full items-center gap-3 rounded-full border border-white/22 bg-white/14 px-3 py-2 shadow-[0_18px_60px_-32px_rgba(0,0,0,0.65)] backdrop-blur-md cursor-pointer"
+ className="inline-flex items-center gap-2 rounded-full bg-cream px-5 py-3 text-sm font-semibold text-charcoal shadow-[0_18px_42px_-24px_rgba(0,0,0,0.7)]"
>
-
-
- 个人博客 / 生活记录 / 彩色相册
-
-
-
-
-
-
-
-
- 写一点代码,拍一些照片,记下那些普通但值得被留下的日子。
-
-
-
-
-
{
- gsap.to(e.currentTarget, {
- y: -4,
- scale: 1.02,
- backgroundColor: "#ffffff",
- boxShadow: "0 24px 48px -18px rgba(0,0,0,0.8)",
- duration: 0.35,
- ease: "power2.out",
- });
- const icon = e.currentTarget.querySelector("svg");
- if (icon) {
- gsap.to(icon, { rotate: 8, scale: 1.1, duration: 0.3, ease: "power2.out" });
- }
- }}
- onMouseLeave={(e) => {
- gsap.to(e.currentTarget, {
- y: 0,
- scale: 1,
- backgroundColor: "#f7f8f1",
- boxShadow: "0 18px 42px -24px rgba(0,0,0,0.7)",
- duration: 0.35,
- ease: "power2.out",
- });
- const icon = e.currentTarget.querySelector("svg");
- if (icon) {
- gsap.to(icon, { rotate: 0, scale: 1, duration: 0.3, ease: "power2.out" });
- }
- }}
- className="inline-flex items-center gap-2 rounded-full bg-cream px-5 py-3 text-sm font-semibold text-charcoal shadow-[0_18px_42px_-24px_rgba(0,0,0,0.7)]"
- >
-
- 随笔
-
-
{
- gsap.to(e.currentTarget, {
- y: -4,
- scale: 1.02,
- backgroundColor: "rgba(255, 255, 255, 0.18)",
- borderColor: "rgba(255, 255, 255, 0.42)",
- color: "#ffffff",
- boxShadow: "0 24px 48px -18px rgba(0,0,0,0.8)",
- duration: 0.35,
- ease: "power2.out",
- });
- const icon = e.currentTarget.querySelector("svg");
- if (icon) {
- gsap.to(icon, { rotate: -8, scale: 1.1, duration: 0.3, ease: "power2.out" });
- }
- }}
- onMouseLeave={(e) => {
- gsap.to(e.currentTarget, {
- y: 0,
- scale: 1,
- backgroundColor: "rgba(255, 255, 255, 0.12)",
- borderColor: "rgba(255, 255, 255, 0.24)",
- color: "rgba(247, 248, 241, 0.86)",
- boxShadow: "none",
- duration: 0.35,
- ease: "power2.out",
- });
- const icon = e.currentTarget.querySelector("svg");
- if (icon) {
- gsap.to(icon, { rotate: 0, scale: 1, duration: 0.3, ease: "power2.out" });
- }
- }}
- className="inline-flex items-center gap-2 rounded-full border border-white/24 bg-white/12 px-5 py-3 text-sm font-medium text-cream/86 shadow-sm backdrop-blur-md"
- >
-
- 相册
-
-
-
-
-
-
-
- {featuredCount} 篇精选文章
-
- {galleryCount} 个相册切片
-
-
+ 随笔
+
+
{
+ gsap.to(e.currentTarget, {
+ y: -4,
+ scale: 1.02,
+ backgroundColor: "rgba(255, 255, 255, 0.18)",
+ borderColor: "rgba(255, 255, 255, 0.42)",
+ color: "#ffffff",
+ boxShadow: "0 24px 48px -18px rgba(0,0,0,0.8)",
+ duration: 0.35,
+ ease: "power2.out",
+ });
+ const icon = e.currentTarget.querySelector("svg");
+ if (icon) {
+ gsap.to(icon, { rotate: -8, scale: 1.1, duration: 0.3, ease: "power2.out" });
+ }
+ }}
+ onMouseLeave={(e) => {
+ gsap.to(e.currentTarget, {
+ y: 0,
+ scale: 1,
+ backgroundColor: "rgba(255, 255, 255, 0.12)",
+ borderColor: "rgba(255, 255, 255, 0.24)",
+ color: "rgba(247, 248, 241, 0.86)",
+ boxShadow: "none",
+ duration: 0.35,
+ ease: "power2.out",
+ });
+ const icon = e.currentTarget.querySelector("svg");
+ if (icon) {
+ gsap.to(icon, { rotate: 0, scale: 1, duration: 0.3, ease: "power2.out" });
+ }
+ }}
+ className="inline-flex items-center gap-2 rounded-full border border-white/24 bg-white/12 px-5 py-3 text-sm font-medium text-cream/86 shadow-sm backdrop-blur-md"
>
- 进入首页
-
-
+
+ 相册
+
+