feat(cheatsheet): set up images + adjustments

This commit is contained in:
Julien
2018-09-09 23:05:03 +02:00
parent f3f9b8e411
commit 0c8a1a4092
32 changed files with 292 additions and 41 deletions

47
components/BaseShare.vue Normal file
View File

@@ -0,0 +1,47 @@
<!-- *************************************************************************
TEMPLATE
************************************************************************* -->
<template lang="pug">
img(
@click="onClick"
:src="'/images/components/BaseShare/' + network + '.svg'"
class="c-base-share"
)
</template>
<!-- *************************************************************************
SCRIPT
************************************************************************* -->
<script>
export default {
props: {
network: {
type: String,
required: true
}
},
methods: {
onClick() {
this.$emit("click", this.network);
}
}
};
</script>
<!-- *************************************************************************
STYLE
************************************************************************* -->
<style lang="scss">
$c: ".c-base-share";
#{$c} {
display: block;
width: 32px;
height: 32px;
cursor: pointer;
}
</style>