Skip to content

Commit

Permalink
docs(VParallax): add welcome section example to docs (#19283)
Browse files Browse the repository at this point in the history
Co-authored-by: Andrew Henry <[email protected]>
  • Loading branch information
mohssineAboutaj and MajesticPotatoe authored Feb 14, 2025
1 parent 2790a4d commit ff90984
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
22 changes: 22 additions & 0 deletions packages/docs/src/examples/v-parallax/misc-welcome.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<template>
<v-parallax src="https://cdn.vuetifyjs.com/images/backgrounds/vbanner.jpg">
<v-container class="fill-height">
<v-row
class="justify-center align-center flex-column-reverse flex-md-row"
>
<v-col cols="12" md="6">
<h1 class="text-h1 mb-8">John Doe</h1>
<h3 class="text-h3 mb-8 font-weight-thin">Web Developer</h3>
<v-btn class="elevation-4 rounded-xl mb-4" color="primary">
Contact Me
</v-btn>
</v-col>
<v-col class="text-center" cols="12" md="6">
<v-avatar :size="300" class="elevation-12 mx-auto mb-8">
<v-img src="https://randomuser.me/api/portraits/men/78.jpg"></v-img>
</v-avatar>
</v-col>
</v-row>
</v-container>
</v-parallax>
</template>
6 changes: 6 additions & 0 deletions packages/docs/src/pages/en/components/parallax.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,12 @@ You can also place any content inside of the parallax. This allows you to use th

<ExamplesExample file="v-parallax/misc-content" />

#### Welcome

You can use it as a welcome section or as a portfolio hero section.

<ExamplesExample file="v-parallax/misc-welcome" />

#### Custom height

You can specify a custom height on a parallax. Keep in mind this can break the parallax if your image is not sized properly
Expand Down

0 comments on commit ff90984

Please sign in to comment.