2023-01-03 08:13:08 +00:00
|
|
|
<script lang="ts">
|
2022-10-25 14:08:33 +00:00
|
|
|
import {
|
|
|
|
Icon,
|
|
|
|
} from 'sveltestrap';
|
|
|
|
|
2022-11-22 10:51:48 +00:00
|
|
|
const { MODE } = import.meta.env;
|
|
|
|
|
|
|
|
import { userSession } from '$lib/stores/usersession';
|
2022-10-25 14:08:33 +00:00
|
|
|
import { t, locale } from '$lib/translations';
|
|
|
|
|
2023-01-03 08:13:08 +00:00
|
|
|
export let routeId: string | null;
|
2023-01-11 14:23:57 +00:00
|
|
|
const instancename = encodeURIComponent(window.location.hostname);
|
2022-10-25 14:08:33 +00:00
|
|
|
</script>
|
|
|
|
|
2022-11-22 10:51:48 +00:00
|
|
|
{#if MODE == 'production'}
|
|
|
|
<a
|
|
|
|
id="voxpeople"
|
2023-01-03 08:13:08 +00:00
|
|
|
href="https://framaforms.org/quel-est-votre-avis-sur-happydns-1610366701?u={$userSession?$userSession.id:0}&i={instancename}&p={routeId}&l={$locale}"
|
2022-11-22 10:51:48 +00:00
|
|
|
target="_blank"
|
|
|
|
rel="noreferrer"
|
|
|
|
title={$t('common.survey')}
|
2023-07-12 09:21:19 +00:00
|
|
|
class="d-flex btn btn-light justify-content-center align-items-center"
|
|
|
|
data-umami-event="vox-people"
|
2022-11-22 10:51:48 +00:00
|
|
|
>
|
|
|
|
<Icon
|
|
|
|
name="chat-right-text"
|
|
|
|
/>
|
|
|
|
</a>
|
|
|
|
{/if}
|
|
|
|
|
|
|
|
<style>
|
|
|
|
#voxpeople {
|
|
|
|
position: fixed;
|
|
|
|
bottom: 7vh;
|
|
|
|
right: 4vw;
|
|
|
|
z-index: 1051;
|
|
|
|
height: max(4vw, 4vh);
|
|
|
|
width: max(4vw, 4vh);
|
|
|
|
border-radius: 4vw;
|
|
|
|
box-shadow: 0 0px 3px 0 #9332bb;
|
|
|
|
font-size: max(1.7vw, 1.7vh);
|
|
|
|
}
|
|
|
|
</style>
|