Skip to content

Commit

Permalink
docs: various improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
atinux committed Sep 16, 2024
1 parent c339092 commit fd3c5f0
Show file tree
Hide file tree
Showing 10 changed files with 34 additions and 16 deletions.
34 changes: 19 additions & 15 deletions docs/content/0.index.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,40 +42,44 @@ features:
img: '/images/landing/features-privacy.svg'
deploy:
headline: Get Started
title: Deploy a Nuxt application <span class="text-primary">in one minute</span>.
description: Once you've linked your Cloudflare account, deploy your Nuxt application all over the world with our CLI or from git. <br/> You also get a free <span class="font-semibold">.nuxt.dev</span> domain.
title: Deploy a Nuxt application <span class="text-primary">in 60 seconds</span>.
description: Deploy your Nuxt application worldwide using our CLI or directly from Git after linking your Cloudflare account.<br>Manage deployments, monitor performance, and scale your app through the NuxtHub dashboard.<br>Every project receives a free <span class="font-semibold">.nuxt.dev</span> domain.
steps:
- title: Link your Cloudflare account
description: Create an API token on Cloudflare with our pre-filled template.
- title: Connect your Cloudflare account
description: Securely connect with one click using our pre-configured Cloudflare API permissions.
img:
src: '/images/landing/steps/link-cloudflare-account.svg'
srcLight: '/images/landing/steps/link-cloudflare-account-light.svg'
srcDark: '/images/landing/steps/link-cloudflare-account-dark.svg'
width: 460
height: 259
- title: Create a Nuxt app
description: Start from our templates or import your GitHub repository.
- title: Build your Nuxt app
description: Choose from our optimized templates or import your existing GitHub/GitLab project.
img:
src: '/images/landing/steps/create-nuxt-app.svg'
srcLight: '/images/landing/steps/create-nuxt-app-light.svg'
srcDark: '/images/landing/steps/create-nuxt-app-dark.svg'
width: 460
height: 259
- title: Deploy it
description: Run the nuxthub deploy command or use the Cloudflare Pages CI/CD.
- title: Launch it worldwide
description: Deploy with 'npx nuxthub deploy' or leverage Cloudflare Pages CI/CD for automated deployments.
img:
src: '/images/landing/steps/deploy-nuxt-app.svg'
srcLight: '/images/landing/steps/deploy-nuxt-app-light.svg'
srcDark: '/images/landing/steps/deploy-nuxt-app-dark.svg'
width: 460
height: 259
- title: Share it to the world
description: Get insights and manage your storage in NuxtHub.
description: Instantly share your app globally. Monitor & manage resources through the NuxtHub dashboard.
img:
src: '/images/landing/steps/share-nuxt-app.svg'
srcLight: '/images/landing/steps/share-nuxt-app-light.svg'
srcDark: '/images/landing/steps/share-nuxt-app-dark.svg'
width: 460
height: 259
buttons:
- label: Deploy now
- label: Deploy my Nuxt app
trailing-icon: i-ph-arrow-right
color: black
size: md
to: /docs/getting-started/deploy
- label: 1 min demo
- label: Watch a 1 min demo
color: gray
variant: ghost
icon: i-ph-video-duotone
Expand Down
12 changes: 11 additions & 1 deletion docs/pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -125,10 +125,20 @@ onMounted(() => {
<ul class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-10 items-start justify-center">
<li v-for="step in page?.deploy.steps" :key="step.title" class="flex flex-col gap-y-8 justify-center group">
<NuxtImg
:src="step.img.src"
:src="step.img.srcDark"
:width="step.img.width"
:height="step.img.height"
:alt="step.title"
class="hidden dark:block"
lazy
/>
<NuxtImg
:src="step.img.srcLight"
:width="step.img.width"
:height="step.img.height"
:alt="step.title"
class="block dark:hidden"
lazy
/>
<div>
<h2 class="font-semibold" v-html="step.title" />
Expand Down
1 change: 1 addition & 0 deletions docs/public/images/landing/steps/create-nuxt-app-light.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit fd3c5f0

Please sign in to comment.