Midnight 1 year ago
parent 3be0cafaf2
commit 7e5c889957

@ -23,7 +23,7 @@
<sub class="text-xs">{date}</sub> <sub class="text-xs">{date}</sub>
</a> </a>
{:else} {:else}
<a href={url} class="flex flex-col gap-2 w-[300px] relative flex-none p-3 hover:bg-opacity-50 bg-opacity-0 dark:bg-opacity-0 hover:dark:bg-opacity-50 dark:bg-black bg-white duration-200 rounded-xl"> <a href={url} class="flex flex-col gap-2 w-full relative flex-none p-3 hover:bg-opacity-50 bg-opacity-0 dark:bg-opacity-0 hover:dark:bg-opacity-50 dark:bg-black bg-white duration-200 rounded-xl">
{#if image.length > 0} {#if image.length > 0}
<img src={image} class="rounded-lg w-full aspect-[2/1] object-cover" alt={title} /> <img src={image} class="rounded-lg w-full aspect-[2/1] object-cover" alt={title} />
{/if} {/if}

@ -109,7 +109,7 @@
</div> </div>
<div class="flex h-full w-full @4xl:p-20 gap-20 p-5 z-10"> <div class="flex h-full w-full @4xl:p-20 gap-20 p-5 z-10">
<div class="flex items-start @7xl:block hidden"> <div class="items-start @7xl:block hidden z-10">
<img <img
src={randomBannerPic} src={randomBannerPic}
alt="mid" alt="mid"

@ -40,7 +40,7 @@
</script> </script>
{#if posts.length > 0} {#if posts.length > 0}
<section class="relative container flex flex-col gap-5 lg:gap-20 py-20"> <section class="relative container flex flex-col gap-5 lg:gap-20 pt-20 lg:pb-20">
<div class="absolute top-0 -mt-40" id="blog"></div> <div class="absolute top-0 -mt-40" id="blog"></div>
<h2 class="text-center w-full text-4xl lg:text-6xl tracking-[0.2em] lg:tracking-[1em] font-bold">&lt;-- BLOG --&gt;</h2> <h2 class="text-center w-full text-4xl lg:text-6xl tracking-[0.2em] lg:tracking-[1em] font-bold">&lt;-- BLOG --&gt;</h2>
@ -54,7 +54,7 @@
{#if posts.length == 1} {#if posts.length == 1}
<p class="p-10 text-sm opacity-50">No more posts to show...</p> <p class="p-10 text-sm opacity-50">No more posts to show...</p>
{:else} {:else}
<div class="grid grid-flow-col grid-rows-2 grid-cols-3 w-full gap-5"> <div class="grid grid-flow-col lg:grid-rows-2 grid-cols-1 lg:grid-cols-3 w-full gap-5">
{#each posts as post, key} {#each posts as post, key}
{#if key != 0} {#if key != 0}
<Preview url={post.url} title={post.title} date={post.date} image={post.image} featured={false} isNew={post.isNew} /> <Preview url={post.url} title={post.title} date={post.date} image={post.image} featured={false} isNew={post.isNew} />

@ -20,7 +20,7 @@
<div class="bg-gray-200 dark:bg-gray-800" style="height: 150px; overflow: hidden;"><svg viewBox="0 0 500 150" preserveAspectRatio="none" style="height: 100%; width: 100%;"><path d="M-65.62,-22.99 C146.87,168.99 238.74,166.00 589.37,-22.99 L543.74,181.99 L0.00,150.00 Z" style="stroke: none; fill: rgb(58, 83, 255);"></path></svg></div> <div class="bg-gray-200 dark:bg-gray-800" style="height: 150px; overflow: hidden;"><svg viewBox="0 0 500 150" preserveAspectRatio="none" style="height: 100%; width: 100%;"><path d="M-65.62,-22.99 C146.87,168.99 238.74,166.00 589.37,-22.99 L543.74,181.99 L0.00,150.00 Z" style="stroke: none; fill: rgb(58, 83, 255);"></path></svg></div>
<div class="bg-[#3A53FF] pt-20"> <div class="bg-[#3A53FF] lg:pt-20">
<Portfolio/> <Portfolio/>
</div> </div>

Loading…
Cancel
Save