Skip to content

Commit

Permalink
added noise
Browse files Browse the repository at this point in the history
  • Loading branch information
gnehs committed Mar 7, 2024
1 parent 7b6172e commit 7af3eb0
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 5 deletions.
7 changes: 7 additions & 0 deletions public/noise.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/app/(game)/puzzle/Coupon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export function Coupon({
</div>
{taken && <Taken />}
</div>
<div className="flex items-center gap-2 rounded-xl bg-black/5 p-3 text-sm text-gray-600">
<div className="bg-noise flex items-center gap-2 rounded-xl bg-black/5 p-3 text-sm text-gray-600">
<Info size={20} className="shrink-0" />
<div>
每人僅限兌換乙次抽獎券,至服務台兌換後即不得再繼續累積拼圖和更多抽獎券。
Expand Down
2 changes: 1 addition & 1 deletion src/components/Dialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export default function Dialog({
return (
<Drawer.Root open={isopen} onOpenChange={setOpen}>
<Drawer.Portal>
<Drawer.Overlay className="fixed inset-0 z-50 bg-black/40 backdrop-blur" />
<Drawer.Overlay className="bg-noise fixed inset-0 z-50 bg-black/40 backdrop-blur" />
<Drawer.Content className="fixed bottom-0 left-0 right-0 z-50 mt-24 flex h-max max-h-[90vh] flex-col rounded-t-[10px] bg-[#F8F3E8]">
<div className="m-auto mt-3 h-1.5 w-20 rounded-full bg-black/20" />
<div className="max-h-[80vh] overflow-y-auto">{children}</div>
Expand Down
7 changes: 4 additions & 3 deletions tailwind.config.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import type { Config } from "tailwindcss";

const config: Config = {
content: [
"./src/**/*.{js,ts,jsx,tsx,mdx}",
],
content: ["./src/**/*.{js,ts,jsx,tsx,mdx}"],
theme: {
extend: {
colors: {
Expand All @@ -23,6 +21,9 @@ const config: Config = {
sans: ["Lato", "Noto Sans TC", "sans-serif"],
rubik: ["Rubik", "Noto Sans TC", "sans-serif"],
},
backgroundImage: {
noise: `url(/noise.svg)`,
},
},
},
plugins: [],
Expand Down

0 comments on commit 7af3eb0

Please sign in to comment.