merge dark and light style (CSS)

This commit is contained in:
2024-02-09 11:02:52 +01:00
parent ca683c4cfa
commit 61067252eb
8 changed files with 43 additions and 31 deletions

View File

@ -14,7 +14,7 @@
});
</script>
<div class="alert bg-base-300 dark:bg-base-300">
<div class="alert bg-neutral-600 border-none">
<svg
xmlns="http://www.w3.org/2000/svg"
fill="none"
@ -27,5 +27,5 @@
d="M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"
/></svg
>
<span class="text-xl">{@html info}</span>
<span class="text-xl text-white">{@html info}</span>
</div>

View File

@ -7,7 +7,7 @@
</script>
<div
class="mx-2 w-72 my-4 bg-base-300 dark:bg-base-300 border border-gray-200 rounded-lg shadow dark:border-gray-700"
class="mx-2 w-72 my-4 bg-neutral-800 rounded-lg shadow dark:border-gray-700"
>
<div class="flex justify-end px-4 pt-4" />
<div class="flex flex-col items-center pb-10">
@ -16,12 +16,15 @@
src={image}
alt="Portrait"
/>
<h5 class="mb-1 text-xl font-medium text-gray-900 dark:text-white">
<h5 class="mb-1 text-xl font-medium text-white">
{name}
</h5>
<span class="text-sm text-gray-500 dark:text-gray-400">{description}</span>
<span class="text-sm text-gray-400">{description}</span>
<div class="flex mt-4 space-x-3 md:mt-6">
<a href={site} class="btn btn-tertiary">Site</a>
<a
href={site}
class="btn btn-tertiary border-none bg-neutral-700 text-white">Site</a
>
</div>
</div>
</div>

View File

@ -10,25 +10,23 @@
</script>
<div
class="max-w-sm my-4 w-80 h-fit bg-base-300 dark:bg-base-300 border border-gray-300 rounded-lg shadow-md dark:border-gray-700"
class="max-w-sm my-4 w-80 h-fit rounded-lg shadow-md bg-neutral-800 hover:bg-neutral-700"
>
<a href="#">
<img class="rounded-t-lg h-48 w-80 object-cover" src={image} alt="" />
</a>
<div class="p-5">
<a href="#">
<h5
class="mb-2 text-lg font-bold tracking-tight text-gray-900 dark:text-white"
>
<h5 class="mb-2 text-lg font-bold tracking-tight text-white">
{truncateString(title, 50)}
</h5>
</a>
<p class="mb-3 font-normal text-gray-700 dark:text-gray-400">
<p class="mb-3 font-normal text-gray-400">
{description}
</p>
<a
href={link}
class="inline-flex items-center btn btn-primary text-sm font-medium text-center"
class="inline-flex items-center btn btn-primary text-sm font-medium text-center text-white"
>
En savoir plus
</a>

View File

@ -8,7 +8,7 @@
<a
href={link}
class="flex flex-col items-center rounded-lg shadow md:flex-row dark:hover:bg-base-100 hover:bg-base-100 bg-base-300 dark:bg-base-300"
class="flex flex-col items-center bg-neutral-800 hover:bg-neutral-700 rounded-lg shadow md:flex-row"
>
<img
class="object-cover w-full rounded-t-lg h-96 md:h-auto md:w-48 md:rounded-none md:rounded-l-lg"
@ -18,10 +18,12 @@
<div class="flex flex-col items-start md:items-end w-full">
<div class="flex flex-col justify-between p-4 leading-normal w-full">
<div class="flex justify-between">
<h5 class="inline mb-2 text-2xl font-bold tracking-tight text-gray-900 dark:text-white" > {name} </h5>
<p class="inline text-right">{creator}</p>
<h5 class="inline mb-2 text-2xl font-bold tracking-tight text-white">
{name}
</h5>
<p class="inline text-right text-orange-300">{creator}</p>
</div>
<p class="mb-3 font-normal text-gray-700 dark:text-gray-400">
<p class="mb-3 font-normal text-gray-400">
{description}
</p>
</div>