Skip to content

Commit

Permalink
ui3
Browse files Browse the repository at this point in the history
  • Loading branch information
oemerfurkan committed Nov 18, 2023
1 parent 1c42bef commit 221dc6a
Show file tree
Hide file tree
Showing 6 changed files with 52 additions and 19 deletions.
2 changes: 1 addition & 1 deletion packages/nextjs/components/Card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { useRouter } from "next/router"
export default function Card({domain} : {domain: string}) {
const router = useRouter()
return <>
<div className="flex flex-col justify-around items-center w-[400px] h-[400px] border-[7px] rounded-[15px] text-[40px] mx-auto">
<div className="flex flex-col justify-around items-center w-[400px] h-[400px] border-[7px] border-[#3DB9CF] rounded-[15px] text-[40px] mx-auto">
<Image src={logo} alt="NFT Image" width={150}/>
<h1 className="hover:cursor-pointer" onClick={() => router.push("/cards/" + domain)}>{domain}</h1>
</div>
Expand Down
23 changes: 17 additions & 6 deletions packages/nextjs/components/Navbar.tsx
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>
</>
}
);
}
39 changes: 29 additions & 10 deletions packages/nextjs/pages/cards/[domain].tsx
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>
</>
);
}
2 changes: 1 addition & 1 deletion packages/nextjs/pages/chat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export const ChatSupportTest = () => {
account='0xFe6C8E9e25f7bcF374412c5C81B2578aC473C0F7'
supportAddress="0xFe6C8E9e25f7bcF374412c5C81B2578aC473C0F7"
apiKey="tAWEnggQ9Z.UaDBNjrvlJZx3giBTIQDcT8bKQo1O1518uF1Tea7rPwfzXv2ouV5rX9ViwgJUrXm"
env='staging'
env='ENV'
theme={theme}
/>
);
Expand Down
3 changes: 2 additions & 1 deletion packages/nextjs/pages/connect/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ export default function Connect() {
return (
<div style={{ display: 'flex', gap: 12 }}>
<button
className="w-[490px] h-[93px] bg-[#3DB9CF] hover:bg-[#19D9CF] rounded-[25px] text-white text-[35px] flex justify-center items-center"
onClick={openChainModal}
style={{ display: 'flex', alignItems: 'center' }}
type="button"
Expand Down Expand Up @@ -84,7 +85,7 @@ export default function Connect() {
{chain.name}
</button>

<button onClick={openAccountModal} type="button">
<button onClick={openAccountModal} type="button" className="w-[490px] h-[93px] bg-[#3DB9CF] hover:bg-[#19D9CF] rounded-[25px] text-white text-[35px]">
{account.displayName}
{account.displayBalance
? ` (${account.displayBalance})`
Expand Down
2 changes: 2 additions & 0 deletions packages/nextjs/pages/market/index.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import CardContainer from "@/components/CardContainer";
import Navbar from "@/components/Navbar";

export default function Market() {
return (
<>
<Navbar />
<CardContainer />
</>
);
Expand Down

0 comments on commit 221dc6a

Please sign in to comment.