Skip to content

Commit

Permalink
Tweak some Recommendations responsiveness
Browse files Browse the repository at this point in the history
  • Loading branch information
josephdburdick committed Jun 27, 2024
1 parent 9d4a451 commit 433a145
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 21 deletions.
16 changes: 8 additions & 8 deletions src/api/recommendations.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ recommendations:
- name: Praneeth Moka
company: unqork
avatar: ${basePath}/assets/images/avatars/praneeth.webp
title: Staff Engineer at Unqork | Full Stack Development
title: Staff Engineer at Unqork
shortTitle: Staff Engineer
date: 2024-06-25
relationship: Praneeth was senior to Joe but didn't manage Joe directly
relationship: Was senior to Joe but didn't manage Joe directly
body: >
I had the pleasure of working with Joe for over 2 years on various projects. Joe is one of the nicest and hardworking individuals I have ever met. Joe has a very good eye for catching things that can be simplified which often helped our team immensely.
Expand All @@ -21,7 +21,7 @@ recommendations:
title: Director of Engineering at Unqork
shortTitle: Director of Engineering
date: 2024-06-20
relationship: Roy V. managed Joe directly
relationship: Managed Joe directly
body: >
I had the pleasure to manage Joe during my time at Unqork. Joe is someone I consider to be a craftsman. His approach when working with code is to leave the code better than he found it. He has a passion for user interface and for making things right for the users and developers.
Expand All @@ -32,7 +32,7 @@ recommendations:
title: Staff Engineer | Technical Leadership & Mentorship
shortTitle: Staff Engineer
date: 2024-06-03
relationship: Travis was senior to Joe but didn't manage Joe directly
relationship: Was senior to Joe but didn't manage Joe directly
body: >
I had the pleasure of working with Joe at Unqork, and he is a fantastic engineer with a remarkable eye for UI/UX and accessibility. Joe excels at asking insightful questions and raising important considerations, helping teams break down work and fully understand requirements. His deeply analytical mindset enables him to solve business challenges in a holistic and effective manner.
Expand All @@ -45,7 +45,7 @@ recommendations:
title: Engineering Manager + Caregivers ERSG Engagement Co-Chair at Unqork
shortTitle: Engineering Manager
date: 2024-06-03
relationship: Eric was senior to Joe but didn't manage Joe directly
relationship: Was senior to Joe but didn't manage Joe directly
body: >
Joe epitomizes the qualities of what like to call a responsible engineer. It's one thing to be good at writing code (which Joe is) and it's another to go the extra mile.
Expand All @@ -58,7 +58,7 @@ recommendations:
title: Writer | Strategist | Consultant
shortTitle: Writer
date: 2016-07-23
relationship: Nana T. worked with Joe but on different teams
relationship: Worked with Joe but on different teams
body: >
Over the two years that I've known Joe, since meeting at Adoptive, I've had the opportunity to work with and get to know one of the most hardworking, creative, resolute and generous people I've met in my career thus far. Joe's work ethic is impeccable, and he is a genuinely generous person who gives of himself to both his work and his team.
Expand All @@ -69,7 +69,7 @@ recommendations:
title: Bootstrap Entrepreneur | CEO @ GAME UP® Nutrition | President STAUDT agency
shortTitle: CEO, Serial Entrepreneur
date: 2014-03-06
relationship: Matt worked with Joe but they were at different companies
relationship: Worked with Joe but they were at different companies
body: >
Having worked with Joe on multiple projects I am extremely confident in his abilities and work ethic which both exceed what I am accustomed to. Joe is my first call when I have a technical question and he has never ceased to amaze me with his insight and can-do attitude. He is extremely knowledgable and is a problem solver. Joe is a rare find, a pleasure to work with and as a result of his expertise and professionalism is an extremely valuable addition to any team.
- name: Todd Post
Expand All @@ -78,7 +78,7 @@ recommendations:
title: Strategic Communications Executive | Senior Public Affairs Advisor
shortTitle: Communications Executive
date: 2007-01-24
relationship: Todd managed Joe directly
relationship: Managed Joe directly
body: >
Joe's creativity and attention to detail coupled with his great attitude and sense of humor made him a valuable asset to the department, especially when it came to graphic design, web page management, and other technical skills.
---
21 changes: 8 additions & 13 deletions src/app/_content/Recommendations.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ export default function Recommendations() {
index: number,
) => (
<CarouselItem key={`recommendation-${index}`}>
<div className="grid grid-cols-4 items-start gap-4 lg:items-center lg:gap-8">
<div className="grid grid-cols-4 items-start gap-4 lg:gap-8">
<div className="col-start-2 hidden grid-cols-3 xl:grid">
<svg
className="mb-4 hidden h-8 w-8 text-gray-400 dark:text-gray-600 lg:block"
className="hidden h-8 w-8 text-gray-400 dark:text-gray-600 lg:block"
aria-hidden="true"
xmlns="http://www.w3.org/2000/svg"
fill="currentColor"
Expand All @@ -50,7 +50,7 @@ export default function Recommendations() {
</svg>
</div>
<div className="col-span-12 flex flex-col justify-between gap-4 text-pretty xl:col-span-1 xl:col-start-1 xl:h-full xl:min-h-60 xl:pt-1">
<div className="flex w-full flex-col-reverse items-center justify-center gap-4 sm:flex-row lg:items-start xl:justify-start xl:gap-4">
<div className="flex w-full flex-col-reverse items-start justify-center gap-4 sm:flex-row xl:justify-start xl:gap-4">
<div className="shrink-0 overflow-hidden rounded-full">
<Image
width={64}
Expand All @@ -66,7 +66,7 @@ export default function Recommendations() {
<small className="text-xs text-muted-foreground lg:text-sm">
{recommendation.title}
</small>
<div className="text-bold flex items-center gap-1 pt-2 text-xs text-muted-foreground lg:hidden">
<div className="text-bold flex items-start gap-1 pt-2 text-xs text-muted-foreground">
<Icon.badgeInfo className="shrink-0 text-lime-500" size={16} />
{recommendation.relationship}
</div>
Expand All @@ -76,10 +76,6 @@ export default function Recommendations() {
<CarouselNext className={carouselButtonClassName} />
</div>
</div>
<div className="text-bold hidden items-center gap-2 pb-1 text-xs text-muted-foreground lg:flex">
<Icon.badgeInfo className="shrink-0 text-lime-500" />{" "}
{recommendation.relationship}
</div>
</div>
<div className="col-span-12 xl:col-span-3 xl:col-start-2">
<div
Expand All @@ -106,9 +102,8 @@ export default function Recommendations() {
<div
className={cn(
"pointer-events-none shrink-0 overflow-hidden rounded-full shadow-none transition-all",
key !== current && "-z-10 grayscale",
key === current &&
"z-10 shadow-2xl ring-2 ring-primary ring-offset-2",
key !== current && "grayscale",
key === current && "shadow-2xl ring-2 ring-primary ring-offset-2",
)}
>
<Image
Expand All @@ -120,11 +115,11 @@ export default function Recommendations() {
</div>
<div
className={cn(
"absolute left-1/2 hidden -translate-x-1/2 flex-col whitespace-nowrap rounded-lg p-2 text-xs shadow-none transition-all lg:flex",
"absolute left-1/2 hidden -translate-x-1/2 flex-col whitespace-nowrap rounded-lg p-2 text-xs shadow-none transition-all duration-200 lg:flex",
key === current &&
"top-full translate-y-2 bg-primary text-center text-primary-foreground shadow-2xl",
key !== current &&
"top-1/2 -z-20 -translate-y-1/2 rotate-45 bg-secondary text-start blur-sm filter",
"top-1/2 -z-20 -translate-y-1/2 rotate-45 bg-secondary text-start blur-[2px]",
)}
>
<span className="font-bold">{recommendation.name}</span>
Expand Down

0 comments on commit 433a145

Please sign in to comment.