Store last viewed org in local storage for better UX

This commit is contained in:
Rotimi Best
2023-09-13 20:22:15 +01:00
parent 56f979d76e
commit c07c119b5b
6 changed files with 33 additions and 16 deletions
@@ -48,9 +48,13 @@
// }
</script>
<a rel="prefetch" href={isOnLandingPage ? `/course/${slug}` : `/courses/${id}`} class=" text-black">
<a
rel="prefetch"
href={isOnLandingPage ? `/course/${slug}` : `/courses/${id}`}
class=" text-black w-fit"
>
<div
class="border border-gray w-full max-w-[400px] relative hover:shadow-lg transition-all ease-in-out"
class="border border-gray w-full max-w-[350px] relative hover:shadow-lg transition-all ease-in-out"
>
<div class="p-4">
<div class=" mb-5">