Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremystucki committed Feb 2, 2024
1 parent fa3c9dc commit a5cf556
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 22 deletions.
2 changes: 1 addition & 1 deletion src/App.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<Navigation />
<div class="p-2 bg-gray-400">
<div class="p-2">
<router-view />
</div>
<PageFooter />
Expand Down
39 changes: 19 additions & 20 deletions src/components/BeautifulProgressIndicator.vue
Original file line number Diff line number Diff line change
@@ -1,28 +1,27 @@
<link rel="stylesheet" href="../../styles/main.scss">
<template>
<div class="container">
<p class="ratio-label">
{{ earned }} / {{ required }}
</p>
<p
<div class="text-xs flex justify-between px-1 py-0.5">
<span>{{ earned }} / {{ required }}</span>
<span
v-if="planned > 0"
class="planned-label"
class="text-gray-400"
>
{{ planned }} noch geplant
</p>
</span>
</div>

<div class="progress-container">
<div
class="planned-progress"
:style="{ width: plannedProgress }"
/>
<div
class="earned-progress"
:style="{
width: earnedProgress,
'background-color': color,
}"
/>
</div>
<div class="bg-gray-200 relative h-5 w-48 rounded-full">
<div
class="bg-gray-300 h-full absolute rounded-full"
:style="{ width: plannedProgress }"
/>
<div
class="h-full absolute transition-width duration-1000 rounded-full"
:style="{
width: earnedProgress,
'background-color': color,
}"
/>
</div>
</template>

Expand Down
6 changes: 5 additions & 1 deletion tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@ export default {
"./src/**/*.{vue,js,ts,jsx,tsx}",
],
theme: {
extend: {},
extend: {
transitionProperty: {
'width': 'width'
},
},
},
plugins: [],
}

0 comments on commit a5cf556

Please sign in to comment.