A boilerplate project for quickly building beautiful and performant landing pages using Nuxt 3.
This starter includes:
- Nuxt 3: The latest version of the intuitive Vue framework.
- Tailwind CSS: Integrated via the
@nuxtjs/tailwindcssmodule for rapid UI development. - Image Optimization: Using
@nuxt/imagefor optimized image delivery. - Internationalization (i18n): Setup with
@nuxtjs/i18nfor multi-language support (EN/FR by default). - Basic SEO: Default meta tags (title, description) configured in
nuxt.config.js. - Robots.txt: Managed via the
@nuxtjs/robotsmodule. - Component Structure: Pre-defined directories (
components/common,components/sections) for organization.
Make sure to install the dependencies:
# npm
npm install
# pnpm
pnpm install
# yarn
yarn install
# bun
bun installStart the development server on http://localhost:3000:
# npm
npm run dev
# pnpm
pnpm dev
# yarn
yarn dev
# bun
bun run devBuild the application for production:
# npm
npm run build
# pnpm
pnpm build
# yarn
yarn build
# bun
bun run buildLocally preview the production build:
# npm
npm run preview
# pnpm
pnpm preview
# yarn
yarn preview
# bun
bun run preview- SEO: Update default title, description, and language in the
app.headsection ofnuxt.config.js. - Styling: Modify
tailwind.config.jsto customize your theme. Add global styles inassets/css/main.css(uncomment thecssentry innuxt.config.jsif you create this file). - Components: Add reusable UI elements to
components/commonand page sections tocomponents/sections. - Translations:
- Add/modify language files in the
locales/directory (e.g.,en.json,fr.json). - Update the
localesarray in thei18nsection ofnuxt.config.js. - Use the
$t('your.key')function in your Vue templates/scripts to display translated strings.
- Add/modify language files in the
- Robots.txt: Configure rules in
nuxt.config.jsunder therobotskey if needed (refer to@nuxtjs/robotsdocumentation). - Images: Place static images in the
public/directory. Use<NuxtImg>or<NuxtPicture>components for optimized rendering (refer to@nuxt/imagedocumentation).
Check out the Nuxt documentation and module documentation for more advanced configuration.