Skip to content

Commit

Permalink
style: header finish
Browse files Browse the repository at this point in the history
  • Loading branch information
chloe1129 committed Jul 19, 2022
1 parent a7c3d22 commit a74b0fa
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
10 changes: 7 additions & 3 deletions frontend/src/component/Header.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ function Header() {
setMouseOn(false);
};


const token = localStorage.getItem("access_token");
console.log(token);

Expand All @@ -78,16 +79,19 @@ function Header() {
// if IsLogin is true

<div>
<Link
<Button>
<Link
href="/login"
onClick={deleteToken}
onMouseEnter={handlePopoverOpen} onMouseLeave={handlePopoverClose}
sx={{ textDecoration: "none", color: "#759F98", fontSize: "small",mr:2, mt:50 }}>
sx={{ textDecoration: "none", color: "#759F98", fontSize: "small",mr:2, mt:4 }}>
Welcom, {token}
</Link>
</Button>

{mouseOn?
<Container
style={{ position: 'absolute', top: 70 }}>
style={{ position: 'absolute', top: 80 }}>
<Box
display="flex" justifyContent="center"
sx={{
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/component/mainpage/SearchBar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const SearchBar= () =>{
backgroundColor : "white",
borderColor:"#759F98",
border : 1,
borderRadius : 10, margin:"auto", mt : 15,width: "58ch" }}>
borderRadius : 10, margin:"auto", mt : 30,width: "58ch" }}>
<Box
onSubmit={handleSubmit}
component="form"
Expand Down

0 comments on commit a74b0fa

Please sign in to comment.