Skip to content

Commit eaaeb3c

Browse files
committed
Add hover effect to meta info pills in case studies
1 parent 6e489f2 commit eaaeb3c

3 files changed

Lines changed: 19 additions & 16 deletions

File tree

‎_TODO.md‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -216,8 +216,6 @@ https://mermaid.js.org/config/directives.html
216216

217217
- There's a pretty long delay when you push the Content Switcher to go from short to deep dive, what's causing it? It should be fast - maybe it's a prefetch issue, prefetch on page load
218218

219-
- Themepicker and search icon are too big in non-squished header. Logo too - the initial presentation should be smaller.
220-
221219
- Search box in header should have blue outline, not highlight
222220

223221
- Contact page Uppy file upload not displaying. Submit button is huge on Contact page.
@@ -239,6 +237,7 @@ https://mermaid.js.org/config/directives.html
239237
- Need to improve the "squish" animation where the header reduces in size on scroll down, and returns to full size on scroll up. Maybe reduce and expand the text and search / themepicker / hamburger menu sizes in place, and then slide them horizontally.
240238

241239
- Moving the scroll bar up quickly with the mouse seems to make the header logic break - the Switcher component and Breadcrumbs are hidden under the header
240+
- Themepicker and search icon are too big in non-squished header. Logo too - the initial presentation should be smaller.
242241

243242
## Content Issues
244243

@@ -252,8 +251,6 @@ https://mermaid.js.org/config/directives.html
252251

253252
- Tags should break more evenly across two lines when there's a lot of them, instead of forcing the author name and date to break across two lines: platform-engineering-metrics-lead-time-developer-friction/index.mdx
254253

255-
- Need to update Case Studies with lists and tables too
256-
257254
17:15:36 [200] /articles/kubernetes-pod-disruption-budget-autoscaler-node-rotation 414ms
258255
[WebMentions] Failed to fetch mentions for https://www.webstackbuilders.com/articles/kubernetes-pod-disruption-budget-autoscaler-node-rotation. Will retry in 60s. DOMException [TimeoutError]: The operation was aborted due to timeout
259256
at node:internal/deps/undici/undici:15445:13

‎src/components/Layout/Markdown/Lead/index.astro‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@ const modifiedDateText = shouldShowModifiedDate && modifiedDate ? formatShortDat
2626
---
2727

2828
<div class="mt-2 sm:mt-4 pt-2 border-t border-trim">
29-
<div class="flex justify-between">
30-
<div class="flex items-center gap-3">
29+
<div class="flex flex-col gap-3 sm:flex-row sm:flex-wrap sm:items-start sm:justify-between">
30+
<div class="flex shrink-0 items-center gap-3">
3131
{author && <Avatar name={author} lead />}
3232

3333
<div class="flex flex-col justify-center text-sm">
34-
<div class="text-primary">
34+
<div class="whitespace-nowrap text-primary">
3535
{author && (
3636
<a
3737
href="/about"
@@ -58,7 +58,7 @@ const modifiedDateText = shouldShowModifiedDate && modifiedDate ? formatShortDat
5858
</div>
5959
</div>
6060
{tags && tags.length > 0 && (
61-
<div class="mt-1 mr-1 hidden sm:inline-block">
61+
<div class="hidden sm:block sm:basis-full lg:mt-1 lg:mr-1 lg:flex lg:flex-1 lg:justify-end lg:basis-auto lg:min-w-0">
6262
<Tags tags={tags} />
6363
</div>
6464
)}

‎src/pages/case-studies/[slug].astro‎

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,10 @@ const section = 'Case Studies'
6969
<dl class="grid grid-cols-2 sm:grid-cols-4 gap-4 text-base">
7070
{
7171
clientEntry?.data.businessType && (
72-
<div class="bg-page-offset p-4 rounded-lg flex flex-col items-start border border-trim shadow-sm">
73-
<dt class="text-xs font-semibold uppercase tracking-wider opacity-60 mb-2">Client</dt>
72+
<div class="bg-page-offset p-4 rounded-lg flex flex-col items-start border-2 border-dashed border-trim shadow-sm transition-all duration-200 hover:-translate-y-1 hover:border-page-inverse hover:bg-page hover:shadow-md">
73+
<dt class="text-sm font-semibold uppercase tracking-wider opacity-60 mb-2">
74+
Client
75+
</dt>
7476
<dd class="font-bold text-page-inverse leading-tight">
7577
{clientEntry.data.businessType}
7678
</dd>
@@ -79,8 +81,10 @@ const section = 'Case Studies'
7981
}
8082
{
8183
clientEntry?.data.industry && (
82-
<div class="bg-page-offset p-4 rounded-lg flex flex-col items-start border border-trim shadow-sm">
83-
<dt class="text-xs font-semibold uppercase tracking-wider opacity-60 mb-2">Industry</dt>
84+
<div class="bg-page-offset p-4 rounded-lg flex flex-col items-start border-2 border-dashed border-trim shadow-sm transition-all duration-200 hover:-translate-y-1 hover:border-page-inverse hover:bg-page hover:shadow-md">
85+
<dt class="text-sm font-semibold uppercase tracking-wider opacity-60 mb-2">
86+
Industry
87+
</dt>
8488
<dd class="font-bold text-page-inverse leading-tight">
8589
{clientEntry.data.industry}
8690
</dd>
@@ -89,8 +93,8 @@ const section = 'Case Studies'
8993
}
9094
{
9195
caseStudy.data.projectType && (
92-
<div class="bg-page-offset p-4 rounded-lg flex flex-col items-start border border-trim shadow-sm">
93-
<dt class="text-xs font-semibold uppercase tracking-wider opacity-60 mb-2">
96+
<div class="bg-page-offset p-4 rounded-lg flex flex-col items-start border-2 border-dashed border-trim shadow-sm transition-all duration-200 hover:-translate-y-1 hover:border-page-inverse hover:bg-page hover:shadow-md">
97+
<dt class="text-sm font-semibold uppercase tracking-wider opacity-60 mb-2">
9498
Project Type
9599
</dt>
96100
<dd class="font-bold text-page-inverse leading-tight">
@@ -101,8 +105,10 @@ const section = 'Case Studies'
101105
}
102106
{
103107
caseStudy.data.duration && (
104-
<div class="bg-page-offset p-4 rounded-lg flex flex-col items-start border border-trim shadow-sm">
105-
<dt class="text-xs font-semibold uppercase tracking-wider opacity-60 mb-2">Duration</dt>
108+
<div class="bg-page-offset p-4 rounded-lg flex flex-col items-start border-2 border-dashed border-trim shadow-sm transition-all duration-200 hover:-translate-y-1 hover:border-page-inverse hover:bg-page hover:shadow-md">
109+
<dt class="text-sm font-semibold uppercase tracking-wider opacity-60 mb-2">
110+
Duration
111+
</dt>
106112
<dd class="font-bold text-page-inverse leading-tight">
107113
{caseStudy.data.duration}
108114
</dd>

0 commit comments

Comments
 (0)