2019-02-27 02:58:41 +01:00
|
|
|
<template>
|
|
|
|
|
<q-page class="text-white">
|
|
|
|
|
<div class="landing">
|
|
|
|
|
<section>
|
|
|
|
|
<div class="landing__hero">
|
2019-03-04 20:29:30 +01:00
|
|
|
<div class="landing__header"></div>
|
2019-02-27 02:58:41 +01:00
|
|
|
<div class="landing__hero-content row justify-center q-gutter-xl">
|
|
|
|
|
<div class="row">
|
|
|
|
|
<logo></logo>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="flex justify-end">
|
|
|
|
|
<div class="q-gutter-sm">
|
|
|
|
|
<div class="text-h1 shadow-max">FreePlanet</div>
|
|
|
|
|
<div class="text-subtitle1 shadow text-italic q-pl-sm">{{$t('msg.sottoTitoloApp')}}
|
|
|
|
|
</div>
|
|
|
|
|
<div class="text-subtitle1 shadow big text-italic q-pl-sm"><strong>{{$t('msg.sottoTitoloApp2')}}</strong>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="text-subtitle2 shadow text-italic q-pl-sm ">{{$t('msg.sottoTitoloApp3')}}
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div>
|
|
|
|
|
<q-btn v-if="getPermission() !== 'granted'" class="enable-notifications shadow"
|
|
|
|
|
color="primary" rounded
|
|
|
|
|
size="lg"
|
|
|
|
|
icon="notifications" @click="askfornotification"
|
|
|
|
|
:label="$t('notification.ask')"/>
|
|
|
|
|
<!--<q-btn v-if="getPermission() === 'granted'" class="enable-notifications" color="primary" rounded size="lg" icon="notifications" @click="showNotificationExample" label="Send Notification"/>-->
|
|
|
|
|
<!--<q-btn v-if="getPermission() === 'granted'" class="enable-notifications" color="secondary" rounded size="lg" icon="notifications" @click="createPushSubscription" label="Create Push Subscription !"/>-->
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
2019-03-04 20:29:30 +01:00
|
|
|
<!--
|
|
|
|
|
<q-btn>
|
2019-02-04 16:47:15 +01:00
|
|
|
|
2019-03-04 20:29:30 +01:00
|
|
|
Canale Telegram: <a href="https://t.me/freeplanet_channel" target="_blank"
|
|
|
|
|
style="color: white;">
|
|
|
|
|
<q-icon class="fab fa-telegram" size="2rem"/>
|
|
|
|
|
</a>
|
|
|
|
|
</q-btn>
|
|
|
|
|
-->
|
2019-02-27 02:58:41 +01:00
|
|
|
|
2019-03-04 20:29:30 +01:00
|
|
|
<div v-if="isInCostruction" style="margin: 5px;">
|
2019-02-27 02:58:41 +01:00
|
|
|
<q-alert
|
|
|
|
|
type="info"
|
|
|
|
|
class="q-mb-sm">
|
|
|
|
|
{{$t('msg.underconstruction')}}
|
|
|
|
|
</q-alert>
|
2019-03-04 20:29:30 +01:00
|
|
|
<br>
|
|
|
|
|
</div>
|
|
|
|
|
<div v-else>
|
|
|
|
|
<div v-if="!isLogged" style="margin: 5px; padding: 5px;" class="home">
|
|
|
|
|
<q-btn rounded size="lg" color="primary" @click="PagLogin" class="btn-start">
|
|
|
|
|
{{$t('login.enter')}}
|
|
|
|
|
</q-btn>
|
|
|
|
|
<q-btn rounded size="lg" color="secondary" @click="PagReg" class="btn-start">
|
|
|
|
|
{{$t('reg.submit')}}
|
|
|
|
|
</q-btn>
|
|
|
|
|
</div>
|
2019-02-27 02:58:41 +01:00
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div>
|
|
|
|
|
<q-field
|
|
|
|
|
v-if="getPermission() === 'granted'"
|
|
|
|
|
icon="notifications"
|
|
|
|
|
class="shadow"
|
|
|
|
|
:label="$t('notification.titlegranted')"
|
2019-03-04 18:48:07 +01:00
|
|
|
:helper="$t('notification.statusnot')">
|
2019-02-27 02:58:41 +01:00
|
|
|
</q-field>
|
|
|
|
|
<q-field
|
|
|
|
|
v-if="NotServiceWorker()"
|
|
|
|
|
class="shadow"
|
|
|
|
|
icon="notifications"
|
|
|
|
|
label="Service Worker not present"
|
|
|
|
|
>
|
|
|
|
|
</q-field>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<!--<div class="q-pt-md q-pl-sm">-->
|
|
|
|
|
<!--<div class="landing__hero-btns q-gutter-md row items-center"><a tabindex="0"-->
|
|
|
|
|
<!--type="button"-->
|
|
|
|
|
<!--href="/introduction-to-quasar"-->
|
|
|
|
|
<!--class="q-btn inline relative-position q-btn-item non-selectable q-btn--rectangle bg-white text-primary q-focusable q-hoverable q-btn--push">-->
|
|
|
|
|
<!--<div class="q-focus-helper"></div>-->
|
|
|
|
|
<!--<div class="q-btn__content text-center col items-center q-anchor--skip justify-center row">-->
|
|
|
|
|
<!--<div>About</div>-->
|
|
|
|
|
<!--</div>-->
|
|
|
|
|
<!--</a><a tabindex="0" type="button" href="/start"-->
|
|
|
|
|
<!--class="q-btn inline relative-position q-btn-item non-selectable q-btn--rectangle bg-white text-primary q-focusable q-hoverable q-btn--push">-->
|
|
|
|
|
<!--<div class="q-focus-helper"></div>-->
|
|
|
|
|
<!--<div class="q-btn__content text-center col items-center q-anchor--skip justify-center row">-->
|
|
|
|
|
<!--<div>Get started</div>-->
|
|
|
|
|
<!--</div>-->
|
|
|
|
|
<!--</a>-->
|
|
|
|
|
<!--<div class="text-body2">v1.0.0-beta.4</div>-->
|
|
|
|
|
<!--</div>-->
|
|
|
|
|
<!--</div>-->
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</section>
|
|
|
|
|
</div>
|
2018-11-08 01:09:33 +01:00
|
|
|
</q-page>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
<script lang="ts" src="./home.ts">
|
|
|
|
|
</script>
|
2019-01-16 02:26:43 +01:00
|
|
|
<style lang="scss" scoped>
|
|
|
|
|
@import './home.scss';
|
|
|
|
|
</style>
|