diff --git a/astro.config.mjs b/astro.config.mjs index edfe500..a6a0290 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -9,8 +9,13 @@ import mdx from '@astrojs/mdx'; export default defineConfig({ integrations: [ starlight({ - title: 'NixCN', + title: 'Nix CN', defaultLocale: 'root', + logo: { + light: './src/assets/nix-cn.svg', + dark: './src/assets/nix-cn-dark.svg', + replacesTitle: true, + }, locales: { root: { label: '简体中文', @@ -22,9 +27,9 @@ export default defineConfig({ }, social: [ { - icon: 'github', - label: 'GitHub', - href: 'https://github.com/withastro/starlight', + icon: 'seti:git', + label: 'Source', + href: 'https://git.sne.moe/sugar/nixcn-web', }, ], sidebar: [], diff --git a/public/favicon.svg b/public/favicon.svg index cba5ac1..4fa9945 100644 --- a/public/favicon.svg +++ b/public/favicon.svg @@ -1 +1,40 @@ - \ No newline at end of file + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/assets/houston.webp b/src/assets/houston.webp deleted file mode 100644 index 930c164..0000000 Binary files a/src/assets/houston.webp and /dev/null differ diff --git a/src/assets/nix-cn-dark.svg b/src/assets/nix-cn-dark.svg new file mode 100644 index 0000000..dc597bd --- /dev/null +++ b/src/assets/nix-cn-dark.svg @@ -0,0 +1,45 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/assets/nix-cn.svg b/src/assets/nix-cn.svg new file mode 100644 index 0000000..b9aa5b4 --- /dev/null +++ b/src/assets/nix-cn.svg @@ -0,0 +1,45 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/assets/nix-flake-logo.svg b/src/assets/nix-flake-logo.svg new file mode 100644 index 0000000..4fa9945 --- /dev/null +++ b/src/assets/nix-flake-logo.svg @@ -0,0 +1,40 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/content/docs/en/index.mdx b/src/content/docs/en/index.mdx new file mode 100644 index 0000000..003abc1 --- /dev/null +++ b/src/content/docs/en/index.mdx @@ -0,0 +1,17 @@ +--- +title: "Nix CN" +description: Explore a reproducible future with the Nix CN community +template: splash +hero: + tagline: Explore a reproducible future with the Nix CN community + image: + file: ../../../assets/nix-flake-logo.svg + actions: + - text: "Meetup #2 Attendee Guide" + link: /en/meetup-2-guide + icon: right-arrow + - text: Join the event group + link: https://t.me/nixcnmeetup + icon: external + variant: minimal +--- diff --git a/src/content/docs/index.mdx b/src/content/docs/index.mdx index e6ed51f..dd0eb6f 100644 --- a/src/content/docs/index.mdx +++ b/src/content/docs/index.mdx @@ -1,40 +1,17 @@ --- -title: Welcome to Starlight -description: Get started building your docs site with Starlight. -template: splash # Remove or comment out this line to display the site sidebar on this page. +title: "Nix CN" +description: 与 Nix 中文社群一起探索可复现的未来 +template: splash hero: - tagline: Congrats on setting up a new Starlight project! + tagline: 与 Nix 中文社群一起探索可复现的未来 image: - file: ../../assets/houston.webp + file: ../../assets/nix-flake-logo.svg actions: - - text: Example Guide - link: /guides/example/ + - text: "Meetup #2 参会指南" + link: /meetup-2-guide icon: right-arrow - - text: Read the Starlight docs - link: https://starlight.astro.build + - text: 加入活动群组 + link: https://t.me/nixcnmeetup icon: external variant: minimal --- - -import { Card, CardGrid } from '@astrojs/starlight/components'; - -## Next steps - - - - Edit `src/content/docs/index.mdx` to see this page change. - - - Delete `template: splash` in `src/content/docs/index.mdx` to display a - sidebar on this page. - - - Add Markdown or MDX files to `src/content/docs` to create new pages. - - - Edit your `sidebar` and other config in `astro.config.mjs`. - - - Learn more in [the Starlight Docs](https://starlight.astro.build/). - -