Skip to content

Commit

Permalink
/cashier-mini 背景をグラデーションに
Browse files Browse the repository at this point in the history
  • Loading branch information
toririm committed Nov 2, 2024
1 parent c57211b commit 1a39943
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 17 deletions.
2 changes: 2 additions & 0 deletions pos/app/assets/cafeore.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
43 changes: 26 additions & 17 deletions pos/app/routes/cashier-mini.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import {
import { documentSub } from "common/firebase-utils/subscription";
import { useEffect, useMemo, useRef, useState } from "react";
import useSWRSubscription from "swr/subscription";
import logoSVG from "~/assets/cafeore.svg";
import logoMotion from "~/assets/cafeore_logo_motion.webm";
import { useOrderStat } from "~/components/functional/useOrderStat";
import { cn } from "~/lib/utils";
Expand Down Expand Up @@ -90,23 +91,31 @@ export default function CasherMini() {
</h1>
</div>
</div>
<div className="wrap flex h-full flex-col bg-theme px-[50px] pt-[40px]">
<p className="pb-[50px] font-serif text-5xl text-white">
No. <span className="text-6xl">{orderId}</span>
</p>
<div className="grid grid-cols-2 items-center justify-items-center p-[20px]">
<div>
<p className="font-serif text-4xl text-white">
商品点数: {order?.items.length ?? 0}
</p>
</div>
<div>
<p className="font-serif text-4xl text-white">
合計: {order?.billingAmount ?? 0}
</p>
<p className="font-serif text-4xl text-white">
お釣り: {order?.getCharge()}
</p>
<div
className={cn(
"absolute top-0 left-0 z-0 h-screen w-screen",
"bg-gradient-to-br from-[#A877D9] via-[#E665C5] to-[#E67651]",
)}
>
<img src={logoSVG} alt="" className="absolute h-screen w-screen p-28" />
<div className="wrap flex flex-col px-[50px] pt-[40px]">
<p className="pb-[50px] font-serif text-5xl text-white">
No. <span className="text-6xl">{orderId}</span>
</p>
<div className="grid grid-cols-2 items-center justify-items-center p-[20px]">
<div>
<p className="font-serif text-4xl text-white">
商品点数: {order?.items.length ?? 0}
</p>
</div>
<div>
<p className="font-serif text-4xl text-white">
合計: {order?.billingAmount ?? 0}
</p>
<p className="font-serif text-4xl text-white">
お釣り: {order?.getCharge()}
</p>
</div>
</div>
</div>
</div>
Expand Down

0 comments on commit 1a39943

Please sign in to comment.