changes for v4 tailwind
This commit is contained in:
		@@ -68,7 +68,7 @@ import Layout from '../layouts/Layout.astro';
 | 
			
		||||
 | 
			
		||||
        <button
 | 
			
		||||
          id="back-button"
 | 
			
		||||
          class="group inline-flex items-center gap-2 rounded-lg border border-zinc-300 px-6 py-3 text-zinc-700 shadow-sm transition-all duration-300 hover:bg-zinc-100 hover:shadow-md dark:border-zinc-700 dark:text-zinc-300 dark:hover:bg-zinc-800"
 | 
			
		||||
          class="group inline-flex items-center gap-2 rounded-lg border border-zinc-300 px-6 py-3 text-zinc-700 shadow-xs transition-all duration-300 hover:bg-zinc-100 hover:shadow-md dark:border-zinc-700 dark:text-zinc-300 dark:hover:bg-zinc-800"
 | 
			
		||||
        >
 | 
			
		||||
          <svg
 | 
			
		||||
            xmlns="http://www.w3.org/2000/svg"
 | 
			
		||||
@@ -89,7 +89,7 @@ import Layout from '../layouts/Layout.astro';
 | 
			
		||||
 | 
			
		||||
      <!-- Random fun fact -->
 | 
			
		||||
      <div
 | 
			
		||||
        class="mx-auto mt-16 max-w-md rounded-xl border border-zinc-100 bg-zinc-50 p-6 shadow-sm backdrop-blur-sm dark:border-zinc-700/50 dark:bg-zinc-800/50"
 | 
			
		||||
        class="mx-auto mt-16 max-w-md rounded-xl border border-zinc-100 bg-zinc-50 p-6 shadow-xs backdrop-blur-xs dark:border-zinc-700/50 dark:bg-zinc-800/50"
 | 
			
		||||
      >
 | 
			
		||||
        <h3 class="text-sm font-medium tracking-wider text-zinc-500 uppercase dark:text-zinc-400">
 | 
			
		||||
          Did you know?
 | 
			
		||||
 
 | 
			
		||||
