87 lines
No EOL
1.7 KiB
Vue
87 lines
No EOL
1.7 KiB
Vue
<template id="info-modal">
|
|
<transition name="fade" @after-enter="content = true">
|
|
<div
|
|
v-if="container"
|
|
class="modal-container"
|
|
@click.self.stop="content = false"
|
|
>
|
|
<transition name="burst" @after-leave="$emit('close')">
|
|
<div v-if="content" class="modal">
|
|
<h2 class="center">Why Does This Exist?</h2>
|
|
<p>
|
|
This exists because
|
|
<a
|
|
href="https://github.com/Oliver-Akins"
|
|
target="_blank"
|
|
rel="noopener"
|
|
>Oliver</a>
|
|
wanted some way to be able to see his top songs in durations
|
|
different than what Spotify distributes on their own (yearly),
|
|
so he created this website.
|
|
</p>
|
|
<hr>
|
|
<h2>Source Code?</h2>
|
|
<p>
|
|
Top Lists is completely open source! You can audit the
|
|
code at
|
|
<a
|
|
href="http://github.com/Oliver-Akins/top-lists"
|
|
target="_blank"
|
|
rel="noopener"
|
|
>
|
|
github.com/Oliver-Akins/top-lists
|
|
</a>
|
|
</p>
|
|
</div>
|
|
</transition>
|
|
</div>
|
|
</transition>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
name: `SiteInfoModal`,
|
|
data() {return {
|
|
container: false,
|
|
content: false,
|
|
}},
|
|
mounted() {
|
|
this.$nextTick(function() {
|
|
this.container = true;
|
|
});
|
|
},
|
|
}
|
|
</script>
|
|
|
|
<style scoped>
|
|
.modal-container {
|
|
background-color: var(--modal-container-background);
|
|
justify-content: center;
|
|
align-items: center;
|
|
position: fixed;
|
|
display: flex;
|
|
height: 100vh;
|
|
width: 100vw;
|
|
z-index: 10;
|
|
left: 0;
|
|
top: 0;
|
|
}
|
|
|
|
.modal {
|
|
background-color: var(--modal-background);
|
|
border-radius: var(--corner-rounding);
|
|
color: var(--modal-text);
|
|
text-align: center;
|
|
max-height: 85%;
|
|
padding: 0 15px;
|
|
z-index: 11;
|
|
width: 90%;
|
|
}
|
|
|
|
@media only screen and (min-width: 768px) {
|
|
.modal {
|
|
width: 50%;
|
|
max-height: 75%;
|
|
}
|
|
}
|
|
</style> |