diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..3527c07 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,42 @@ +name: CI + +on: + pull_request: + branches: + - main + +permissions: + contents: read + +concurrency: + group: ci-${{ github.event.pull_request.number }} + cancel-in-progress: true + +jobs: + validate: + name: Validate + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v6 + + - name: Set up pnpm + uses: pnpm/action-setup@v6 + with: + version: 11.16.0 + + - name: Set up Node.js + uses: actions/setup-node@v6 + with: + node-version: 24 + cache: pnpm + + - name: Install dependencies + run: pnpm install --frozen-lockfile + + - name: Check Astro and TypeScript + run: pnpm check + + - name: Build + run: pnpm build \ No newline at end of file diff --git a/src/components/Hero.astro b/src/components/Hero.astro index 69bcff7..f3edfc4 100644 --- a/src/components/Hero.astro +++ b/src/components/Hero.astro @@ -36,7 +36,10 @@ const { locale, copy } = Astro.props; {copy.hero.titleLead} {copy.hero.titleEnd} -
{copy.hero.description}
++ {copy.hero.descriptionLead} + {copy.hero.descriptionEnd} +
{copy.hero.action} diff --git a/src/i18n/content.ts b/src/i18n/content.ts index 977a707..df32028 100644 --- a/src/i18n/content.ts +++ b/src/i18n/content.ts @@ -15,7 +15,8 @@ export interface HomeCopy { eyebrow: string; titleLead: string; titleEnd: string; - description: string; + descriptionLead: string; + descriptionEnd: string; action: string; meta: string; }; @@ -29,7 +30,7 @@ export const homeCopy = { seo: { title: "DeepFurry — Open source Untamed", description: - "DeepFurry is an independent open-source collective for curious builders.", + "We were lone wolves, until our paths crossed. Will you be one of the pack?", }, nav: { projects: "Projects", @@ -38,11 +39,11 @@ export const homeCopy = { close: "Close navigation", }, hero: { - eyebrow: "// OPEN SOURCE COLLECTIVE", + eyebrow: "// INDEPENDENT OPEN SOURCE COLLECTIVE", titleLead: "Open source", titleEnd: "Untamed", - description: - "An independent open-source collective for curious builders.", + descriptionLead: "We were lone wolves, until our paths crossed.", + descriptionEnd: "Will you be one of the pack?", action: "Explore GitHub", meta: "FANTASY · PURSUIT · DESIRE", }, @@ -53,7 +54,7 @@ export const homeCopy = { zh: { seo: { title: "DeepFurry — 保持开源 保持野性", - description: "DeepFurry 是一个面向探索者与创造者的独立开源组织。", + description: "我们曾是孤狼,直到在探索中相遇。你,会是狼群的一员吗?", }, nav: { projects: "项目", @@ -65,12 +66,13 @@ export const homeCopy = { eyebrow: "// 独立开源组织", titleLead: "保持开源", titleEnd: "保持野性", - description: "DeepFurry 是一个面向探索者与创造者的独立开源组织。", + descriptionLead: "我们曾是孤狼,直到在探索中相遇。", + descriptionEnd: "你,会是狼群的一员吗?", action: "探索 GitHub", meta: "幻想 · 追寻 · 渴望", }, footer: { - note: "开源自由不羁的灵魂,构建心中狂野的梦想。", + note: "享受开源带来的自由,构建心中狂野的梦想。", }, }, } satisfies Record