diff --git a/public/logo.png b/public/logo.png new file mode 100644 index 0000000..776e4c8 Binary files /dev/null and b/public/logo.png differ diff --git a/src/components/Footer.astro b/src/components/Footer.astro index ee3508e..35c4d32 100644 --- a/src/components/Footer.astro +++ b/src/components/Footer.astro @@ -6,7 +6,8 @@ const year = new Date().getFullYear(); + + diff --git a/src/layouts/BaseLayout.astro b/src/layouts/BaseLayout.astro index dae3c03..f27a346 100644 --- a/src/layouts/BaseLayout.astro +++ b/src/layouts/BaseLayout.astro @@ -20,7 +20,7 @@ const canonical = new URL(Astro.url.pathname, Astro.site ?? SITE.url).toString() - + {pageTitle} @@ -36,6 +36,7 @@ const canonical = new URL(Astro.url.pathname, Astro.site ?? SITE.url).toString()
+
diff --git a/src/pages/contact.astro b/src/pages/contact.astro index 60662cc..263f340 100644 --- a/src/pages/contact.astro +++ b/src/pages/contact.astro @@ -1,6 +1,6 @@ --- import BaseLayout from '../layouts/BaseLayout.astro'; -import { SITE, SOCIAL } from '../site.config'; +import { CONTACTS } from '../site.config'; --- @@ -12,17 +12,20 @@ import { SITE, SOCIAL } from '../site.config';
- - Email - {SITE.email} - { - SOCIAL.map((s) => ( - - {s.label} - {s.href} - - )) + CONTACTS.map((c) => + c.href ? ( + + {c.label} + {c.value} + + ) : ( +
+ {c.label} + {c.value} +
+ ) + ) }
@@ -56,8 +59,10 @@ import { SITE, SOCIAL } from '../site.config'; } .value { color: var(--text-dim); + font-size: 1.05rem; + letter-spacing: 0.02em; } - .row:hover .value { + a.row:hover .value { color: var(--text); } diff --git a/src/pages/index.astro b/src/pages/index.astro index 7ba3437..37f1f97 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -2,6 +2,7 @@ import { getCollection } from 'astro:content'; import BaseLayout from '../layouts/BaseLayout.astro'; import ProjectCard from '../components/ProjectCard.astro'; +import Starfield from '../components/Starfield.astro'; import { SITE } from '../site.config'; const allProjects = (await getCollection('projects')).sort( @@ -17,16 +18,20 @@ const posts = (await getCollection('blog')) --- -
- {SITE.subtitle} -

构建电子、软件与机器人系统

-

- {SITE.description} -

-
- 查看项目 → - 技术博客 +
+ +
+ {SITE.subtitle} +

构建电子、软件与机器人系统

+

+ {SITE.description} +

+
+
@@ -81,26 +86,56 @@ const posts = (await getCollection('blog'))