Astro启动器

astro-njx-launch — Astro 启动器模板

作者 njbSaab

基于 Astro、njX UI 与 Alpine.js 的产品发布 / 等待列表启动页模板,包含视频弹窗、评价滑块与乐观提交表单,支持九种主题切换。

看看你的网站会是什么样

浏览真实页面截图,比较内容排版与手机效果。点击下方缩略图切换,放大查看整页细节。

2 个预览视图
桌面端首页1 / 2
桌面端截图首屏预览

由服务器浏览器实际访问页面后截取。

全部页面与视图 2

截图用于了解视觉与布局,交互效果请以实际项目为准。

采集于 2026-10-13查看来源

值得关注的模板亮点

从已有项目资料中,快速了解它的特点。

01

Hero 区包含等待列表计数徽章与视频弹窗,弹窗支持 Escape 键和点击背景关闭

02

评价滑块带星级、头像、计数与触摸滑动,由数据数组驱动

03

等待列表表单采用乐观提交并展示成功状态

04

导航栏提供主题切换,通过 localStorage 记住选择

05

品牌名、主题与社交证明数字集中在 src/config.ts 一处修改

06

njX UI 提供九种主题,通过 html 的 data-theme 属性切换

模板详细介绍

astro-njx-launch 是一个面向产品发布或等待列表收集场景的静态页面启动模板。页面结构由 Astro 组件拼装,视觉层使用 njX UI 的现成类(卡片、弹窗、滑块、徽章),交互逻辑通过 Alpine.js 的 x-data 直接写在标记中,构建后输出静态 HTML。

模板内置几个可直接替换的区块:带等待列表计数徽章与视频弹窗的 Hero、三步说明卡片、带星级与触摸滑动的评价滑块、乐观提交的等待列表表单,以及导航栏中的主题切换(localStorage 持久化)。品牌名、主题与数字集中在 src/config.ts,步骤与评价内容分别位于 HowItWorks.astro 和 Testimonials.astro 的数据数组中。

主题通过 html 标签的 data-theme 属性切换,提供 dark、light、red、blue、green、cyan、yellow、pink、purple 九种取值。自定义样式仅约 25 行,其余外观来自 njX UI 的 CSS 导入。

限制方面:等待列表表单默认是演示提交,需要自行替换为真实接口;项目资料提及存在 Pro 版本,本次收录的仅是 MIT 许可的公开免费代码,不包含付费升级;演示图片、字体、图标等第三方素材需单独核对许可;域名、托管、数据库等外部服务可能另外收费。

Astro启动器

适合你的项目吗?

适用场景

  • 为新产品或新功能搭建发布落地页,收集早期用户邮箱
  • 制作等待列表页面,展示产品步骤说明与用户评价
  • 作为 Astro + Alpine.js 的静态页面起点,替换文案与数据后快速上线
  • 需要多主题切换的营销页面原型

适合人群

  • 熟悉 Astro 组件与 Alpine.js 标记式交互的前端开发者
  • 需要快速产出产品发布页、不依赖后端渲染的静态站点项目
  • 希望用现成 UI 类库减少手写 CSS 的独立开发者或小团队

上手与定制指南

结合仓库当前版本的说明,按下面的资料检查内容、配置与运行要求。

  1. 1

    克隆仓库后执行 npm install 与 npm run dev,本地默认地址为 http://localhost:4321

  2. 2

    在 src/config.ts 中修改产品名称、主题与社交证明数字

  3. 3

    修改 HowItWorks.astro 中的 STEPS 数组与 Testimonials.astro 中的 SLIDES 数组来替换内容

  4. 4

    将 Waitlist.astro 中演示用的 @submit 替换为指向自己接口的 fetch 请求

  5. 5

    构建命令为 npm run build,输出目录为 dist,可部署到任意静态托管

查看仓库使用说明

授权与来源资料

使用条件与限制

免费使用 · 保留许可声明

本次收录的是公开仓库中采用 MIT 许可的免费版本;免费范围为该版本代码,不代表外部服务或第三方素材免费。

使用时需要遵守

  • 允许免费使用、修改、商用和分发该版本代码。
  • 分发代码副本或实质性部分时,保留原作者版权声明和完整 MIT 许可声明。
  • 代码按现状提供;担保与责任限制以原许可证及适用法律为准。

额外费用与待核对事项

  • 项目资料提及可选付费版本或功能;本次仅收录公开免费代码,不包含付费升级。
  • 演示图片、字体、图标及其他第三方素材需按各自许可核对,不能仅凭代码的 MIT 许可判断。
  • 域名、托管、数据库、支付或 AI 等外部服务可能另外收费。
  • 等待列表表单默认仅为演示提交,不会真正发送数据;需自行将 Waitlist.astro 中的 @submit 替换为指向自己接口的 fetch 请求才能收集邮箱。
  • 项目资料说明当前免费,但作者计划推出 Pro 付费版本;本次收录仅限 MIT 许可的公开免费代码,不包含任何 Pro 付费功能。
  • 该模板属于 njX Astro Themes 系列,依赖 njX UI(npm 包 njx-ui)提供样式类;使用前需通过 npm 安装该依赖。
查看原文依据

Permission is hereby granted, free of charge

许可证原文

swap the demo `@submit` in `Waitlist.astro` for a fetch to your endpoint

README 原文

free today, Pro versions on the way

README 原文

