Skip to content

Commit

Permalink
updated feature tag
Browse files Browse the repository at this point in the history
  • Loading branch information
pouliens committed Jul 10, 2024
1 parent 236ee49 commit 478e01b
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/CaseStudiesPreview.astro
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const { data, slug } = Astro.props.project;
{
data.featured && (
<span class="absolute top-0 end-0 rounded-se-xl rounded-es-xl text-xs font-medium bg-gray-800 text-white py-1.5 px-3 dark:bg-neutral-900">
featured
Featured
</span>
)
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/LatestCaseStudies.astro
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const latestCaseStudies = (await getCollection("case-studies"))
/>
{caseStudy.data.featured && (
<span class="absolute top-0 end-0 rounded-se-xl rounded-es-xl text-xs font-medium bg-gray-800 text-white py-1.5 px-3 dark:bg-neutral-900">
featured
Featured
</span>
)}
</div>
Expand Down
5 changes: 5 additions & 0 deletions src/components/LatestTools.astro
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ const latestTools = (await getCollection("toolkit"))
src={latestTool.data.img}
alt="Image Description"
/>
{latestTool.data.featured && (
<span class="absolute top-0 end-0 rounded-se-xl rounded-es-xl text-xs font-medium bg-gray-800 text-white py-1.5 px-3 dark:bg-neutral-900">
Featured
</span>
)}
</div>

<div class="grow mt-4 sm:mt-0 sm:ms-6 px-4 sm:px-0">
Expand Down
7 changes: 7 additions & 0 deletions src/components/ToolkitPreview.astro
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,13 @@ const { data, slug } = Astro.props.project;
src={data.img}
alt="Image Description"
/>
{
data.featured && (
<span class="absolute top-0 end-0 rounded-se-xl rounded-es-xl text-xs font-medium bg-gray-800 text-white py-1.5 px-3 dark:bg-neutral-900">
Featured
</span>
)
}
</div>

<div class="grow mt-4 sm:mt-0 sm:ms-6 px-4 sm:px-0">
Expand Down
2 changes: 1 addition & 1 deletion src/content/toolkit/prototyping.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ description: |
tags:
- Prototyping
- User Testing
featured: true
featured: false
category: Design and Prototyping
---

Expand Down

0 comments on commit 478e01b

Please sign in to comment.