Skip to content

Commit

Permalink
Merge branch 'dev' of https://github.com/nuxt-themes/alpine into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
Atinux committed Jan 9, 2023
2 parents 929ef68 + d859414 commit 5054c3e
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 19 deletions.
10 changes: 10 additions & 0 deletions .docs/app.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
export default defineAppConfig({
alpine: {
socials: {
twitter: 'nuxtstudio',
instagram: 'wearenuxt',
github: 'nuxt-themes/alpine',
youtube: '@nuxtlabs'
}
}
})
13 changes: 6 additions & 7 deletions app.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,12 @@ export default defineAppConfig({
message: 'Follow me on'
},
socials: {
twitter: 'nuxtlabs',
instagram: 'atinuxt',
linkedin: {
icon: 'uil:linkedin',
label: 'LinkedIn',
href: 'https://www.linkedin.com/company/nuxtlabs'
}
twitter: '',
instagram: '',
github: '',
facebook: '',
medium: '',
youtube: ''
},
form: {
successMessage: 'Message sent. Thank you!'
Expand Down
2 changes: 1 addition & 1 deletion components/AppFooter.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const alpine = useAppConfig().alpine
<p v-if="alpine.footer?.message" class="message">
{{ alpine.footer.message }}
</p>
<div class="icons">
<div v-if="alpine.socials && Object.entries(alpine.socials)" class="social">
<SocialIcons :socials="alpine.socials" />
Expand Down
36 changes: 25 additions & 11 deletions nuxt.schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,23 +116,37 @@ export default defineNuxtConfigSchema({
* @example 'nuxt_js'
* @studio-icon simple-icons:twitter
*/
twitter: 'nuxtlabs',
twitter: '',
/**
* Instagram handle
* @example https://www.instagram.com/atinuxt
* @example 'wearenuxt'
* @studio-icon simple-icons:instagram
*/
instagram: 'atinuxt',
instagram: '',
/**
* LinkedIn page url.
* @example https://www.linkedin.com/company/nuxtlabs
* @studio-icon simple-icons:instagram
* GitHub path
* @example 'nuxt-themes/alpine'
* @studio-icon simple-icons:github
*/
linkedin: {
icon: 'uil:linkedin',
label: 'LinkedIn',
href: 'https://www.linkedin.com/company/nuxtlabs'
}
github: '',
/**
* GitHub path
* @example 'nuxt'
* @studio-icon simple-icons:facebook
*/
facebook: '',
/**
* Medium handle
* @example 'nuxt'
* @studio-icon simple-icons:medium
*/
medium: '',
/**
* Youtube handle
* @example '@nuxtlabs'
* @studio-icon simple-icons:youtube
*/
youtube: ''
},
/**
* Contact form configuration.
Expand Down

1 comment on commit 5054c3e

@vercel
Copy link

@vercel vercel bot commented on 5054c3e Jan 9, 2023

Choose a reason for hiding this comment

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

Please sign in to comment.