-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1c42bef
commit 221dc6a
Showing
6 changed files
with
52 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,18 @@ | ||
export default function Navbar() { | ||
return <> | ||
<div className="sticky top-0 w-full h-32"> | ||
|
||
import Image from "next/image"; | ||
import logo from "../public/logo.png"; | ||
|
||
export default function Navbar({ | ||
extraComponent, | ||
}: { | ||
extraComponent?: JSX.Element; | ||
}) { | ||
return ( | ||
<div className="sticky top-0 w-full h-32 bg-white mb-4"> | ||
<div className="w-full h-full flex justify-end items-center px-10"> | ||
{extraComponent} | ||
<Image src={logo} alt="logo" width={50} /> | ||
</div> | ||
<div className="h-[1px] w-11/12 mx-auto bg-black"></div> | ||
</div> | ||
</> | ||
} | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,33 @@ | ||
import { useRouter } from "next/router" | ||
import { useRouter } from "next/router"; | ||
import Navbar from "@/components/Navbar"; | ||
import Card from "@/components/Card"; | ||
|
||
export default function CardPage() { | ||
|
||
const router = useRouter(); | ||
const { domain } = router.query; | ||
return(<> | ||
<div> | ||
const router = useRouter(); | ||
const { domain } = router.query; | ||
return ( | ||
<> | ||
<div className="h-screen w-full"> | ||
<Navbar /> | ||
{domain} | ||
</div> | ||
</>) | ||
} | ||
<div className="w-full h-screen flex justify-center items-center"> | ||
<div className="flex w-full gap-12 items-center justify-center"> | ||
<div> | ||
<Card domain={domain as string} /> | ||
</div> | ||
<div className="flex flex-col w-1/2"> | ||
<p className="border-b-2 border-black text-[45px]"> | ||
OWNER: | ||
</p> | ||
<p className="border-b-2 border-black text-[45px]"> | ||
EXPIRE TIME: | ||
</p> | ||
<p className="border-b-2 border-black text-[45px]"> | ||
PRICE: | ||
</p> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters