Skip to content

Commit

Permalink
chore: general cleanup and link resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
nachatz committed Dec 31, 2023
1 parent d5ecdf7 commit d09e657
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 54 deletions.
9 changes: 7 additions & 2 deletions client/src/components/Content/Home/Content.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import { Banner } from "~/components";
import { useEffect, useState, useRef } from "react";
import Link from "next/link";

export default function Content() {
const videoRef = useRef<HTMLVideoElement | null>(null);
const contentRef = useRef<HTMLDivElement | null>(null);
Expand Down Expand Up @@ -91,9 +93,12 @@ export default function Content() {
technology.
</p>
<div className="mt-8 flex justify-center">
<button className="rounded-md bg-primary-500 px-6 py-2 font-semibold text-white shadow-md hover:bg-indigo-400 focus:outline-none focus:ring-1 focus:ring-indigo-400 focus:ring-offset-1">
<Link
href="/models"
className="rounded-md bg-primary-500 px-6 py-2 font-semibold text-white shadow-md hover:bg-indigo-400 focus:outline-none focus:ring-1 focus:ring-indigo-400 focus:ring-offset-1"
>
Try it now (it&apos;s free!)
</button>
</Link>
</div>
</div>
<Banner />
Expand Down
26 changes: 0 additions & 26 deletions client/src/components/ModelsNav/ModelsNav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -157,32 +157,6 @@ export default function ModelsNav({
leaveTo="transform opacity-0 scale-95"
>
<Menu.Items className="absolute bottom-8 z-10 mt-2 w-48 origin-top-right rounded-md bg-white py-1 shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none sm:bottom-[12%] sm:right-[15%]">
<Menu.Item>
{({ active }) => (
<Link
href="/"
className={classNames(
active ? "bg-gray-100" : "",
"block px-4 py-2 text-sm text-gray-700",
)}
>
Your Profile
</Link>
)}
</Menu.Item>
<Menu.Item>
{({ active }) => (
<Link
href="/"
className={classNames(
active ? "bg-gray-100" : "",
"block px-4 py-2 text-sm text-gray-700",
)}
>
Settings
</Link>
)}
</Menu.Item>
<Menu.Item>
{({ active }) => (
<Link
Expand Down
26 changes: 0 additions & 26 deletions client/src/components/Navbar/Profiles/Profiles.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,32 +49,6 @@ export default function Profiles() {
leaveTo="transform opacity-0 scale-95"
>
<Menu.Items className="absolute right-0 z-10 mt-2 w-48 origin-top-right rounded-md bg-white py-1 shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none">
<Menu.Item>
{({ active }) => (
<Link
href="/"
className={classNames(
active ? "bg-gray-100" : "",
"block px-4 py-2 text-sm text-gray-700",
)}
>
Your Profile
</Link>
)}
</Menu.Item>
<Menu.Item>
{({ active }) => (
<Link
href="/"
className={classNames(
active ? "bg-gray-100" : "",
"block px-4 py-2 text-sm text-gray-700",
)}
>
Settings
</Link>
)}
</Menu.Item>
<Menu.Item>
{({ active }) => (
<Link
Expand Down

0 comments on commit d09e657

Please sign in to comment.