fix: bookmark position

feat/favorite
Arik Chakma 1 year ago
parent e18117d669
commit e498b4e0e6
  1. 6
      src/components/BestPracticeHeader.astro
  2. 6
      src/components/RoadmapHeader.astro

@ -22,17 +22,15 @@ const isBestPracticeReady = !isUpcoming;
<div class="border-b">
<div class="container relative py-5 sm:py-12">
<div class="mb-3 mt-0 sm:mb-6">
<div class="flex items-center gap-3">
<h1 class="mb-0.5 text-2xl font-bold sm:mb-2 sm:text-4xl">
{title}
</h1>
<MarkFavorite
resourceId={bestPracticeId}
resourceType="best-practice"
className="text-gray-500 !opacity-100 hover:text-gray-600 [&>svg]:stroke-[1] [&>svg]:stroke-gray-500 hover:[&>svg]:stroke-gray-600 [&>svg]:h-4 [&>svg]:w-4"
className="text-gray-500 !opacity-100 hover:text-gray-600 [&>svg]:stroke-[1] [&>svg]:stroke-gray-500 hover:[&>svg]:stroke-gray-600 [&>svg]:h-4 [&>svg]:w-4 ml-2"
client:load
/>
</div>
</h1>
<p class="text-sm text-gray-500 sm:text-lg">{description}</p>
</div>

@ -41,17 +41,15 @@ const isRoadmapReady = !isUpcoming;
<YouTubeAlert />
<div class="mb-3 mt-0 sm:mb-4 sm:mt-4">
<div class="flex items-center gap-3">
<h1 class="mb-0.5 text-2xl font-bold sm:mb-2 sm:text-4xl">
{title}
</h1>
<MarkFavorite
resourceId={roadmapId}
resourceType="roadmap"
className="text-gray-500 !opacity-100 hover:text-gray-600 [&>svg]:stroke-[1] [&>svg]:stroke-gray-500 hover:[&>svg]:stroke-gray-600 [&>svg]:h-4 [&>svg]:w-4"
className="text-gray-500 !opacity-100 hover:text-gray-600 [&>svg]:stroke-[1] [&>svg]:stroke-gray-500 hover:[&>svg]:stroke-gray-600 [&>svg]:h-4 [&>svg]:w-4 ml-2"
client:load
/>
</div>
</h1>
<p class="text-sm text-gray-500 sm:text-lg">{description}</p>
</div>

Loading…
Cancel
Save