Skip to content

Commit d9b95db

Browse files
authored
Initial commit
0 parents  commit d9b95db

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+14978
-0
lines changed

.editorconfig

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# editorconfig.org
2+
root = true
3+
4+
[*]
5+
indent_size = 2
6+
indent_style = space
7+
end_of_line = lf
8+
charset = utf-8
9+
trim_trailing_whitespace = true
10+
insert_final_newline = true
11+
12+
[*.md]
13+
trim_trailing_whitespace = false

.env.example

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Production license for @nuxt/ui-pro, get one at https://ui.nuxt.com/pro/purchase
2+
NUXT_UI_PRO_LICENSE=
3+
# Public URL, used for OG Image when running nuxt generate
4+
NUXT_PUBLIC_SITE_URL=

.github/workflows/ci.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: ci
2+
3+
on:
4+
push:
5+
branches:
6+
- v3
7+
pull_request:
8+
branches:
9+
- v3
10+
11+
jobs:
12+
ci:
13+
runs-on: ${{ matrix.os }}
14+
15+
strategy:
16+
matrix:
17+
os: [ubuntu-latest]
18+
node: [22]
19+
20+
steps:
21+
- name: Checkout
22+
uses: actions/checkout@v4
23+
24+
- name: Install pnpm
25+
uses: pnpm/action-setup@v4
26+
27+
- name: Install node
28+
uses: actions/setup-node@v4
29+
with:
30+
node-version: ${{ matrix.node }}
31+
cache: pnpm
32+
33+
- name: Install dependencies
34+
run: pnpm install
35+
36+
- name: Lint
37+
run: pnpm run lint
38+
39+
- name: Typecheck
40+
run: pnpm run typecheck

.gitignore

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Nuxt dev/build outputs
2+
.output
3+
.data
4+
.nuxt
5+
.nitro
6+
.cache
7+
dist
8+
9+
# Node dependencies
10+
node_modules
11+
12+
# Logs
13+
logs
14+
*.log
15+
16+
# Misc
17+
.DS_Store
18+
.fleet
19+
.idea
20+
21+
# Local env files
22+
.env
23+
.env.*
24+
!.env.example
25+
26+
# VSC
27+
.history

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
shamefully-hoist=true

README.md

