-
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
Showing
34 changed files
with
1,646 additions
and
631 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
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 was deleted.
Oops, something went wrong.
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,18 @@ | ||
import { Flex } from "@radix-ui/themes"; | ||
import Login from "./components/Login"; | ||
import Overview from "./components/Overview"; | ||
import { useEnable } from "./contexts/Enable"; | ||
|
||
const Zroker = () => { | ||
const { enable } = useEnable(); | ||
|
||
return ( | ||
<Flex | ||
gap="4" | ||
className="h-dvh p-4" | ||
> | ||
{enable ? <Overview /> : <Login />} | ||
</Flex> | ||
); | ||
}; | ||
export default Zroker; |
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
2 changes: 1 addition & 1 deletion
2
frontend/src/views/invite.tsx → frontend/src/components/Invite.tsx
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,38 @@ | ||
import Invite from "./Invite"; | ||
import Enable from "./Enable"; | ||
import { Box, Card, Flex, Tabs } from "@radix-ui/themes"; | ||
|
||
const Login = () => { | ||
return ( | ||
<Card className="w-full"> | ||
<Flex | ||
gap="6" | ||
align="center" | ||
justify="center" | ||
direction="column" | ||
className="h-full w-full mx-auto" | ||
> | ||
<Tabs.Root | ||
defaultValue="invite" | ||
className="w-[480px] md:w-[600px]" | ||
> | ||
<Tabs.List> | ||
<Tabs.Trigger value="invite">Invite</Tabs.Trigger> | ||
<Tabs.Trigger value="enable">Enable</Tabs.Trigger> | ||
</Tabs.List> | ||
<Box pt="3"> | ||
<Tabs.Content value="invite"> | ||
<Invite /> | ||
</Tabs.Content> | ||
|
||
<Tabs.Content value="enable"> | ||
<Enable /> | ||
</Tabs.Content> | ||
</Box> | ||
</Tabs.Root> | ||
</Flex> | ||
</Card> | ||
); | ||
}; | ||
|
||
export default Login; |
Oops, something went wrong.