Skip to content

Commit

Permalink
feat: login screen design (#52)
Browse files Browse the repository at this point in the history
  • Loading branch information
thisagi authored Nov 5, 2024
2 parents 8e7dbfa + 140b672 commit 5227aca
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
3 changes: 1 addition & 2 deletions app/components/LogginCard.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { Slot } from "@radix-ui/react-slot";
import React, { type ComponentPropsWithRef, forwardRef } from "react";
import { type ComponentPropsWithRef, forwardRef } from "react";
import { cn } from "~/libs/utils";
import { Button } from "./Button";
import { Card } from "./Card";
Expand Down
9 changes: 4 additions & 5 deletions app/routes/_index/SignUp.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import type { ReactNode } from "react";
import { type SubmitHandler, useForm } from "react-hook-form";
import { Button } from "~/components/Button";
import { Input } from "~/components/Input";
import { LogginCard } from "~/components/LogginCard";
import { supabase } from "~/libs/supabase";

interface FormData {
Expand All @@ -27,10 +26,10 @@ export function SignUp(): ReactNode {
return (
<form
onSubmit={handleSubmit(onSubmit)}
className="grid justify-items-center gap-4"
className="grid justify-items-center gap-8"
>
<Input placeholder="名前" {...register("displayName")} />
<Button type="submit">登録</Button>
<img src="../../public/logo.svg" alt="RicoShot" className="w-full" />
<LogginCard className="w-full rotate-2" />
</form>
);
}
1 change: 0 additions & 1 deletion app/routes/_index/route.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ export default function Page() {
style={{ viewTransitionName: "main" }}
>
<main className="mx-auto grid w-full max-w-screen-sm gap-y-4">
<Heading>ホーム</Heading>
{myProfile ? (
<ProfileCard className="rotate-2 sm:rotate-1" profile={myProfile} />
) : (
Expand Down
1 change: 1 addition & 0 deletions public/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 5227aca

Please sign in to comment.