images
This commit is contained in:
@@ -123,8 +123,6 @@ MEDIA_ROOT = os.path.join(BASE_DIR, 'media')
|
|||||||
# STATICFILES_DIRS = [os.path.join(BASE_DIR, 'static')]
|
# STATICFILES_DIRS = [os.path.join(BASE_DIR, 'static')]
|
||||||
|
|
||||||
|
|
||||||
STATIC_ROOT = os.path.join(BASE_DIR, "ui/staticfiles")
|
|
||||||
|
|
||||||
# TEMPLATE_DIRS = [os.path.join(BASE_DIR, 'templates')]
|
# TEMPLATE_DIRS = [os.path.join(BASE_DIR, 'templates')]
|
||||||
|
|
||||||
TEMPLATES = [
|
TEMPLATES = [
|
||||||
|
|||||||
@@ -42,12 +42,7 @@
|
|||||||
<figure>
|
<figure>
|
||||||
<!-- svelte-ignore a11y-img-redundant-alt -->
|
<!-- svelte-ignore a11y-img-redundant-alt -->
|
||||||
{#if adventure.image && adventure.image !== ''}
|
{#if adventure.image && adventure.image !== ''}
|
||||||
<img
|
<img src={adventure.image} alt="Adventure Image" class="w-full h-48 object-cover" />
|
||||||
src={adventure.image}
|
|
||||||
alt="Adventure Image"
|
|
||||||
class="w-full h-48 object-cover"
|
|
||||||
crossorigin="anonymous"
|
|
||||||
/>
|
|
||||||
{:else}
|
{:else}
|
||||||
<img
|
<img
|
||||||
src={'https://placehold.co/300?text=No%20Image%20Found&font=roboto'}
|
src={'https://placehold.co/300?text=No%20Image%20Found&font=roboto'}
|
||||||
|
|||||||
@@ -14,7 +14,7 @@
|
|||||||
<div class="avatar placeholder">
|
<div class="avatar placeholder">
|
||||||
<div class="bg-neutral text-neutral-content rounded-full w-10 ml-4">
|
<div class="bg-neutral text-neutral-content rounded-full w-10 ml-4">
|
||||||
{#if user.profile_pic}
|
{#if user.profile_pic}
|
||||||
<img src={user.profile_pic} alt="" />
|
<img src={user.profile_pic} alt="User Profile" />
|
||||||
{:else}
|
{:else}
|
||||||
<span class="text-2xl -mt-1">{letter}</span>
|
<span class="text-2xl -mt-1">{letter}</span>
|
||||||
{/if}
|
{/if}
|
||||||
|
|||||||
Reference in New Issue
Block a user