Lines changed: 125 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,125 @@
1+
![nuxt-ui-saas-social-card](https://github.com/nuxt-ui-pro/saas/assets/739984/50bf4ddd-c4d5-47e5-a09e-0f699513dfb5)
2+
3+
# Nuxt UI Pro - SaaS template
4+
5+
[![Nuxt UI Pro](https://img.shields.io/badge/Made%20with-Nuxt%20UI%20Pro-00DC82?logo=nuxt.js&labelColor=020420)](https://ui.nuxt.com/pro)
6+
7+
- [Live demo](https://saas-template.nuxt.dev/)
8+
- [Play on Stackblitz](https://stackblitz.com/github/nuxt-ui-pro/saas)
9+
- [Documentation](https://ui.nuxt.com/pro/getting-started)
10+
11+
[![Deploy to NuxtHub](https://hub.nuxt.com/button.svg)](https://hub.nuxt.com/new?repo=nuxt-ui-pro/saas)
12+
13+
## Quick Start
14+
15+
```bash [Terminal]
16+
npx nuxi init -t github:nuxt-ui-pro/saas
17+
```
18+
19+
## Setup
20+
21+
Make sure to install the dependencies:
22+
23+
```bash
24+
# npm
25+
npm install
26+
27+
# pnpm
28+
pnpm install
29+
30+
# yarn
31+
yarn install
32+
33+
# bun
34+
bun install
35+
```
36+
37+
## Development Server
38+
39+
Start the development server on `http://localhost:3000`:
40+
41+
```bash
42+
# npm
43+
npm run dev
44+
45+
# pnpm
46+
pnpm run dev
47+
48+
# yarn
49+
yarn dev
50+
51+
# bun
52+
bun run dev
53+
```
54+
55+
## Production
56+
57+
Build the application for production:
58+
59+
```bash
60+
# npm
61+
npm run build
62+
63+
# pnpm
64+
pnpm run build
65+
66+
# yarn
67+
yarn build
68+
69+
# bun
70+
bun run build
71+
```
72+
73+
Locally preview production build:
74+
75+
```bash
76+
# npm
77+
npm run preview
78+
79+
# pnpm
80+
pnpm run preview
81+
82+
# yarn
83+
yarn preview
84+
85+
# bun
86+
bun run preview
87+
```
88+
89+
Check out the [deployment documentation](https://nuxt.com/docs/getting-started/deployment) for more information.
90+
91+
## Nuxt Studio integration
92+
93+
Add `@nuxthq/studio` dependency to your package.json:
94+
95+
```bash
96+
# npm
97+
npm install --save-dev @nuxthq/studio
98+
99+
# pnpm
100+
pnpm add -D @nuxthq/studio
101+
102+
# yarn
103+
yarn add -D @nuxthq/studio
104+
105+
# bun
106+
bun add -d @nuxthq/studio
107+
```
108+
109+
Add this module to your `nuxt.config.ts`:
110+
111+
```ts
112+
export default defineNuxtConfig({
113+
...
114+
modules: [
115+
...
116+
'@nuxthq/studio'
117+
]
118+
})
119+
```
120+
121+
Read more on [Nuxt Studio docs](https://nuxt.studio/docs/get-started/setup).
122+
123+
## Renovate integration
124+
125+
Install [Renovate GitHub app](https://github.com/apps/renovate/installations/select_target) on your repository and you are good to go.

app/app.config.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
export default defineAppConfig({
2+
ui: {
3+
colors: {
4+
primary: 'blue',
5+
neutral: 'slate'
6+
}
7+
}
8+
})

app/app.vue

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
<script setup lang="ts">
2+
const colorMode = useColorMode()
3+
4+
const color = computed(() => colorMode.value === 'dark' ? '#111827' : 'white')
5+
6+
useHead({
7+
meta: [
8+
{ charset: 'utf-8' },
9+
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
10+
{ key: 'theme-color', name: 'theme-color', content: color }
11+
],
12+
link: [
13+
{ rel: 'icon', href: '/favicon.ico' }
14+
],
15+
htmlAttrs: {
16+
lang: 'en'
17+
}
18+
})
19+
20+
useSeoMeta({
21+
titleTemplate: '%s - Nuxt UI Pro - SaaS template',
22+
ogImage: 'https://saas-template.nuxt.dev/social-card.png',
23+
twitterImage: 'https://saas-template.nuxt.dev/social-card.png',
24+
twitterCard: 'summary_large_image'
25+
})
26+
27+
const { data: navigation } = await useAsyncData('navigation', () => queryCollectionNavigation('docs'), {
28+
transform: data => data.find(item => item.path === '/docs')?.children || []
29+
})
30+
const { data: files } = useLazyAsyncData('search', () => queryCollectionSearchSections('docs'), {
31+
server: false
32+
})
33+
34+
const links = [{
35+
label: 'Docs',
36+
icon: 'i-lucide-book',
37+
to: '/docs/getting-started'
38+
}, {
39+
label: 'Pricing',
40+
icon: 'i-lucide-credit-card',
41+
to: '/pricing'
42+
}, {
43+
label: 'Blog',
44+
icon: 'i-lucide-pencil',
45+
to: '/blog'
46+
}]
47+
48+
provide('navigation', navigation)
49+
</script>
50+
51+
<template>
52+
<UApp>
53+
<NuxtLoadingIndicator />
54+
55+
<NuxtLayout>
56+
<NuxtPage />
57+
</NuxtLayout>
58+
59+
<ClientOnly>
60+
<LazyUContentSearch
61+
:files="files"
62+
shortcut="meta_k"
63+
:navigation="navigation"
64+
:links="links"
65+
:fuse="{ resultLimit: 42 }"
66+
/>
67+
</ClientOnly>
68+
</UApp>
69+
</template>

app/assets/css/main.css

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
@import "tailwindcss" theme(static);
2+
@import "@nuxt/ui-pro";
3+
4+
@source "../../../content";
5+
6+
@theme static {
7+
--font-sans: 'Public Sans', sans-serif;
8+
9+
--color-green-50: #EFFDF5;
10+
--color-green-100: #D9FBE8;
11+
--color-green-200: #B3F5D1;
12+
--color-green-300: #75EDAE;
13+
--color-green-400: #00DC82;
14+
--color-green-500: #00C16A;
15+
--color-green-600: #00A155;
16+
--color-green-700: #007F45;
17+
--color-green-800: #016538;
18+
--color-green-900: #0A5331;
19+
--color-green-950: #052E16;
20+
}
21+
22+
.dark {
23+
--ui-bg: var(--ui-color-neutral-950);
24+
}

0 commit comments

Comments
 (0)