Skip to content

Instantly share code, notes, and snippets.

@adamdahan
Last active October 8, 2018 19:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adamdahan/ea10b30d2ebc626755adfd5c5cd09180 to your computer and use it in GitHub Desktop.
Save adamdahan/ea10b30d2ebc626755adfd5c5cd09180 to your computer and use it in GitHub Desktop.
<template>
<div class="container">
<div class="columns" style="margin-top: 40px;">
<div class="column is-12">
<div class="tabs is-toggle">
<ul>
<li :class="[ setting === 'account' ? 'is-active' : '']">
<a @click="setting='account'">
<span class="icon is-small"><i class="fas fa-user" aria-hidden="true"></i></span>
My Profile
</a>
</li>
<li :class="[ setting === 'billing' ? 'is-active' : '']">
<a @click="setting='billing'">
<span class="icon is-small"><i class="fas fa-credit-card" aria-hidden="true"></i></span>
Billing
</a>
</li>
<li :class="[ setting === 'preferences' ? 'is-active' : '']">
<a @click="setting='preferences'">
<span class="icon is-small"><i class="fas fa-sliders-h" aria-hidden="true"></i></span>
Preferences
</a>
</li>
</ul>
</div>
<div class="box help-content">
<code v-if="setting ==='account'">
Show account
</code>
<code v-if="setting ==='billing'">
Show billing
</code>
<code v-if="setting ==='preferences'">
Show preferences
</code>
</pre>
</div>
</div>
</div>
</div>
</template>
<script>
export default {
name: 'ProfileInfo',
data() {
return {
setting: 'account'
}
},
}
</script>
<style lang="css" scoped>
.help-content {
background-color: white !important;
}
.help-tabs {
margin-bottom: 10px !important;
}
.tabs li.is-active a {
color: #FFFFFF;
font-weight: bold;
}
code, pre {
color: #1b1e21 !important;
background-color: white !important;
}
.box {
height: 500px;
}
</style>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment