Skip to content

Commit

Permalink
💄 backgroundImage追加
Browse files Browse the repository at this point in the history
  • Loading branch information
ROTO0504 committed Oct 25, 2024
1 parent baf6a05 commit c69ff39
Show file tree
Hide file tree
Showing 4 changed files with 68 additions and 4 deletions.
29 changes: 29 additions & 0 deletions src/assets/svg/background/obi.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
27 changes: 27 additions & 0 deletions src/assets/svg/background/wakaba.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 11 additions & 3 deletions src/routes/_auth/seeds/new/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { createFileRoute } from "@tanstack/react-router";
import { styled as p } from "panda/jsx";
import { useEffect, useState } from "react";
import { useForm } from "react-hook-form";
import wakaba from "@/assets/svg/background/wakaba.svg";
import { Button } from "@/components/cva/Button";
import { svaField } from "@/components/sva/field";
import { fetchAddressFromLocation } from "@/lib/services/address";
Expand Down Expand Up @@ -61,7 +62,7 @@ export const Route = createFileRoute("/_auth/seeds/new/")({
const onSubmit = (data: IFormInput): void => {
let hasError = false;

if ((data.category_id.length === 0) || data.category_id.length === 0) {
if (data.category_id.length === 0 || data.category_id.length === 0) {
toaster.error({
id: "category-error",
title: "エラー",
Expand All @@ -83,7 +84,6 @@ export const Route = createFileRoute("/_auth/seeds/new/")({

if (hasError) return;

console.log("フォームデータ:", data);
reset();
toaster.success({
id: "login-success",
Expand All @@ -93,7 +93,15 @@ export const Route = createFileRoute("/_auth/seeds/new/")({
};

return (
<p.div>
<p.div
style={{
backgroundImage: `url(${wakaba})`,
backgroundSize: "200px",
backgroundPosition: "90% bottom",
backgroundRepeat: "no-repeat",
}}
width="100%"
>
<p.div py={50}>
<p.div p={30}>
<p.h2
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.tsbuildinfo
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"root":["./src/main.tsx","./src/routetree.gen.ts","./src/vite-env.d.ts","./src/assets/icon.ts","./src/assets/logo.ts","./src/components/errorscreen.tsx","./src/components/footer.tsx","./src/components/gridlayout.tsx","./src/components/header.tsx","./src/components/horizontalscrolling.tsx","./src/components/icontext.tsx","./src/components/loading.tsx","./src/components/logo.tsx","./src/components/lottieplayer.tsx","./src/components/notfound.tsx","./src/components/toast.tsx","./src/components/cva/button.tsx","./src/components/cva/expanded.tsx","./src/components/project/card.tsx","./src/components/sva/dialog.ts","./src/components/sva/popover.ts","./src/components/sva/progress.ts","./src/components/sva/tabs.ts","./src/components/sva/toast.ts","./src/hooks/usesession.ts","./src/lib/consts.ts","./src/lib/utils.ts","./src/lib/classes/user.ts","./src/lib/services/address.ts","./src/lib/services/ai.ts","./src/lib/services/env.ts","./src/lib/services/supabase.ts","./src/lib/stores/redirect.ts","./src/lib/utils/patterns.ts","./src/lib/utils/toast.ts","./src/lib/utils/zod.ts","./src/routes/__root.tsx","./src/routes/_auth.tsx","./src/routes/index.tsx","./src/routes/_auth/debug/index.tsx","./src/routes/_auth/overview/index.tsx","./src/routes/_auth/overview/-components/map.tsx","./src/routes/_auth/projects/$uuid.tsx","./src/routes/_auth/projects/index.tsx","./src/routes/_auth/projects/-components/fruit.tsx","./src/routes/_auth/projects/-components/report.tsx","./src/routes/_auth/seeds/$uuid.tsx","./src/routes/_auth/seeds/index.tsx","./src/routes/_auth/seeds/-components/sownseed.tsx","./src/routes/_auth/seeds/new/index.tsx","./src/routes/_auth/sponsors/$uuid.tsx","./src/routes/contact/index.tsx","./src/routes/demo/index.tsx","./src/routes/demo/-components/checkbox.tsx","./src/routes/demo/-components/geminitest.tsx","./src/routes/user/auth.tsx","./src/routes/user/index.tsx","./src/styles/global.ts","./src/types/auth.ts","./src/types/supabase.gen.ts","./src/types/supabase.ts","./src/types/utils.ts","./panda.config.ts"],"version":"5.6.2"}
{"root":["./src/main.tsx","./src/routetree.gen.ts","./src/vite-env.d.ts","./src/assets/data.ts","./src/assets/icon.ts","./src/assets/logo.ts","./src/components/errorscreen.tsx","./src/components/footer.tsx","./src/components/gridlayout.tsx","./src/components/header.tsx","./src/components/horizontalscrolling.tsx","./src/components/icontext.tsx","./src/components/loading.tsx","./src/components/logo.tsx","./src/components/lottieplayer.tsx","./src/components/notfound.tsx","./src/components/toast.tsx","./src/components/cva/button.tsx","./src/components/cva/expanded.tsx","./src/components/project/card.tsx","./src/components/sva/dialog.ts","./src/components/sva/field.ts","./src/components/sva/popover.ts","./src/components/sva/progress.ts","./src/components/sva/select.ts","./src/components/sva/tabs.ts","./src/components/sva/toast.ts","./src/hooks/usesession.ts","./src/lib/consts.ts","./src/lib/utils.ts","./src/lib/classes/user.ts","./src/lib/services/address.ts","./src/lib/services/ai.ts","./src/lib/services/env.ts","./src/lib/services/supabase.ts","./src/lib/stores/redirect.ts","./src/lib/utils/fetch.ts","./src/lib/utils/patterns.ts","./src/lib/utils/toast.ts","./src/lib/utils/zod.ts","./src/routes/__root.tsx","./src/routes/_auth.tsx","./src/routes/index.tsx","./src/routes/_auth/debug/index.tsx","./src/routes/_auth/overview/index.tsx","./src/routes/_auth/overview/-components/map.tsx","./src/routes/_auth/projects/$uuid.tsx","./src/routes/_auth/projects/index.tsx","./src/routes/_auth/projects/-components/fruit.tsx","./src/routes/_auth/projects/-components/report.tsx","./src/routes/_auth/seeds/$uuid.tsx","./src/routes/_auth/seeds/index.tsx","./src/routes/_auth/seeds/-components/sownseed.tsx","./src/routes/_auth/seeds/new/index.tsx","./src/routes/_auth/sponsors/$uuid.tsx","./src/routes/contact/index.tsx","./src/routes/demo/index.tsx","./src/routes/demo/-components/checkbox.tsx","./src/routes/demo/-components/geminitest.tsx","./src/routes/demo/-components/geminitest2.tsx","./src/routes/user/auth.tsx","./src/routes/user/index.tsx","./src/styles/global.ts","./src/types/auth.ts","./src/types/supabase.gen.ts","./src/types/supabase.ts","./src/types/utils.ts","./panda.config.ts"],"version":"5.6.2"}

0 comments on commit c69ff39

Please sign in to comment.