Skip to content

Commit

Permalink
docs: add temporary pro page
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamincanac committed Oct 17, 2023
1 parent 8867936 commit 431a61c
Show file tree
Hide file tree
Showing 2 changed files with 109 additions and 0 deletions.
78 changes: 78 additions & 0 deletions docs/pages/pro.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
<template>
<UMain>
<ULandingHero>
<template #top>
<svg class="hidden dark:block absolute inset-0 -z-10 h-full w-full stroke-white/5 [mask-image:radial-gradient(100%_100%_at_top,white,transparent)]" aria-hidden="true">
<defs>
<pattern
id="983e3e4c-de6d-4c3f-8d64-b9761d1534cc"
width="200"
height="200"
x="50%"
y="-1"
patternUnits="userSpaceOnUse"
>
<path d="M.5 200V.5H200" fill="none" />
</pattern>
</defs>
<svg x="50%" y="-1" class="overflow-visible fill-gray-800/20">
<path d="M-200 0h201v201h-201Z M600 0h201v201h-201Z M-400 600h201v201h-201Z M200 800h201v201h-201Z" stroke-width="0" />
</svg>
<rect width="100%" height="100%" stroke-width="0" fill="url(#983e3e4c-de6d-4c3f-8d64-b9761d1534cc)" />
</svg>

<svg class="dark:hidden absolute inset-0 -z-10 h-full w-full stroke-gray-200 [mask-image:radial-gradient(100%_100%_at_top,white,transparent)]" aria-hidden="true">
<defs>
<pattern
id="0787a7c5-978c-4f66-83c7-11c213f99cb7"
width="200"
height="200"
x="50%"
y="-1"
patternUnits="userSpaceOnUse"
>
<path d="M.5 200V.5H200" fill="none" />
</pattern>
</defs>
<rect width="100%" height="100%" stroke-width="0" fill="url(#0787a7c5-978c-4f66-83c7-11c213f99cb7)" />
</svg>

<div class="absolute left-[calc(50%-4rem)] top-10 -z-10 transform-gpu blur-3xl sm:left-[calc(50%-18rem)] lg:left-48 lg:top-[calc(50%-30rem)] xl:left-[calc(50%-24rem)] right-0" aria-hidden="true">
<div class="aspect-[1108/632] w-full bg-gradient-to-r from-[rgb(var(--color-primary-DEFAULT))] to-white/20 opacity-20" style="clip-path: polygon(73.6% 51.7%, 91.7% 11.8%, 100% 46.4%, 97.4% 82.2%, 92.5% 84.9%, 75.7% 64%, 55.3% 47.5%, 46.5% 49.4%, 45% 62.9%, 50.3% 87.2%, 21.3% 64.1%, 0.1% 100%, 5.4% 51.1%, 21.4% 63.9%, 58.9% 0.2%, 73.6% 51.7%)" />
</div>
</template>

<template #badges>
<UBadge color="primary" size="lg" variant="subtle">
Coming Soon 🚀
</UBadge>
</template>

<template #links>
<UButton
trailing-icon="i-heroicons-arrow-right"
color="gray"
size="md"
variant="solid"
to="https://ui.nuxt.com/pro/purchase"
>
Early access
</UButton>
</template>

<template #title>
The <span class="text-primary">Building Blocks</span> for<br>Modern Web Apps
</template>

<template #description>
Nuxt UI Pro is a collection of premium components built on top of Nuxt UI to create beautiful & responsive Nuxt applications in minutes.<br>It includes all primitives to build landing pages, documentation, blogs, changelog, dashboards or entire SaaS products.
</template>

<MDC
:value="pro.code"
tag="pre"
class="prose prose-primary dark:prose-invert max-w-none -mt-5"
/>
</ULandingHero>
</UMain>
</template>
31 changes: 31 additions & 0 deletions docs/utils/pro.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
export const pro = {
code: `
\`\`\`vue [app.vue]
<script setup lang="ts">
const links = [
{ to: '/', label: 'Home' },
{ to: '/about', label: 'About' },
{ to: '/contact', label: 'Contact' }
]
</script>
<template>
<UHeader :links="links" />
<UMain>
<ULandingHero title="Hello World" />
<ULandingSection title="Features">
<UPageGrid>
<ULandingCard title="First Card" />
<ULandingCard title="Second Card" />
<ULandingCard title="Third Card" />
</UPageGrid>
</ULandingSection>
</UMain>
<UFooter />
</template>
\`\`\`
`
}

1 comment on commit 431a61c

@vercel
Copy link

@vercel vercel bot commented on 431a61c Oct 17, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

ui – ./

ui-git-dev-nuxt-js.vercel.app
ui-nuxt-js.vercel.app
ui.nuxt.com

Please sign in to comment.