Skip to content

Commit

Permalink
Merge pull request #271 from h8570rg/develop
Browse files Browse the repository at this point in the history
0.1.6
  • Loading branch information
h8570rg authored Jan 3, 2025
2 parents 62e9c25 + 4da2774 commit 69402f2
Show file tree
Hide file tree
Showing 14 changed files with 132 additions and 302 deletions.
2 changes: 1 addition & 1 deletion app/(auth)/(routes)/login/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export const metadata: Metadata = {
export default function LoginPage() {
return (
<>
<h1 className="mx-auto mb-4 w-fit text-large font-bold">ログイン</h1>
<h1 className="mx-auto mb-4 w-fit text-large">ログイン</h1>
<SocialProviders />
<div className="my-4 flex items-center gap-4">
<Divider className="shrink" />
Expand Down
4 changes: 1 addition & 3 deletions app/(auth)/(routes)/register/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@ export default async function RegisterPage() {

return (
<>
<h1 className="mx-auto mb-2 w-fit text-large font-bold">
ユーザー情報登録
</h1>
<h1 className="mx-auto mb-2 w-fit text-large">ユーザー情報登録</h1>
<p className="mb-6 mt-4 text-small text-foreground-light">
ユーザーIDと名前を決めてください。
<br />
Expand Down
2 changes: 1 addition & 1 deletion app/(auth)/(routes)/sign-up/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export const metadata: Metadata = {
export default function SignUpPage() {
return (
<>
<h1 className="mx-auto mb-2 w-fit text-large font-bold">新規登録</h1>
<h1 className="mx-auto mb-2 w-fit text-large">新規登録</h1>
<SignUpForm />
<p className="text-center text-small">
既にアカウントをお持ちの方は
Expand Down
22 changes: 6 additions & 16 deletions app/(lp)/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -126,16 +126,12 @@ export default function LandingPage() {
<div className="container mx-auto space-y-24 px-5 py-16">
{/* 機能紹介 */}
<section id="features" className="">
<h2 className="mb-12 text-center text-large font-semibold">
主な機能
</h2>
<h2 className="mb-12 text-center text-large">主な機能</h2>
<div className="grid grid-cols-1 gap-8 md:grid-cols-2 lg:grid-cols-4">
{features.map((feature, index) => (
<Card key={index} className="px-3">
<CardBody className="py-8">
<h3 className="mb-2 text-center font-semibold">
{feature.title}
</h3>
<h3 className="mb-2 text-center">{feature.title}</h3>
<p>{feature.description}</p>
</CardBody>
</Card>
Expand All @@ -146,18 +142,14 @@ export default function LandingPage() {
{/* 使用方法 */}
<section className="">
<div className="container mx-auto">
<h2 className="mb-12 text-center text-large font-semibold">
使い方
</h2>
<h2 className="mb-12 text-center text-large">使い方</h2>
<div className="grid grid-cols-1 gap-8 md:grid-cols-2 lg:grid-cols-4">
{steps.map((step) => (
<div key={step.number} className="text-center">
<div className="mx-auto mb-4 flex size-16 items-center justify-center rounded-full bg-secondary text-large font-bold text-secondary-foreground">
<div className="mx-auto mb-4 flex size-16 items-center justify-center rounded-full bg-secondary text-large text-secondary-foreground">
{step.number}
</div>
<h3 className="mb-2 text-medium font-semibold">
{step.title}
</h3>
<h3 className="mb-2 text-medium">{step.title}</h3>
<p>{step.description}</p>
</div>
))}
Expand All @@ -168,9 +160,7 @@ export default function LandingPage() {
{/* FAQ */}
<section className="">
<div className="container mx-auto">
<h2 className="mb-12 text-center text-large font-semibold">
よくある質問
</h2>
<h2 className="mb-12 text-center text-large">よくある質問</h2>
<FAQ faqs={faqs} />
</div>
</section>
Expand Down
4 changes: 2 additions & 2 deletions app/(main)/(components)/Appbar/Avatar/Menu/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ export function AppbarAvatarMenu({
className="h-14 gap-2"
textValue={`${name}@${displayId}`}
>
<p className="text-wrap break-all font-semibold">{name}</p>
<p className="text-wrap break-all font-semibold">@{displayId}</p>
<p className="text-wrap break-all">{name}</p>
<p className="text-wrap break-all">@{displayId}</p>
</DropdownItem>
<DropdownItem key="friends">フレンド</DropdownItem>
<DropdownItem key="signOut" color="danger">
Expand Down
6 changes: 3 additions & 3 deletions app/(main)/(routes)/matches/(components)/MatchCard/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export function MatchCard({ match, userId }: { match: Match; userId: string }) {
<NavigationCard matchId={match.id}>
<CardHeader>
<div className="flex w-full items-center justify-between">
<p className="font-bold">{displayDate}</p>
<p>{displayDate}</p>
<AvatarGroup size="sm" isBordered max={4}>
{match.players.map((player) => (
<Avatar key={player.id} />
Expand All @@ -33,7 +33,7 @@ export function MatchCard({ match, userId }: { match: Match; userId: string }) {
<div className="flex items-center">
<div className="flex grow flex-col items-center px-8">
<div className="mb-2 text-tiny text-foreground-light">平均着順</div>
<div className="text-large font-bold">
<div className="text-large">
{data.averageRank?.toFixed(2) ?? "なし"}
</div>
</div>
Expand All @@ -47,7 +47,7 @@ export function MatchCard({ match, userId }: { match: Match; userId: string }) {
{match.rule.playersCount === 4 && <th>4位</th>}
</tr>
</thead>
<tbody className="text-small font-bold">
<tbody className="text-small">
<tr>
<td>{data.rankCounts[0]}</td>
<td>{data.rankCounts[1]}</td>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,25 +5,26 @@ import { GameUpdateModal, useGameUpdateModal } from "../GameUpdateModal";

export function GameRow({
index,
className,
children,
matchId,
gameId,
style,
}: {
index: number;
className?: string;
children: React.ReactNode;
matchId: string;
gameId: string;
style?: React.CSSProperties;
}) {
const gameUpdateModal = useGameUpdateModal();
return (
<>
<Card
isPressable
isHoverable
className={className}
className="bg-transparent shadow-none"
onPress={gameUpdateModal.onOpen}
style={style}
>
{children}
</Card>
Expand Down
Loading

0 comments on commit 69402f2

Please sign in to comment.