Skip to content

Commit

Permalink
Header Buttons done
Browse files Browse the repository at this point in the history
  • Loading branch information
Gurkaran-Singh authored and Gurkaran-Singh committed Jan 6, 2022
1 parent 58c0d2d commit ce1425c
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/components/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import Back from "../images/Back.svg";
import Settings from "../images/Settings.svg";
import Notification from "../images/Notification.svg";
import logo from "../images/logo.svg";

import { UserName } from "../components";
const Header = () => {
return (
<div className="w-container flex border-b bg-whiteSmoke border-grey-dark h-70 justify-center">
Expand All @@ -26,7 +26,7 @@ const Header = () => {
alt="text"
/>

<p className="w-175 my-auto"> username</p>
<UserName />
<input
onClick={() => {
//Open Notifications
Expand Down
30 changes: 29 additions & 1 deletion src/components/UserName.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,31 @@
const UserName = () => {};
import Down from "../images/Down.svg";
import Logo from "../images/Logo.svg";
const UserName = () => {
return (
<div className="bg-white px-8 w-175 h-45 my-auto rounded-3xl flex justify-between">
<input
onClick={() => {
//Show Accounts
}}
type="image"
className="h-30 my-auto my-auto cursor-pointer"
src={Logo}
alt="text"
/>
<p className="text-tiny text-center py-14 ml-8 justify-center">
{"JOhndow.near"}
</p>
<input
onClick={() => {
//Show Accounts
}}
type="image"
className="h-10 my-auto mt-20 mx-14 cursor-pointer"
src={Down}
alt="text"
/>
</div>
);
};

export default UserName;
1 change: 1 addition & 0 deletions src/components/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
export { default as CustomInput } from "./CustomInput";
export { default as Header } from "./Header";
export { default as UserName } from "./UserName";
3 changes: 3 additions & 0 deletions src/images/Down.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit ce1425c

Please sign in to comment.