Part of **[njX Astro Themes](https://njxui.dev/themes)**

README 原文
https://github.com/njbSaab/astro-njx-launch/blob/main/LICENSEhttps://github.com/njbSaab/astro-njx-launch/blob/main/README.md

DeepSeek 根据仓库许可证和 README 整理 ·2026-10-13。结果仅覆盖已读取资料,依赖、图片、字体及后续条款变更以各自原文为准。

项目核对记录与介绍依据

模板资料

来源平台
GitHub
资料与维护参考分
资料较完整 · 80 / 100
技术栈
Astro
网站类型
启动器
这个分数如何计算

本站按许可资料(最高30分)、演示链接(12分)、预览图(10分)、Star数(15分)、记录的维护时间(15分)、描述完整度(8分)、功能记录(5分)和分类资料(5分)计算。它不是代码、安全或性能测试,也不是 Google 评分;有链接不代表已实测可用。

这个项目需要核对什么

记录的仓库更新时间
2026-09-12
截图检查日期
2026-10-13

已收录演示链接。请用你的内容与屏幕尺寸检查;有演示不代表表单、认证或支付已经可用。

目录记录的主要技术栈是 Astro。请通过依赖清单和锁文件核对实际版本与托管要求。这些说明基于收录资料,不代表代码审计或部署实测。

查看具体选型方法 →

介绍的制作与核对状态

介绍由 AI 辅助整理目录与仓库资料。仓库作者不等于这篇介绍的审核者。

审核声明: [email protected] · 2026-10-13

查看当时使用的来源资料

SHA-256: 07e753a9d220e583c8851f392db79cede2f8f953165a09750058696b83605712

2026-10-13T00:32:44.936Z

来源文件 / 仓库
# astro-njx-launch

[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https://github.com/njbSaab/astro-njx-launch) [![Deploy to Netlify](https://www.netlify.com/img/deploy/button.svg)](https://app.netlify.com/start/deploy?repository=https://github.com/njbSaab/astro-njx-launch)

> Part of **[njX Astro Themes](https://njxui.dev/themes)** — ecommerce storefronts & landing pages by one author, free today, Pro versions on the way.

**Product launch / waitlist starter — Astro + [njX UI](https://njxui.dev) (npm: `njx-ui`) + Alpine.js.**

One CSS import, nine runtime themes, ~25 lines of custom CSS. Every element on
the page is an njX UI class; interactivity is plain Alpine `x-data` right in the
markup; Astro renders it all to static HTML.

**Live demo:** https://astro-njx-launch.pages.dev

![astro-njx-launch preview](./screenshot.png)

## What you get

- **Glow hero** with a waitlist counter badge and a **video modal** (library `.lib-modal-*`, Escape / backdrop close)
- **How it works** — three numbered steps on showcase cards (`card-outline-gradient` / `card-aura` / `card-shine`)
- **Testimonial slider** — library `.testi-slider`: stars, avatars, counter, touch swipe
- **Waitlist form** with optimistic submit and a success state
- **Theme toggle** in the navbar with `localStorage` persistence

## The stack

| Layer | Tool | Why |
| ----- | ---- | --- |
| Markup & build | [Astro](https://astro.build) | Components, zero JS by default |
| Look | [njX UI](https://njxui.dev) — 44 KB gzip | Ready blocks: cards, modals, sliders, badges |
| Interactivity | [Alpine.js](https://alpinejs.dev) | Modal, slider, form — state lives in the markup |

## Quick start

```bash
git clone https://github.com/njbSaab/astro-njx-launch my-launch
cd my-launch
npm install
npm run dev
```

Open `http://localhost:4321`, then make it yours:

1. **`src/config.ts`** — product name, themes, social-proof numbers.
2. **Data arrays** — `STEPS` in `HowItWorks.astro`, `SLIDES` in `Testimonials.astro`.
3. **Waitlist** — swap the demo `@submit` in `Waitlist.astro` for a fetch to your endpoint.

## What's inside

```
src/
├── config.ts                 # brand, themes, numbers — rebrand in one file
├── layouts/Layout.astro      # njX UI import · theme restore · SEO meta
├── styles/global.css         # the one signature gradient (~25 lines)
├── components/
│   ├── Nav.astro             # navbar + Alpine theme toggle
│   ├── Hero.astro            # glow hero + video modal
│   ├── HowItWorks.astro      # three showcase cards (data-driven)
│   ├── Testimonials.astro    # testi-slider with swipe (data-driven)
│   ├── Waitlist.astro        # optimistic form + success state
│   └── Footer.astro
└── pages/index.astro         # assembles the sections
```

## Themes

njX UI ships 9 themes driven by one attribute:

```html
<html data-theme="cyan">   <!-- dark · light · red · blue · green · cyan · yellow · pink · purple -->
```

## Deploy

[![Deploy to Cloudflare Pages](https://img.shields.io/badge/Deploy%20to-Cloudflare%20Pages-f38020?logo=cloudflarepages&logoColor=white)](https://dash.cloudflare.com/?to=/:account/pages/new)
[![Deploy to Netlify](https://img.shields.io/badge/Deploy%20to-Netlify-00c7b7?logo=netlify&logoColor=white)](https://app.netlify.com/start/deploy?repository=https://github.com/njbSaab/astro-njx-launch)

Static output — any host works. Build command `npm run build`, output directory `dist`.

## Learn more

- njX UI documentation: https://njxui.dev/documentation
- Alpine presets for njX components: https://njxui.dev/documentation#njx-alpine
- Sibling themes: [astro-njx-saas](https://github.com/njbSaab/astro-njx-saas) · [astro-njx-portfolio](https://github.com/njbSaab/astro-njx-portfolio)

## License

MIT — use it for anything, no attribution required.
反馈内容错误

看看同类模板

对比同技术栈与用途的模板,找到更适合的视觉与内容结构。