Skip to content

Commit

Permalink
オーバーレイと画像変更
Browse files Browse the repository at this point in the history
  • Loading branch information
nasubi-dev committed Nov 9, 2024
1 parent fa181ba commit d98b0a4
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 7 deletions.
Binary file modified src/assets/img/hana.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/assets/img/tsubomi.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/assets/img/wakaba.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 6 additions & 4 deletions src/components/sva/drawer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,16 @@ export const svaDrawer = sva({
) as Array<Lowercase<keyof typeof Drawer>>,
base: {
overlay: {
backgroundColor: "wkb-neutral.900/20",
color: "wkb.primary",
bg: "wkb.primary",
position: "fixed",
inset: "0",
zIndex: "modal",
zIndex: "1000",
bottom: 0,
w: "full",
h: "full",
},
content: {
bg: "wkb.bg-overlay",
border: "1px solid",
rounded: "xl",
zIndex: "1000",
position: "fixed",
Expand Down
3 changes: 2 additions & 1 deletion src/routes/overview/-components/HalfModal.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { useState, useEffect, type ReactElement, useRef } from "react";
import { Drawer, Overlay } from "vaul";
import { Drawer } from "vaul";
import { svaDrawer } from "@/components/sva/drawer";

export function HalfModal({
Expand Down Expand Up @@ -45,6 +45,7 @@ export function HalfModal({
snapPoints={direction === "right" ? ["768px"] : ["768px", "0.9"]}
>
<Drawer.Portal>
<Drawer.Overlay className={cls.overlay} />
<Drawer.Content className={cls.content}>{children}</Drawer.Content>
</Drawer.Portal>
</Drawer.Root>
Expand Down
4 changes: 2 additions & 2 deletions src/routes/overview/-components/Map.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ function MarkerRenderer({
}
position={[
(referenced.sponsorData?.data.location.coordinates[1] ?? 0) +
Math.random() * 0.01,
Math.random() * 0.1,
(referenced.sponsorData?.data.location.coordinates[0] ?? 0) +
Math.random() * 0.01,
Math.random() * 0.1,
]}
>
<Popup closeButton={false}>
Expand Down

0 comments on commit d98b0a4

Please sign in to comment.