Skip to content

Commit f1df4bf

Browse files
committed
Highlight deep learning course link in header
1 parent 55507e2 commit f1df4bf

1 file changed

Lines changed: 19 additions & 12 deletions

File tree

src/components/sections/HeaderCard.tsx

Lines changed: 19 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import Image from "next/image";
22
import Link from "next/link";
33
import { Card, CardContent } from "@/components/ui/card";
4-
import { Github, GraduationCap, Mail, MapPin, Moon, Sun, Book } from "lucide-react";
4+
import { ArrowUpRight, Book, Github, GraduationCap, Mail, MapPin, Moon, Sun } from "lucide-react";
55

66
interface HeaderCardProps {
77
theme: string;
@@ -11,6 +11,8 @@ interface HeaderCardProps {
1111
export function HeaderCard({ theme, onToggleTheme }: HeaderCardProps) {
1212
const iconClassName =
1313
"rounded-sm text-[var(--muted)] transition-colors hover:text-[var(--link)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--focus-ring)] focus-visible:ring-offset-2 focus-visible:ring-offset-[var(--surface-elevated)]";
14+
const courseLinkClassName =
15+
"mb-5 inline-flex items-center gap-2 rounded-full border border-[var(--link)] bg-[var(--surface)] px-4 py-2 text-sm font-semibold text-[var(--link)] transition-colors hover:bg-[var(--link)] hover:text-white focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--focus-ring)] focus-visible:ring-offset-2 focus-visible:ring-offset-[var(--surface-elevated)]";
1416

1517
return (
1618
<Card className="bg-[var(--surface-elevated)]">
@@ -33,7 +35,22 @@ export function HeaderCard({ theme, onToggleTheme }: HeaderCardProps) {
3335
<strong>Principled Mathematics. Rigorous AI. Clinical Reality.</strong> Bridging dynamical systems theory and the artificial pancreas to transform human health.
3436
</p>
3537

36-
<div className="flex items-center justify-center gap-6 pt-2">
38+
<Link
39+
href="https://shakeri-lab.github.io/dl-course-site/"
40+
className={courseLinkClassName}
41+
target="_blank"
42+
rel="noopener noreferrer"
43+
title="Deep Learning Course Website"
44+
>
45+
<Book className="h-4 w-4" />
46+
<span>Deep Learning Course</span>
47+
<span className="rounded-full bg-[var(--link)] px-2 py-0.5 text-[10px] font-bold uppercase tracking-[0.08em] text-white">
48+
Featured
49+
</span>
50+
<ArrowUpRight className="h-3.5 w-3.5" />
51+
</Link>
52+
53+
<div className="flex flex-wrap items-center justify-center gap-6 pt-1">
3754
<Link
3855
href="mailto:hs9hd@virginia.edu"
3956
className={iconClassName}
@@ -52,16 +69,6 @@ export function HeaderCard({ theme, onToggleTheme }: HeaderCardProps) {
5269
<MapPin className="h-5 w-5" />
5370
<span className="sr-only">Location</span>
5471
</Link>
55-
<Link
56-
href="https://shakeri-lab.github.io/dl-course-site/"
57-
className={iconClassName}
58-
target="_blank"
59-
rel="noopener noreferrer"
60-
title="Deep Learning Course Website"
61-
>
62-
<Book className="h-5 w-5" />
63-
<span className="sr-only">Deep Learning Course</span>
64-
</Link>
6572
<Link
6673
href="https://scholar.google.com/citations?user=zFIIhGMAAAAJ&hl=en&oi=ao"
6774
className={iconClassName}

0 commit comments

Comments
 (0)