Skip to content

Commit

Permalink
fix text size
Browse files Browse the repository at this point in the history
  • Loading branch information
Vincent550102 committed Feb 27, 2024
1 parent 508c578 commit 7dfcc69
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 18 deletions.
2 changes: 1 addition & 1 deletion src/components/Detail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export function useDetail() {
return (
<Dialog open={open} setOpen={setOpen}>
<div className="flex flex-col gap-4 break-all p-6">
<h1 className="font-bold text-[#B1884C]">
<h1 className="font-bold text-[#B1884C] text-2xl">
{activity?.name}
</h1>
{Array.isArray(activity?.description) &&
Expand Down
27 changes: 13 additions & 14 deletions src/components/InfoWindow.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from "react";
import React, { useState } from "react";

interface Props {
title: string;
Expand All @@ -8,20 +8,19 @@ interface Props {

export function InfoWindow({ title, msg, onClose }: Props) {
return (
<>
<div className="fixed left-0 top-0 z-50 flex h-full w-full items-center justify-center">
<div
className="fixed left-0 top-0 h-full w-full bg-black bg-opacity-50"
onClick={onClose}
></div>
<div className="z-50 rounded-lg bg-white p-6 shadow-md">
<div className="mb-4 flex items-center justify-between">
<h2 className="text-lg font-semibold text-gray-800">{title}</h2>
{/* <img src="" alt="" /> */}
</div>
<p className="text-gray-700">{msg}</p>
<div className="fixed left-0 top-0 z-50 flex h-full w-full items-center justify-center">
<div
className="fixed left-0 top-0 h-full w-full bg-black bg-opacity-50"
onClick={onClose}
>
</div>
<div className="z-50 rounded-lg bg-white p-6 shadow-md">
<div className="mb-4 flex items-center justify-between">
<h2 className="text-lg font-semibold text-gray-800">{title}</h2>
{/* <img src="" alt="" /> */}
</div>
<p className="text-gray-700">{msg}</p>
</div>
</>
</div>
);
}
6 changes: 3 additions & 3 deletions src/components/NonTokenModalContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const NonTokenModalContent = () => {
<div>
<Dialog open={isModalOpen} setOpen={setModalOpen}>
<div className="flex flex-col gap-4 break-all p-6">
<p className="mt-0">
<p className="mt-0 font-bold text-1xl">
請檢查 OPass 是否已成功報到,或透過下列方式進入遊戲。
</p>
<div className="flex flex-col">
Expand All @@ -45,7 +45,7 @@ const NonTokenModalContent = () => {
<div className="flex items-center">
<i className="bx bxs-keyboard text-4xl"></i>
<div className="ml-4">
<div className="font-bold">手動輸入票券代碼</div>
<div>手動輸入票券代碼</div>
</div>
</div>
</div>
Expand All @@ -56,7 +56,7 @@ const NonTokenModalContent = () => {
<div className="flex items-center">
<i className="bx bx-qr-scan text-4xl"></i>
<div className="ml-4">
<div className="font-bold">掃描票券 QR Code</div>
<div>掃描票券 QR Code</div>
</div>
</div>
</div>
Expand Down

0 comments on commit 7dfcc69

Please sign in to comment.