drop.chapril.org-firefoxsend/app/ui/surveyDialog.js

43 lines
1.2 KiB
JavaScript
Raw Normal View History

2019-04-26 22:30:33 +02:00
const html = require('choo/html');
const version = require('../../package.json').version;
const { browserName } = require('../utils');
module.exports = function() {
return function(state, emit, close) {
const surveyUrl = `${
state.PREFS.surveyUrl
}?ver=${version}&browser=${browserName()}&anon=${
state.user.loggedIn
}&active_count=${state.storage.files.length}`;
return html`
<send-survey-dialog
class="flex flex-col items-center text-center p-4 max-w-sm m-auto"
>
2019-06-14 20:30:43 +02:00
<h1 class="text-3xl font-bold my-4">
2019-04-26 22:30:33 +02:00
Tell us what you think.
</h1>
2019-09-09 19:34:55 +02:00
<p class="font-normal leading-normal text-grey-80 px-4">
Love Send? Take a quick survey to let us know how we can make it
better.
2019-04-26 22:30:33 +02:00
</p>
<a
2019-06-14 20:30:43 +02:00
class="btn rounded-lg w-full flex-shrink-0 focus:outline my-5"
2019-04-26 22:30:33 +02:00
onclick="${() => emit('closeModal')}"
title="Give feedback"
href="${surveyUrl}"
target="_blank"
>
Give feedback
</a>
<button
2022-04-12 15:58:58 +02:00
class="link-primary font-medium cursor-pointer focus:outline"
2019-04-26 22:30:33 +02:00
onclick="${close}"
title="Skip"
>
Skip
</button>
</send-survey-dialog>
`;
};
};