feat: Adds watermark to loaded visual

This commit is contained in:
Alan Rynne
2023-11-12 23:07:28 +01:00
parent cfc958f9fd
commit 30dbd19c52
2 changed files with 27 additions and 1 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

+27 -1
View File
@@ -1,9 +1,35 @@
<script setup lang="ts">
import ViewerWrapper from 'src/components/ViewerWrapper.vue'
import { inject } from 'vue'
import { hostKey } from 'src/injectionKeys'
const host = inject(hostKey)
const goToSpeckleWebsite = () => host.launchUrl('https://speckle.systems')
</script>
<template>
<div id="overlay">
<img class="watermark" src="@assets/powered-by-speckle.png" @click="goToSpeckleWebsite" />
</div>
<viewer-wrapper id="speckle-3d-view" class="h-full w-full"></viewer-wrapper>
</template>
<style scoped></style>
<style scoped>
.watermark {
height: auto;
width: 60pt;
margin-top: 3pt;
margin-right: 3pt;
}
.watermark:hover {
cursor: pointer;
}
#overlay {
position: absolute;
width: 100%;
z-index: 100;
}
</style>