mirror of
https://github.com/seanmorley15/AdventureLog.git
synced 2025-07-23 06:49:37 +02:00
images
This commit is contained in:
parent
b3c36638ce
commit
921aae763e
3 changed files with 2 additions and 9 deletions
|
@ -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}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue