0.0.8 • Published 3 years ago

vue-profile v0.0.8

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

npm version npm

Vue.js Profile

Highly customizable social sharing card.

Standard:

card1

Green Style:

card

Install:

npm install vue-profile

Use:

main.js:

import Vue from 'vue'
import VueProfile from "vue-profile";

Vue.use(VueProfile, 'vue-profile')

component.vue:

<template>
  <vue-profile 
  nickname="@Lukenoutte" 
  bodyPhrase="Follow the white rabbit."
  :socialLinks="myLinks"
  :profileImg="Img"
  />
</template>

<script>
import Img from "../assets/img.png";
export default {
  data(){
    return{
      myLinks: { 
        git: "https://github.com/Lukenoutte",         
        link: "https://github.com/Lukenoutte/vue-profile", 
        },
        Img
    }
  }
}
</script>

Prop

NameTypeRequiredDescription
nicknameString+The text bellow the profile image.
socialLinksObject+A object with all links, using the social network name as key.
profileImgObject, String+The profile image.
cardHeightString, Number-Height
cardWidthString, Number-Width
bodyPhraseString-Phrase bellow icons.
coverImgObject, String-The cover image.
nicknameColorString-Nickname color.
coverColorString-Cover color, if you don't have an image.
iconsColorString-Icons color.
bodyColorString-Color of div bellow cover.
phraseColorString-Phrase color.

Icons (socialLinks)

Name
facebook
twitter
youtube
instagram
linkedin
whatsapp
pinterest
git
blogger
email
telegram
link
tel
poo
<script>
export default {
  data(){
      myLinks: { 
        git: "https://github.com/Lukenoutte",         
        link: "https://github.com/Lukenoutte/vue-profile",
        tel: "5575991777777",
        email: "youremail@mail.com"
        }
  },
}
</script>