Skip to content

Commit ccd1599

Browse files
committed
feat: Add "Apps" dropdown with "Cornac" link
1 parent 154d637 commit ccd1599

File tree

1 file changed

+30
-8
lines changed

1 file changed

+30
-8
lines changed

src/components/Navigation.tsx

Lines changed: 30 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -67,14 +67,24 @@ export default function Navigation() {
6767
>
6868
Papers
6969
</Link>
70-
{/* <div className="group relative">
71-
<button className="text-gray-700 hover:text-gray-900">
72-
Projects
73-
</button>
74-
</div>
75-
<div className="group relative">
76-
<button className="text-gray-700 hover:text-gray-900">Apps</button>
77-
</div> */}
70+
<div className="group relative">
71+
<button className="flex items-center gap-1 text-gray-700 hover:text-gray-900">
72+
Apps
73+
<svg className="h-4 w-4" fill="none" viewBox="0 0 24 24" stroke="currentColor">
74+
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M19 9l-7 7-7-7" />
75+
</svg>
76+
</button>
77+
<div className="invisible group-hover:visible absolute left-0 top-full mt-1 w-40 rounded-lg bg-white shadow-lg ring-1 ring-black/5">
78+
<a
79+
href="https://cornac.preferred.ai"
80+
target="_blank"
81+
rel="noopener noreferrer"
82+
className="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-50 rounded-lg"
83+
>
84+
Cornac
85+
</a>
86+
</div>
87+
</div>
7888
<Link
7989
href="/join"
8090
className={
@@ -175,6 +185,18 @@ export default function Navigation() {
175185
>
176186
Papers
177187
</Link>
188+
<div>
189+
<div className="px-4 py-2 text-xs font-semibold text-gray-400 uppercase tracking-wider">Apps</div>
190+
<a
191+
href="https://cornac.preferred.ai"
192+
target="_blank"
193+
rel="noopener noreferrer"
194+
onClick={closeMobileMenu}
195+
className="block px-4 py-2 text-gray-700 hover:text-gray-900"
196+
>
197+
Cornac
198+
</a>
199+
</div>
178200
<Link
179201
href="/join"
180202
onClick={closeMobileMenu}

0 commit comments

Comments
 (0)