feat: add copyright information

This commit is contained in:
Sebin Nyshkim 2020-04-21 19:04:16 +02:00
parent 1e5b4759f7
commit 641033d6d7
2 changed files with 43 additions and 1 deletions

View file

@ -39,6 +39,7 @@
<rich-figure <rich-figure
imgSrc="/img/fullbody-ref.jpg" imgSrc="/img/fullbody-ref.jpg"
caption="Sebin Full Body reference" caption="Sebin Full Body reference"
copyright="FA:SirBoburto"
></rich-figure> ></rich-figure>
<p> <p>
@ -53,6 +54,7 @@
<rich-figure <rich-figure
imgSrc="/img/head-ref.jpg" imgSrc="/img/head-ref.jpg"
caption="Sebin's Expressions" caption="Sebin's Expressions"
copyright="FA:SirBoburto"
></rich-figure> ></rich-figure>
<p> <p>
@ -67,6 +69,7 @@
<rich-figure <rich-figure
imgSrc="/img/sebin-hairstyle-short.jpg" imgSrc="/img/sebin-hairstyle-short.jpg"
caption="Sebin with short hair" caption="Sebin with short hair"
copyright="@LeoboArt"
></rich-figure> ></rich-figure>
<p> <p>
@ -85,6 +88,7 @@
v-if="nsfw" v-if="nsfw"
imgSrc="/img/penis-ref.jpg" imgSrc="/img/penis-ref.jpg"
caption="Sebin's manly parts" caption="Sebin's manly parts"
copyright="@Zodim87"
></rich-figure> ></rich-figure>
<p v-if="nsfw"> <p v-if="nsfw">
@ -112,6 +116,7 @@
<rich-figure <rich-figure
imgSrc="/img/upper-body-ref.png" imgSrc="/img/upper-body-ref.png"
caption="Sebin's upper body closeup" caption="Sebin's upper body closeup"
copyright="@NidtheDragon"
></rich-figure> ></rich-figure>
<p> <p>
@ -308,6 +313,10 @@
contact. contact.
</p> </p>
</section> </section>
<footer>
© 2020 Sebin Nyshkim
</footer>
</div> </div>
</template> </template>
@ -546,6 +555,11 @@ section {
} }
} }
footer {
margin: 2em 0;
text-align: center;
}
.float { .float {
max-width: 15em; max-width: 15em;

View file

@ -1,7 +1,12 @@
<template> <template>
<figure :class="[{ float: imgPos }, imgPos]"> <figure :class="[{ float: imgPos }, imgPos]">
<img :src="imgSrc" :alt="caption" /> <img :src="imgSrc" :alt="caption" />
<figcaption>{{ caption }}</figcaption> <figcaption>
<div class="caption">{{ caption }}</div>
<div class="copyright">
By <a :href="getLink(copyright)[0]">{{ getLink(copyright)[1] }}</a>
</div>
</figcaption>
</figure> </figure>
</template> </template>
@ -17,8 +22,27 @@ export default {
type: String, type: String,
required: true required: true
}, },
copyright: {
type: String,
required: true
},
imgPos: String, imgPos: String,
imgW: String imgW: String
},
methods: {
getLink(username) {
if (username.match(/^(@)?([a-z0-9_]{1,30})$/i))
return this.formatTwitter(username);
if (username.match(/^(FA:)/)) return this.formatFuraffinity(username);
},
formatFuraffinity: username => {
let user = username.slice(3);
return [`https://www.furaffnity.net/user/${user}`, user];
},
formatTwitter: username => {
let user = username.slice(1);
return [`https://twitter.com/${user}`, username];
}
} }
}; };
</script> </script>
@ -42,6 +66,10 @@ figure {
text-align: center; text-align: center;
} }
a {
color: #fff;
}
img { img {
display: block; display: block;
width: 100%; width: 100%;