refactor: ♻️ split up App.vue into separate components

This commit is contained in:
Marcus Mietz 2020-08-26 19:12:00 +02:00
parent 52edd0ef8a
commit ce817e59f1
8 changed files with 624 additions and 238 deletions

47
src/components/Figure.vue Normal file
View file

@ -0,0 +1,47 @@
<template>
<figure class="figure">
<slot name="img"></slot>
<figcaption class="figure__meta">
<slot name="caption"></slot>
<slot name="copyright"></slot>
</figcaption>
</figure>
</template>
<script>
export default {};
</script>
<style lang="scss">
@import "@scss/_variables.scss";
.figure {
margin: 1em 0;
&__meta {
text-align: center;
}
img {
display: block;
width: 100%;
}
label,
a {
font-size: 0.8em;
font-style: italic;
color: $copy-color;
}
label:after {
display: inline;
content: " ";
}
a:before {
display: inline;
content: "©";
}
}
</style>