Skip to content

Commit

Permalink
Remove ineffecient flag library
Browse files Browse the repository at this point in the history
  • Loading branch information
vicvancooten committed Aug 25, 2024
1 parent 369b6a0 commit eecd008
Show file tree
Hide file tree
Showing 5 changed files with 592 additions and 10 deletions.
2 changes: 2 additions & 0 deletions app.vue
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,8 @@ a {
justify-content: center;
align-items: start;
justify-items: stretch;
border-top: 1px solid var(--accent-color-semi-transparent);
padding-top: 2rem;
.fact {
header {
Expand Down
Binary file modified bun.lockb
Binary file not shown.
15 changes: 6 additions & 9 deletions components/Duolingo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,9 @@

<!-- Languages -->
<div v-for="language in languages" :key="language.id">
<CountryFlag
:country="language.language"
size="small"
:title="language.title"
<NuxtImg
:src="`https://aiclientportalprod.blob.core.windows.net/clientportal/static/flags/${language.language}.svg`"
class="flag"
/>
<strong>{{ Intl.NumberFormat('nl-NL').format(language.xp) }}</strong>
XP
Expand All @@ -27,7 +26,6 @@
</template>

<script lang="ts" setup>
import CountryFlag from 'vue-country-flag-next'
const { data } = await useFetch('/api/duolingo')
const success = data.value?.success
const streak = data.value?.streak ?? -1
Expand All @@ -40,10 +38,9 @@ const languages = (data.value?.languages ?? []).slice(0, 2)
align-items: center;
gap: 0.5rem;
.small-flag {
border-radius: 50%;
width: 3rem;
height: 3rem;
.flag {
width: 1rem;
height: 1rem;
}
}
</style>
Loading

0 comments on commit eecd008

Please sign in to comment.