@@ -309,7 +309,7 @@ const { post, nextPost, prevPost } = Astro.props;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  .prose code {
 | 
			
		||||
    @reference rounded bg-zinc-100 px-1.5 py-0.5 text-sm font-medium text-zinc-800 dark:bg-zinc-800 dark:text-zinc-200;
 | 
			
		||||
    @reference rounded-sm bg-zinc-100 px-1.5 py-0.5 text-sm font-medium text-zinc-800 dark:bg-zinc-800 dark:text-zinc-200;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  .prose pre {
 | 
			
		||||
 
 | 
			
		||||
@@ -202,7 +202,7 @@ const allTags = [...new Set(sortedPosts.flatMap((post) => post.tags || []))];
 | 
			
		||||
                        </a>
 | 
			
		||||
                      </h3>
 | 
			
		||||
 | 
			
		||||
                      <p class="mb-4 line-clamp-2 flex-grow text-center text-sm text-zinc-600 md:text-left dark:text-zinc-400">
 | 
			
		||||
                      <p class="mb-4 line-clamp-2 grow text-center text-sm text-zinc-600 md:text-left dark:text-zinc-400">
 | 
			
		||||
                        {post.description}
 | 
			
		||||
                      </p>
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -236,7 +236,7 @@ const allTags = [...new Set(posts.flatMap((post) => post.tags || []))].slice(0,
 | 
			
		||||
                    <span class="theme-transition-color mr-2 text-sm font-medium text-zinc-900 dark:text-zinc-100">
 | 
			
		||||
                      #{tag}
 | 
			
		||||
                    </span>
 | 
			
		||||
                    <span class="theme-transition-all flex-shrink-0 rounded-full bg-zinc-100 px-2 py-0.5 text-xs text-zinc-500 dark:bg-zinc-800 dark:text-zinc-400">
 | 
			
		||||
                    <span class="theme-transition-all shrink-0 rounded-full bg-zinc-100 px-2 py-0.5 text-xs text-zinc-500 dark:bg-zinc-800 dark:text-zinc-400">
 | 
			
		||||
                      {tagCount} {tagCount === 1 ? 'post' : 'posts'}
 | 
			
		||||
                    </span>
 | 
			
		||||
                  </div>
 | 
			
		||||
 
 | 
			
		||||
@@ -88,7 +88,7 @@ const relatedTags = [
 | 
			
		||||
          class="mb-2 flex flex-col justify-center gap-4 sm:flex-row sm:items-center sm:justify-start"
 | 
			
		||||
        >
 | 
			
		||||
          <div
 | 
			
		||||
            class="tag-icon mx-auto flex h-12 w-12 items-center justify-center rounded-xl bg-zinc-100 shadow-sm sm:mx-0 dark:bg-zinc-800"
 | 
			
		||||
            class="tag-icon mx-auto flex h-12 w-12 items-center justify-center rounded-xl bg-zinc-100 shadow-xs sm:mx-0 dark:bg-zinc-800"
 | 
			
		||||
          >
 | 
			
		||||
            <svg
 | 
			
		||||
              xmlns="http://www.w3.org/2000/svg"
 | 
			
		||||
@@ -144,7 +144,7 @@ const relatedTags = [
 | 
			
		||||
            {relatedTags.map((relatedTag) => (
 | 
			
		||||
              <a
 | 
			
		||||
                href={`/topics/${relatedTag}`}
 | 
			
		||||
                class="inline-flex flex-shrink-0 items-center rounded-full bg-zinc-100 px-3 py-1.5 text-sm font-medium text-zinc-900 transition-colors hover:bg-zinc-200 dark:bg-zinc-800 dark:text-zinc-100 dark:hover:bg-zinc-700"
 | 
			
		||||
                class="inline-flex shrink-0 items-center rounded-full bg-zinc-100 px-3 py-1.5 text-sm font-medium text-zinc-900 transition-colors hover:bg-zinc-200 dark:bg-zinc-800 dark:text-zinc-100 dark:hover:bg-zinc-700"
 | 
			
		||||
              >
 | 
			
		||||
                #{relatedTag}
 | 
			
		||||
              </a>
 | 
			
		||||
@@ -167,7 +167,7 @@ const relatedTags = [
 | 
			
		||||
 | 
			
		||||
              <div class="flex flex-col gap-5 sm:flex-row sm:gap-6">
 | 
			
		||||
                {post.image && (
 | 
			
		||||
                  <div class="mx-auto h-40 w-full flex-shrink-0 overflow-hidden rounded-xl shadow-sm transition-all duration-300 group-hover:shadow-md sm:mx-0 sm:w-56">
 | 
			
		||||
                  <div class="mx-auto h-40 w-full shrink-0 overflow-hidden rounded-xl shadow-xs transition-all duration-300 group-hover:shadow-md sm:mx-0 sm:w-56">
 | 
			
		||||
                    <img
 | 
			
		||||
                      src={`${process.env.DIRECTUS_URL ?? 'https://directus.alexlebens.dev'}/assets/${post.image}?width=500`}
 | 
			
		||||
                      alt={post.image_alt}
 | 
			
		||||
 
 | 
			
		||||
@@ -52,7 +52,7 @@ const sortedTags = [...tagObjects].sort((a, b) => b.count - a.count);
 | 
			
		||||
        <span class="relative inline-block">
 | 
			
		||||
          <span class="relative inline-block">
 | 
			
		||||
            <span
 | 
			
		||||
              class="theme-transition-bg absolute -inset-1 rounded-lg bg-gradient-to-r from-zinc-200/50 to-zinc-300/50 blur-sm dark:from-zinc-800/50 dark:to-zinc-700/50"
 | 
			
		||||
              class="theme-transition-bg absolute -inset-1 rounded-lg bg-gradient-to-r from-zinc-200/50 to-zinc-300/50 blur-xs dark:from-zinc-800/50 dark:to-zinc-700/50"
 | 
			
		||||
            ></span>
 | 
			
		||||
            <span class="relative">Explore</span>
 | 
			
		||||
          </span>
 | 
			
		||||
@@ -101,7 +101,7 @@ const sortedTags = [...tagObjects].sort((a, b) => b.count - a.count);
 | 
			
		||||
        </div>
 | 
			
		||||
      ) : (
 | 
			
		||||
        <div class="flex w-full justify-center">
 | 
			
		||||
          <div class="tag-cloud hover-3d glass theme-transition-all relative w-full rounded-lg border border-zinc-100 bg-white/50 p-3 backdrop-blur-sm sm:rounded-xl sm:p-4 md:rounded-2xl md:p-6 lg:rounded-3xl lg:p-8 dark:border-zinc-800 dark:bg-zinc-900/50">
 | 
			
		||||
          <div class="tag-cloud hover-3d glass theme-transition-all relative w-full rounded-lg border border-zinc-100 bg-white/50 p-3 backdrop-blur-xs sm:rounded-xl sm:p-4 md:rounded-2xl md:p-6 lg:rounded-3xl lg:p-8 dark:border-zinc-800 dark:bg-zinc-900/50">
 | 
			
		||||
            <div class="bg-grid-pattern theme-transition-bg absolute inset-0 opacity-5 dark:opacity-10" />
 | 
			
		||||
            <div class="theme-transition-bg absolute -top-8 -right-8 h-20 w-20 rounded-full bg-gradient-to-br from-zinc-200/30 to-zinc-300/20 blur-xl sm:h-24 sm:w-24 md:h-32 md:w-32 lg:h-40 lg:w-40 dark:from-zinc-700/20 dark:to-zinc-800/10" />
 | 
			
		||||
            <div class="theme-transition-bg absolute -bottom-8 -left-8 h-20 w-20 rounded-full bg-gradient-to-tl from-zinc-200/30 to-zinc-300/20 blur-xl sm:h-24 sm:w-24 md:h-32 md:w-32 lg:h-40 lg:w-40 dark:from-zinc-700/20 dark:to-zinc-800/10" />
 | 
			
		||||
@@ -114,13 +114,13 @@ const sortedTags = [...tagObjects].sort((a, b) => b.count - a.count);
 | 
			
		||||
              {sortedTags.map((tag) => (
 | 
			
		||||
                <a
 | 
			
		||||
                  href={`/topics/${tag.name}`}
 | 
			
		||||
                  class="theme-transition-element theme-ripple group relative min-w-0 flex-grow overflow-hidden rounded-md border border-zinc-200 transition-all duration-300 hover:scale-[1.03] hover:border-zinc-300 hover:shadow-md active:scale-95 sm:rounded-lg sm:hover:shadow-lg md:rounded-xl dark:border-zinc-800 dark:hover:border-zinc-700"
 | 
			
		||||
                  class="theme-transition-element theme-ripple group relative min-w-0 grow overflow-hidden rounded-md border border-zinc-200 transition-all duration-300 hover:scale-[1.03] hover:border-zinc-300 hover:shadow-md active:scale-95 sm:rounded-lg sm:hover:shadow-lg md:rounded-xl dark:border-zinc-800 dark:hover:border-zinc-700"
 | 
			
		||||
                  style={`--tag-hue: ${tag.hue};`}
 | 
			
		||||
                >
 | 
			
		||||
                  <div class="theme-transition-bg absolute inset-0 bg-gradient-to-br from-zinc-50/90 to-zinc-100/90 opacity-100 transition-opacity group-hover:opacity-95 dark:from-zinc-800/90 dark:to-zinc-900/90" />
 | 
			
		||||
 | 
			
		||||
                  <div class="xxxs:px-2 xxs:px-2 xs:px-2 xxxs:py-2 xxs:py-2 xs:py-2 xxs:gap-2 relative flex w-full items-center gap-1.5 px-1.5 py-1.5 sm:px-3 sm:py-3 md:px-4 md:py-4">
 | 
			
		||||
                    <div class="xxxs:w-6 xxxs:h-6 xxs:w-6 xxs:h-6 xs:w-7 xs:h-7 group-hover:bg-accent/20 dark:group-hover:bg-accent/20 group-hover:text-accent-dark dark:group-hover:text-accent-light theme-transition-all flex h-5 w-5 flex-shrink-0 items-center justify-center rounded-full bg-zinc-100 text-zinc-700 shadow-sm transition-all duration-300 sm:h-8 sm:w-8 md:h-10 md:w-10 dark:bg-zinc-800 dark:text-zinc-300">
 | 
			
		||||
                    <div class="xxxs:w-6 xxxs:h-6 xxs:w-6 xxs:h-6 xs:w-7 xs:h-7 group-hover:bg-accent/20 dark:group-hover:bg-accent/20 group-hover:text-accent-dark dark:group-hover:text-accent-light theme-transition-all flex h-5 w-5 shrink-0 items-center justify-center rounded-full bg-zinc-100 text-zinc-700 shadow-xs transition-all duration-300 sm:h-8 sm:w-8 md:h-10 md:w-10 dark:bg-zinc-800 dark:text-zinc-300">
 | 
			
		||||
                      <span class="xxxs:text-xs xxs:text-xs xs:text-sm text-xs font-semibold sm:text-base md:text-lg">
 | 
			
		||||
                        #
 | 
			
		||||
                      </span>
 | 
			
		||||
@@ -554,8 +554,8 @@ const sortedTags = [...tagObjects].sort((a, b) => b.count - a.count);
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  /* Prevent layout shifts */
 | 
			
		||||
  .flex-grow {
 | 
			
		||||
    flex-grow: 1;
 | 
			
		||||
  .grow {
 | 
			
		||||
    grow: 1;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  .min-w-0 {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user