enzostvs HF staff commited on
Commit
7daa6f4
β€’
1 Parent(s): c051b6f

remove import

Browse files
src/lib/components/community/Card.svelte CHANGED
@@ -36,8 +36,6 @@
36
  await onDelete?.(id);
37
  loading = false;
38
  }
39
-
40
- console.log(import.meta.env.BASE_URL)
41
  </script>
42
 
43
  <!-- svelte-ignore a11y-no-static-element-interactions -->
@@ -47,7 +45,7 @@
47
  on:click={handleClick}
48
  >
49
  <div class="w-full h-full absolute top-0 left-0 -z-[1] rounded-xl overflow-hidden" class:!brightness-50={loading}>
50
- <div class="w-full h-full bg-center bg-cover transition-all duration-200 group-hover:scale-110 " style="background-image: url('{import.meta.env.BASE_URL}{env.PUBLIC_FILE_UPLOAD_DIR}/{card.image}');"></div>
51
  </div>
52
  <div class="group-hover:opacity-100 opacity-0 translate-y-full group-hover:translate-y-0 transition-all duration-200 flex flex-col gap-4 w-full">
53
  <div class="bg-black/40 backdrop-blur-sm border border-white/30 rounded-lg px-6 py-3 text-white transition-all duration-200 w-full">
 
36
  await onDelete?.(id);
37
  loading = false;
38
  }
 
 
39
  </script>
40
 
41
  <!-- svelte-ignore a11y-no-static-element-interactions -->
 
45
  on:click={handleClick}
46
  >
47
  <div class="w-full h-full absolute top-0 left-0 -z-[1] rounded-xl overflow-hidden" class:!brightness-50={loading}>
48
+ <div class="w-full h-full bg-center bg-cover transition-all duration-200 group-hover:scale-110 " style="background-image: url('{env.PUBLIC_FILE_UPLOAD_DIR}/{card.image}');"></div>
49
  </div>
50
  <div class="group-hover:opacity-100 opacity-0 translate-y-full group-hover:translate-y-0 transition-all duration-200 flex flex-col gap-4 w-full">
51
  <div class="bg-black/40 backdrop-blur-sm border border-white/30 rounded-lg px-6 py-3 text-white transition-all duration-200 w-full">