Skip to content

Commit

Permalink
feat: hero alt mobile placement
Browse files Browse the repository at this point in the history
Signed-off-by: ZTL-UwU <[email protected]>
  • Loading branch information
ZTL-UwU committed Dec 1, 2024
1 parent a52506a commit 244b27b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 17 deletions.
7 changes: 4 additions & 3 deletions components/content/HeroAlt.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<div
class="gap-4 px-4 py-8 md:py-12 md:pb-8 lg:py-12 lg:pb-10"
class="gap-8 px-4 py-8 md:py-12 md:pb-8 lg:py-12 lg:pb-10"
:class="{ 'grid md:grid-cols-3': $slots.right }"
>
<section
Expand Down Expand Up @@ -43,9 +43,9 @@
</NuxtLink>
</div>
</section>
<section>
<div class="mx-auto" :class="{ 'order-first md:order-last': mobileRight === 'top' }">
<ContentSlot :use="$slots.right" unwrap="p" />
</section>
</div>
</div>
</template>

Expand All @@ -65,5 +65,6 @@ defineProps<{
to: string;
target?: Target;
}];
mobileRight?: 'top' | 'bottom';
}>();
</script>
18 changes: 4 additions & 14 deletions content/2.components/3.page/hero-alt.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ toc: false
- name: GitHub
variant: ghost
to: https://github.com/ZTL-UwU/shadcn-docs-nuxt
mobileRight: 'top' # 'top' | 'bottom'
---

#title
Expand All @@ -54,13 +55,7 @@ toc: false
Beautifully designed components that you can copy and paste into your apps.

#right
```bash [Terminal]
# Get Starter Template
bun x nuxi@latest init <project-name> -t github:ZTL-UwU/shadcn-docs-nuxt-starter

# Start Development Server
bun run dev
```
![logo](/logo.svg)
::
::
```mdc[Code]
Expand Down Expand Up @@ -98,6 +93,7 @@ toc: false
- name: GitHub
variant: ghost
to: https://github.com/ZTL-UwU/shadcn-docs-nuxt
mobileRight: 'top' # 'top' | 'bottom'
---
#title
Expand All @@ -107,13 +103,7 @@ toc: false
Beautifully designed components that you can copy and paste into your apps.
#right
```bash [Terminal]
# Get Starter Template
bun x nuxi@latest init <project-name> -t github:ZTL-UwU/shadcn-docs-nuxt-starter
# Start Development Server
bun run dev
```
![logo](/logo.svg)
::
```
::

0 comments on commit 244b27b

Please sign in to comment.