-
Notifications
You must be signed in to change notification settings - Fork 1
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
1 parent
876e171
commit a0e1208
Showing
14 changed files
with
145 additions
and
82 deletions.
There are no files selected for viewing
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
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 |
---|---|---|
@@ -1,4 +1,6 @@ | ||
.root { | ||
display: flex; | ||
gap: var(--flex-gap, 0); | ||
align-items: var(--flex-align, baseline); | ||
justify-content: var(--flex-justify, flex-start); | ||
} |
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
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
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 @@ | ||
export { Stack, type StackProps } from "./Stack"; |
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
Empty file.
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,57 @@ | ||
import Sun2BoldDuotone from "~icons/solar/sun-2-bold-duotone"; | ||
import MoonBoldDuotone from "~icons/solar/moon-bold-duotone"; | ||
import { Avatar, Button, Stack } from "@/components/core"; | ||
import { Flex } from "@/components/core/Flex"; | ||
import { useThemeStore } from "@/stores/theme"; | ||
import { IconButton } from "@/components/core/IconButton"; | ||
|
||
export function Dropdown() { | ||
const darkMode = useThemeStore.getState().darkMode; | ||
|
||
return ( | ||
<Stack | ||
gap={"15px"} | ||
style={{ | ||
borderRadius: "8px", | ||
color: "var(--text-color)", | ||
zIndex: 1000, | ||
}} | ||
> | ||
<Button variant={"outlined"}> | ||
<Flex justify={"center"} align={"center"} gap={"15px"}> | ||
<Avatar src="https://avatars.githubusercontent.com/u/84963630?v=4" /> | ||
<span>elabsoak233</span> | ||
</Flex> | ||
</Button> | ||
<Flex | ||
gap={"20px"} | ||
align={"center"} | ||
justify={"center"} | ||
style={{ | ||
width: "100%", | ||
boxShadow: "0px 4px 20px rgba(0, 0, 0, 0.1)", | ||
borderRadius: "8px", | ||
padding: "2.5px 0px", | ||
}} | ||
> | ||
<IconButton | ||
variant={"ghost"} | ||
onClick={() => { | ||
useThemeStore.getState().setDarkMode(false); | ||
}} | ||
> | ||
<Sun2BoldDuotone /> | ||
</IconButton> | ||
<span>/</span> | ||
<IconButton | ||
variant={"ghost"} | ||
onClick={() => { | ||
useThemeStore.getState().setDarkMode(true); | ||
}} | ||
> | ||
<MoonBoldDuotone /> | ||
</IconButton> | ||
</Flex> | ||
</Stack> | ||
); | ||
} |
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 @@ | ||
export { Dropdown } from "./Dropdown"; |
Oops, something went wrong.