-
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.
Showing
14 changed files
with
1,576 additions
and
13,733 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import styles from "./style.module.css"; | ||
|
||
export default function App(): JSX.Element { | ||
return <div className={styles.top}>aaa</div>; | ||
} |
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,5 @@ | ||
.top { | ||
background-image: url(/background.jpg); | ||
background-position: center bottom; | ||
background-size: cover; | ||
} |
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,24 @@ | ||
import { useClerk } from "@clerk/nextjs"; | ||
import dynamic from "next/dynamic"; | ||
import { ComponentProps } from "react"; | ||
|
||
const ReactModernDrawer = dynamic(() => import("react-modern-drawer"), { | ||
ssr: false, | ||
}); | ||
|
||
export type DrawerProps = Pick< | ||
ComponentProps<typeof ReactModernDrawer>, | ||
"onClose" | "open" | ||
>; | ||
|
||
export default function Drawer({ onClose, open }: DrawerProps): JSX.Element { | ||
const { signOut } = useClerk(); | ||
|
||
return ( | ||
<ReactModernDrawer direction="right" onClose={onClose} open={open}> | ||
<button onClick={() => signOut({ redirectUrl: "/" })}> | ||
サインアウト | ||
</button> | ||
</ReactModernDrawer> | ||
); | ||
} |
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,3 +1,5 @@ | ||
import App from "./_components/App"; | ||
|
||
export default function Page(): JSX.Element { | ||
return <div>user</div>; | ||
return <App />; | ||
} |
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,13 @@ | ||
"use client"; | ||
import { ReactNode } from "react"; | ||
import useShowWindowSize from "use-show-window-size"; | ||
|
||
export type LayoutProps = { children: ReactNode }; | ||
|
||
export default function Layout({ children }: LayoutProps): JSX.Element { | ||
useShowWindowSize({ | ||
disable: process.env.NODE_ENV === "production", | ||
}); | ||
|
||
return <>{children}</>; | ||
} |
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
Large diffs are not rendered by default.
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 |
---|---|---|
|
@@ -76,8 +76,5 @@ | |
"version": "0.1.0", | ||
"workspaces": [ | ||
"apps/*" | ||
], | ||
"dependencies": { | ||
"@clerk/nextjs": "6.3.1" | ||
} | ||
] | ||
} |