Skip to content

Commit

Permalink
revise: add gradient background for non-image APODs
Browse files Browse the repository at this point in the history
  • Loading branch information
paulinek13 committed Nov 26, 2023
1 parent 3d8d211 commit 4f85b8d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/components/molecules/ApodContent.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,15 @@
class="overflow-hidden blockf flex-1 min-h-[128px]"
>
<div
class="bg-cover bg-center h-full flex flex-col justify-center text-center text-sm p-4"
class="h-full flex flex-col gap-0 justify-center text-center text-sm p-4 bg-gradient-to-br from-slate-900 to-slate-950"
>
{#if url}
<img
src="https://icons.duckduckgo.com/ip3/{getHostname(
url,
)}.ico"
alt=""
class="min-w-[32px] max-w-[64px] aspect-square m-auto"
class="min-w-[32px] max-w-[64px] aspect-square self-center m-2"
/>
{/if}
<small>Non-image APOD</small> <i>Open in new tab ➚</i>
Expand Down

0 comments on commit 4f85b8d

Please sign in to comment.