Skip to content

Commit

Permalink
Self-Hosted Wizard Finish
Browse files Browse the repository at this point in the history
  • Loading branch information
mervekaraman committed Jun 23, 2023
1 parent df95c10 commit 0f32db0
Showing 1 changed file with 25 additions and 19 deletions.
44 changes: 25 additions & 19 deletions resources/assets/js/views/wizard/Finish.vue
Expand Up @@ -2,20 +2,20 @@
<div class="relative bg-body z-10 rounded-lg shadow-2xl p-5 sm:p-10 full-height-mobile overflow-hidden">
<WizardSteps :active_state="active"></WizardSteps>

<div class="flex flex-col justify-between -mt-5 sm:mt-0" style="height:565px;">
<div class="flex flex-col justify-between -mt-5 sm:mt-0 overflow-y-scroll lg:overflow-hidden" style="height:523px;">
<div v-if="pageLoad" class="absolute left-0 right-0 top-0 bottom-0 w-full h-full bg-white rounded-lg flex items-center justify-center z-50">
<span class="material-icons form-spin text-lg animate-spin text-9xl">data_usage</span>
<span class="material-icons form-spin animate-spin text-9xl">data_usage</span>
</div>

<div class="flex flex-col lg:flex-row mt-6">
<div class="flex flex-col lg:flex-row mt-4">
<div class="w-full lg:w-1/2 ltr:pr-10 rtl:pl-10 mt-3">
<div class="grid sm:grid-cols-6">
<h1 class="sm:col-span-6 text-black-300 mb-2">
<h1 class="sm:col-span-6 text-black-300 mb-2 text-lg font-light">
{{ translations.finish.recommended_apps }}
</h1>

<div v-for="(item, index) in modules" :key="index" class="sm:col-span-6 mb-6">
<a :href="route_url + '/apps/' + item.slug" class="flex items-center">
<div v-for="(item, index) in modules" :key="index" class="sm:col-span-6 mb-3">
<a :href="route_url + '/apps/' + item.slug" class="flex items-center space-x-4 bg-purple-50 rounded-md p-2">
<div class="w-1/4">
<img v-for="(file, indis) in item.files" :key="indis" v-if="file.media_type == 'image' && file.pivot.zone == 'thumbnail'"
:src="file.path_string"
Expand All @@ -24,12 +24,12 @@
/>
</div>

<div class="w-3/4 ltr:pl-8 rtl:pr-8">
<span class="font-medium">
<div class="w-3/4 ltr:pl-2 rtl:pr-2">
<span class="font-medium text-sm">
{{ item.name }}
</span>

<div class="text-black-300 text-sm my-2 line-clamp-2 h-10" v-html="item.description"></div>
<div class="text-black-300 text-sm mt-1 line-clamp-2 h-10" v-html="item.description"></div>
</div>
</a>
</div>
Expand All @@ -43,14 +43,8 @@
</div>

<div class="absolute w-1/2 right-0 ltr:pl-10 rtl:pr-10 mt-3 hidden lg:flex lg:flex-col">
<div class="flex flex-col ltr:items-start rtl:items-end bg-purple ltr:rounded-tl-lg ltr:rounded-bl-lg rtl:rounded-tr-lg rtl:rounded-br-lg p-6">
<div class="w-48 text-white text-left text-2xl font-semibold leading-9">
{{ translations.finish.apps_managing }}
</div>

<div style="width:372px; height:372px;"></div>

<img :src="image_src" class="absolute top-3 right-2" alt="Akaunting" />
<div class="flex">
<img :src="image_src" class="absolute top-3 right-2 w-11/12 p-3 -mt-12" alt="Akaunting" />
</div>

<base-button
Expand All @@ -61,7 +55,19 @@
<i v-if="anchor_loading" class="animate-submit_second delay-[0.28s] absolute w-2 h-2 rounded-full left-0 right-0 -top-2.5 m-auto before:absolute before:w-2 before:h-2 before:rounded-full before:animate-submit_second before:delay-[0.14s] after:absolute after:w-2 after:h-2 after:rounded-full after:animate-submit_second before:-left-3.5 after:-right-3.5 after:delay-[0.42s]"></i>

<span :class="[{'opacity-0': anchor_loading}]">
{{ translations.finish.create_first_invoice }}
{{ translations.finish.go_to_dashboard }}
</span>
</base-button>

<base-button
class="relative flex items-center justify-center text-base rounded-lg m-auto top-10 mt-96 bg-white hover:bg-gray-100 text-purple py-3 px-5 font-semibold disabled:bg-gray-100 "
:disabled="anchor_loading"
@click="finish()"
>
<i v-if="anchor_loading" class="animate-submit_second delay-[0.28s] absolute w-2 h-2 rounded-full left-0 right-0 -top-2.5 m-auto before:absolute before:w-2 before:h-2 before:rounded-full before:animate-submit_second before:delay-[0.14s] after:absolute after:w-2 after:h-2 after:rounded-full after:animate-submit_second before:-left-3.5 after:-right-3.5 after:delay-[0.42s]"></i>

<span :class="[{'opacity-0': anchor_loading}]">
{{ translations.finish.skip }}
</span>
</base-button>
</div>
Expand Down Expand Up @@ -98,7 +104,7 @@ export default {
return {
active: 3,
route_url: url,
image_src: app_url + "/public/img/wizard-modules.png",
image_src: app_url + "/public/img/wizard-rocket.gif",
anchor_loading: false
};
},
Expand Down

0 comments on commit 0f32db0

Please sign in to comment.