hero.tsx 3.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. import Link from "next/link";
  2. import { AvatarFlip } from "./avatar-flip";
  3. import { HeroTitle } from "./hero-title";
  4. import { siteConfig } from "@/config/site";
  5. const socials = [
  6. {
  7. label: "GitHub",
  8. href: siteConfig.links.github,
  9. path: "M8 .2a8 8 0 0 0-2.5 15.6c.4 0 .5-.2.5-.4v-1.5c-2.2.5-2.7-1-2.7-1-.4-.9-.9-1.2-.9-1.2-.7-.5.1-.5.1-.5.8.1 1.2.8 1.2.8.7 1.3 1.9.9 2.3.7.1-.5.3-.9.5-1.1-1.8-.2-3.6-.9-3.6-4 0-.9.3-1.6.8-2.1-.1-.2-.4-1 .1-2.1 0 0 .7-.2 2.2.8a7.5 7.5 0 0 1 4 0c1.5-1 2.2-.8 2.2-.8.4 1.1.2 1.9.1 2.1.5.6.8 1.3.8 2.1 0 3.1-1.9 3.8-3.6 4 .3.3.6.8.6 1.5v2.2c0 .2.1.5.6.4A8 8 0 0 0 8 .2Z",
  10. },
  11. {
  12. label: "LinkedIn",
  13. href: siteConfig.links.linkedin,
  14. path: "M13.6 13.6h-2.4V9.9c0-.9 0-2-1.2-2s-1.4.9-1.4 1.9v3.8H6.2V6h2.3v1h.1c.3-.6 1.1-1.2 2.3-1.2 2.4 0 2.8 1.6 2.8 3.6v4.2ZM3.5 4.9a1.4 1.4 0 1 1 0-2.8 1.4 1.4 0 0 1 0 2.8Zm1.2 8.7H2.3V6h2.4v7.6ZM14.8 0H1.2C.5 0 0 .5 0 1.2v13.6c0 .7.5 1.2 1.2 1.2h13.6c.7 0 1.2-.5 1.2-1.2V1.2c0-.7-.5-1.2-1.2-1.2Z",
  15. },
  16. {
  17. label: "Email",
  18. href: siteConfig.links.email,
  19. path: "M1.5 3h13c.8 0 1.5.7 1.5 1.5v7c0 .8-.7 1.5-1.5 1.5h-13C.7 13 0 12.3 0 11.5v-7C0 3.7.7 3 1.5 3Zm.3 1.6L8 8.8l6.2-4.2H1.8Zm12.6 1.5L8.4 10.2a.8.8 0 0 1-.8 0L1.6 6.1v5.3h12.8V6.1Z",
  20. },
  21. ];
  22. export function HeroCard({
  23. avatarUrl,
  24. dogUrl,
  25. }: {
  26. avatarUrl: string;
  27. dogUrl: string;
  28. }) {
  29. return (
  30. <div className="relative flex h-full flex-col p-6 sm:p-7 lg:p-9">
  31. <div className="flex items-center gap-3.5">
  32. <AvatarFlip avatarUrl={avatarUrl} dogUrl={dogUrl} />
  33. <div className="leading-tight">
  34. <p className="text-[15px] font-semibold tracking-[-0.01em]">
  35. Eric Wu
  36. </p>
  37. <p className="mt-0.5 flex items-center gap-1 text-[13px] text-muted">
  38. <svg
  39. aria-hidden
  40. className="size-3"
  41. fill="currentColor"
  42. viewBox="0 0 12 12"
  43. >
  44. <path d="M10.9 1.1a.5.5 0 0 0-.53-.12L1.3 4.5a.5.5 0 0 0 .02.94l3.6 1.1 1.1 3.6a.5.5 0 0 0 .94.02l3.52-9.07a.5.5 0 0 0-.12-.53Z" />
  45. </svg>
  46. Seattle, WA
  47. </p>
  48. </div>
  49. </div>
  50. <div className="my-auto py-6">
  51. <HeroTitle />
  52. <p className="mt-4 max-w-[32em] text-[16px] leading-[1.5] text-pretty text-muted sm:text-[17px] lg:text-[18px]">
  53. An SDE II at AWS building agentic systems and generative UI. UCLA
  54. &amp; Purdue alum. Passionate about crafting AI experiences that make
  55. life easier. Outside work, I&apos;m hiking with my dog Bert and
  56. planning to summit Mount Rainier in 2027!
  57. </p>
  58. </div>
  59. <div>
  60. <nav aria-label="Social links" className="dock flex items-center gap-2">
  61. {socials.map((s) => (
  62. <a
  63. key={s.label}
  64. aria-label={s.label}
  65. className="lg grid size-10 place-items-center rounded-full transition-[scale,translate] duration-300 ease-out"
  66. data-cursor={s.label}
  67. href={s.href}
  68. rel="noopener noreferrer"
  69. target={s.href.startsWith("http") ? "_blank" : undefined}
  70. >
  71. <span aria-hidden className="lg-caustic" />
  72. <svg
  73. aria-hidden
  74. className="size-4"
  75. fill="currentColor"
  76. viewBox="0 0 16 16"
  77. >
  78. <path d={s.path} />
  79. </svg>
  80. </a>
  81. ))}
  82. <Link
  83. className="lg ml-1 inline-flex h-10 items-center gap-2 rounded-full px-4 text-[13px] font-medium transition-[scale] duration-300 hover:scale-[1.04]"
  84. data-cursor="Writing"
  85. href="/blog"
  86. >
  87. <span aria-hidden className="lg-caustic" />
  88. Read my blog
  89. </Link>
  90. </nav>
  91. </div>
  92. </div>
  93. );
  94. }