-
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.
commit cf26f4b Author: nasubi916 <[email protected]> Date: Fri Nov 8 00:34:02 2024 +0900 スポンサーログイン commit 9af88a5 Author: nasubi916 <[email protected]> Date: Fri Nov 8 00:08:06 2024 +0900 年齢入力 commit 7bba08c Author: nasubi916 <[email protected]> Date: Thu Nov 7 23:04:23 2024 +0900 仮アカウントログインからgoogleに変更 commit dd23d39 Author: nasubi916 <[email protected]> Date: Tue Nov 5 23:05:48 2024 +0900 💄 ユーザー認証画面にアカウントタイプ選択ボタンを追加
- Loading branch information
1 parent
0475d03
commit 2c2901c
Showing
3 changed files
with
239 additions
and
15 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
import { numberInputAnatomy } from "@ark-ui/react"; | ||
import { sva } from "panda/css"; | ||
|
||
/** | ||
* Ark UI の [Popover コンポーネント](https://ark-ui.com/react/docs/components/popover) の基底スタイル | ||
* | ||
* 書き方 refs: | ||
* - https://panda-css.com/docs/concepts/slot-recipes | ||
* - https://ark-ui.com/react/docs/guides/styling#styling-with-panda-css | ||
* - https://speakerdeck.com/ikumatadokoro/panda-css-to-ark-ui-dehazimeruge-ren-kai-fa?slide=31 | ||
*/ | ||
export const svaNumberInput = sva({ | ||
className: "NumberInput", | ||
slots: numberInputAnatomy.keys(), | ||
base: { | ||
root: { | ||
width: "100%", | ||
margin: "auto", | ||
borderRadius: "md", | ||
padding: "1rem", | ||
border: "1px solid", | ||
borderColor: "wkb-neutral.900", | ||
position: "relative", | ||
}, | ||
label: { | ||
fontSize: "sm", | ||
fontWeight: "bold", | ||
position: "absolute", | ||
top: "-1.5rem", | ||
}, | ||
input: { | ||
color: "wkb-neutral.900", | ||
rounded: "md", | ||
shadow: "md", | ||
width: "100%", | ||
p: "1rem", | ||
textAlign: "left", | ||
}, | ||
incrementTrigger: { | ||
bg: "wkb-neutral.900", | ||
rounded: "md", | ||
shadow: "md", | ||
}, | ||
decrementTrigger: { | ||
bg: "wkb-neutral.900", | ||
rounded: "md", | ||
shadow: "md", | ||
}, | ||
control: { | ||
display: "flex", | ||
flexDirection: "column", | ||
position: "absolute", | ||
right: "0", | ||
top: "0", | ||
bottom: "0", | ||
justifyContent: "space-between", | ||
bg: "wkb-neutral.100", | ||
color: "wkb-neutral.900", | ||
}, | ||
}, | ||
}); |
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 |
---|---|---|
|
@@ -36,9 +36,11 @@ export class User { | |
|
||
static async signIn(): Promise<void> { | ||
match( | ||
await supabase.auth.signInWithPassword({ | ||
email: "[email protected]", | ||
password: "password", | ||
await supabase.auth.signInWithOAuth({ | ||
provider: "google", | ||
options: { | ||
redirectTo: `${document.location.origin}/user/auth`, | ||
}, | ||
}), | ||
).with(S.Error, ({ error }) => { | ||
notifyErrorInToast("User.signIn", error, "サインインに失敗しました"); | ||
|
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