-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
4 changed files
with
54 additions
and
13 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -0,0 +1,49 @@ | ||
/* | ||
* Created on Sun Jun 02 2024 | ||
* | ||
* Copyright (c) 2024 Your Company | ||
*/ | ||
|
||
import styled from "@emotion/styled"; | ||
import Image from "next/image"; | ||
|
||
import { Column, Row } from "@/components/Layouts"; | ||
import { useAuth } from "@/hooks"; | ||
import { Button } from "@/components/Design"; | ||
|
||
import woni_happy from "@/assets/woni/woni_happy.png"; | ||
|
||
export default function LoggedIn() { | ||
const { logout } = useAuth(); | ||
|
||
return ( | ||
<Wrapper gap={12}> | ||
<Column gap={6}> | ||
<Button.Text | ||
typoSize="Head12" | ||
typoColor="neutral_50" | ||
hoverTypoColor="neutral_70" | ||
> | ||
내 정보 | ||
</Button.Text> | ||
<Button.Text | ||
typoSize="Head12" | ||
typoColor="neutral_50" | ||
onClick={logout} | ||
hoverTypoColor="neutral_70" | ||
> | ||
로그아웃 | ||
</Button.Text> | ||
</Column> | ||
<div css={{ position: "relative", minWidth: "32px", minHeight: "32px" }}> | ||
<Image src={woni_happy} alt="woni_happy" fill quality={30} /> | ||
</div> | ||
</Wrapper> | ||
); | ||
} | ||
|
||
const Wrapper = styled(Row.li)` | ||
border-radius: 20px; | ||
border: 2px solid ${({ theme }) => theme.color.primary_60}; | ||
padding: 9px 14px; | ||
`; |
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 |
---|---|---|
|
@@ -5,3 +5,4 @@ | |
*/ | ||
|
||
export { default as LoginButton } from "./LoginButton"; | ||
export { default as LoggedIn } from "./LoggedIn"; |