From 4f2d6ed3b83ef32b73408c9ebad560446154ca14 Mon Sep 17 00:00:00 2001 From: soecka Date: Tue, 28 Jan 2025 00:31:25 +0800 Subject: [PATCH] [polish] mobile layout --- components/Layout/MainNavigator.tsx | 19 +- components/Member/Card.tsx | 5 +- components/Project/index.tsx | 2 +- pages/_document.tsx | 2 +- pages/index.tsx | 5 +- tailwind.config.ts | 381 ++++++++++++++++++++-------- 6 files changed, 289 insertions(+), 125 deletions(-) diff --git a/components/Layout/MainNavigator.tsx b/components/Layout/MainNavigator.tsx index ea9d09a..bc15aa0 100644 --- a/components/Layout/MainNavigator.tsx +++ b/components/Layout/MainNavigator.tsx @@ -48,16 +48,14 @@ export class MainNavigator extends Component { return ( <> - + + (this.menuExpand = false)} > - +
@@ -121,7 +119,7 @@ export class MainNavigator extends Component { {this.renderDrawer()} brand logo - + idea2app @@ -129,7 +127,12 @@ export class MainNavigator extends Component {
- + diff --git a/components/Member/Card.tsx b/components/Member/Card.tsx index fee4268..4fd9c93 100644 --- a/components/Member/Card.tsx +++ b/components/Member/Card.tsx @@ -21,6 +21,7 @@ export const MemberCard: FC = observer( href={`https://github.com/${String(github)}`} target="_blank" rel="noreferrer" + aria-label={`${String(nickname)}'s GitHub account`} > @@ -37,7 +38,7 @@ export const MemberCard: FC = observer( /> )} - +

{String(nickname)}

{String(position ?? '')}

@@ -51,5 +52,5 @@ export const MemberCard: FC = observer( - ) + ), ); diff --git a/components/Project/index.tsx b/components/Project/index.tsx index 570c1be..8be35d8 100644 --- a/components/Project/index.tsx +++ b/components/Project/index.tsx @@ -9,7 +9,7 @@ export interface ProjectListLayoutProps { } export const ProjectListLayout: FC = ({ className = '', defaultData }) => ( -