Skip to content

Commit

Permalink
cleanup: add dark styles for cache popup and fix contrast
Browse files Browse the repository at this point in the history
  • Loading branch information
GabsEdits authored and mirkobrombin committed Jul 16, 2024
1 parent 40d5945 commit ba9fb63
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/views/HomeView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -104,14 +104,14 @@

<transition name="fade">
<div v-if="cacheIsOld && !messageHidden"
class="fixed bottom-16 right-0 m-8 max-w-sm w-full bg-yellow-300 text-yellow-900 p-4 rounded-lg shadow-lg">
class="fixed bottom-16 right-0 m-8 max-w-sm w-full bg-yellow-300 dark:bg-yellow-900 text-yellow-900 dark:text-yellow-50 p-4 rounded-lg shadow-lg">
<div class="flex justify-between items-center">
<p class="font-bold">Warning</p>
<button class="bg-transparent text-2xl" aria-label="close" @click="hideWarning">&#10005;</button>
</div>
<p>Your local data is older than <u>12 hours</u>, which means that you may not see the latest recipes. Do you want
to update it now?</p>
<button class="mt-2 py-2 px-4 bg-yellow-500 text-white rounded hover:bg-yellow-600" @click="updateCache">Update
<button class="mt-2 py-2 px-4 bg-yellow-500 dark:bg-yellow-700 dark:text-yellow-50 rounded hover:bg-yellow-600" @click="updateCache">Update
cache</button>
</div>
</transition>
Expand Down

0 comments on commit ba9fb63

Please sign in to comment.