Skip to content

Commit

Permalink
Header Completed
Browse files Browse the repository at this point in the history
  • Loading branch information
Hammad19 committed Feb 21, 2024
1 parent 27ad1df commit 95b5aa9
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 8 deletions.
52 changes: 45 additions & 7 deletions components/header/index.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,53 @@
import React from "react";
import Image from "next/image";
import { WalletMultiButton } from "@solana/wallet-adapter-react-ui";
import Footer from "../footer";

const Header = () => {
return (
<div className="flex justify-center items-center w-full">
<Image
src="/assets/images/logo.png"
alt="logo"
width={350}
height={0}
/>
<div
className={`flex flex-row ${
window.location.pathname !== "/" ? "justify-between" : "justify-center"
} items-center w-full`}
>
{window.location.pathname !== "/" && (
<WalletMultiButton
style={{
height: "40px",
borderRadius: "15px",
backgroundColor: "transparent",
color: "#ffffff",
width: "174px",
display: "flex",
justifyContent: "center",
border: "2px solid #8E8B77",
fontSize: "12px",
}}
/>
)}
<Image src="/assets/images/logo.png" alt="logo" width={350} height={0} />
{window.location.pathname !== "/" && (
<div className="flex flex-row gap-3">
<Image
width={30}
height={30}
src="/assets/svgs/github-icon.svg"
alt="github"
/>
<Image
width={30}
height={30}
src="/assets/svgs/discord-icon.svg"
alt="discord"
/>
<Image
width={30}
height={30}
src="/assets/svgs/twitter-icon.svg"
alt="twitter"
/>
</div>
)}
</div>
);
};
Expand Down
6 changes: 5 additions & 1 deletion components/wallet-context-provider/wallet-connect-button.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import { useWallet } from "@solana/wallet-adapter-react";
import { WalletMultiButton } from "@solana/wallet-adapter-react-ui";
import { useRouter } from "next/router";

import Button from "@/components/common/button";

const WalletConnectButton = () => {
const router = useRouter();
const { publicKey } = useWallet();
return (
<div>
Expand Down Expand Up @@ -33,7 +35,9 @@ const WalletConnectButton = () => {
styles="w-96"
btnText="Let's Create an Account"
loading={false}
onClick={() => {}}
onClick={() => {
router.push("/create-profile");
}}
/>
) : (
<WalletMultiButton
Expand Down
7 changes: 7 additions & 0 deletions pages/create-profile.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import React from "react";

const createProfile = () => {
return <div>create-profile</div>;
};

export default createProfile;

0 comments on commit 95b5aa9

Please sign in to comment.