Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
189f4f3
commit 0669275
Showing
2 changed files
with
96 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,72 +1,88 @@ | ||
<template> | ||
<div> | ||
<nav aria-label="Progress"> | ||
<ol role="list" class="flex mb-10"> | ||
<li class="w-1/4"> | ||
<span class="pr-6 flex flex-col"> | ||
<span | ||
:class="[{'bg-purple': active_state > 0}, {'bg-purple': active_state == 0}]" | ||
class="w-full h-1 bg-gray-300 rounded-xl text-transparent">Text</span> | ||
<span :class="[{'font-bold': active_state == 0}, {'font-bold': active_state > 0}]" class="text-sm font-normal mt-2">{{ translations.company.title }}</span> | ||
</span> | ||
</li> | ||
<div> | ||
<nav aria-label="Progress"> | ||
<ol role="list" class="flex mb-10"> | ||
<li class="w-1/4"> | ||
<span class="pr-6 flex flex-col"> | ||
<span | ||
:class="[{'bg-purple': active_state > 0}, {'bg-purple': active_state == 0}]" | ||
class="w-full h-1 bg-gray-300 rounded-xl text-transparent" | ||
>Text</span> | ||
|
||
<li class="w-1/4"> | ||
<span class="px-3 flex flex-col"> | ||
<span | ||
:class="[{'bg-purple': active_state > 1}, {'bg-purple': active_state == 1}]" | ||
class="w-full h-1 bg-gray-300 rounded-xl text-transparent">Text</span> | ||
<span :class="[{'font-bold': active_state == 1}, {'font-bold': active_state > 1}]" class="text-sm font-normal mt-2">{{ translations.currencies.title }}</span> | ||
</span> | ||
</li> | ||
<span :class="[{'font-bold': active_state == 0}, {'font-bold': active_state > 0}]" class="text-sm font-normal mt-2"> | ||
{{ translations.company.title }} | ||
</span> | ||
</span> | ||
</li> | ||
|
||
<li class="w-1/4"> | ||
<span class="px-3 flex flex-col"> | ||
<span | ||
:class="[{'bg-purple': active_state > 2}, {'bg-purple': active_state == 2}]" | ||
class="w-full h-1 bg-gray-300 rounded-xl text-transparent">Text</span> | ||
<span :class="[{'font-bold': active_state == 2}, {'font-bold': active_state > 2}]" class="text-sm font-normal mt-2">{{ translations.taxes.title }}</span> | ||
</span> | ||
</li> | ||
<li class="w-1/4"> | ||
<span class="px-3 flex flex-col"> | ||
<span | ||
:class="[{'bg-purple': active_state > 1}, {'bg-purple': active_state == 1}]" | ||
class="w-full h-1 bg-gray-300 rounded-xl text-transparent" | ||
>Text</span> | ||
|
||
<li class="w-1/4"> | ||
<span class="pl-6 flex flex-col"> | ||
<span | ||
:class="[{'bg-purple': active_state == 3}]" | ||
class="w-full h-1 bg-gray-300 rounded-xl text-transparent">Text</span> | ||
<span :class="[{'font-bold': active_state == 3}]" class="text-sm font-normal mt-2">{{ translations.finish.title }}</span> | ||
</span> | ||
</li> | ||
</ol> | ||
</nav> | ||
</div> | ||
<span :class="[{'font-bold': active_state == 1}, {'font-bold': active_state > 1}]" class="text-sm font-normal mt-2"> | ||
{{ translations.currencies.title }} | ||
</span> | ||
</span> | ||
</li> | ||
|
||
<li class="w-1/4"> | ||
<span class="px-3 flex flex-col"> | ||
<span | ||
:class="[{'bg-purple': active_state > 2}, {'bg-purple': active_state == 2}]" | ||
class="w-full h-1 bg-gray-300 rounded-xl text-transparent" | ||
>Text</span> | ||
|
||
<span :class="[{'font-bold': active_state == 2}, {'font-bold': active_state > 2}]" class="text-sm font-normal mt-2"> | ||
{{ translations.taxes.title }} | ||
</span> | ||
</span> | ||
</li> | ||
|
||
<li class="w-1/4"> | ||
<span class="pl-6 flex flex-col"> | ||
<span | ||
:class="[{'bg-purple': active_state == 3}]" | ||
class="w-full h-1 bg-gray-300 rounded-xl text-transparent" | ||
>Text</span> | ||
|
||
<span :class="[{'font-bold': active_state == 3}]" class="text-sm font-normal mt-2"> | ||
{{ translations.finish.title }} | ||
</span> | ||
</span> | ||
</li> | ||
</ol> | ||
</nav> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
name: "Steps", | ||
export default { | ||
name: "Steps", | ||
components: {}, | ||
components: {}, | ||
props: { | ||
active_state: { | ||
type: [Boolean, String, Number], | ||
} | ||
}, | ||
props: { | ||
active_state: { | ||
type: [Boolean, String, Number], | ||
} | ||
}, | ||
created() { | ||
this.translations = wizard_translations; | ||
}, | ||
created() { | ||
this.translations = wizard_translations; | ||
}, | ||
data() { | ||
return { | ||
translations: { | ||
company: {}, | ||
currencies: {}, | ||
taxes: {}, | ||
finish: {}, | ||
}, | ||
}; | ||
}, | ||
}; | ||
</script> | ||
data() { | ||
return { | ||
translations: { | ||
company: {}, | ||
currencies: {}, | ||
taxes: {}, | ||
finish: {}, | ||
}, | ||
}; | ||
}, | ||
}; | ||
</script> |