11import React , { useMemo , useCallback } from 'react'
22import { useSearchParams } from 'react-router-dom'
3- import { Grid , Typography , Box , Skeleton , Button } from '@mui/material'
3+ import { Grid , Typography , Box , Skeleton , Button , Container } from '@mui/material'
44import SearchOffIcon from '@mui/icons-material/SearchOff'
55import AddIcon from '@mui/icons-material/Add'
66import { Layout } from '../components/Layout'
@@ -90,45 +90,45 @@ export function SearchPage(): React.ReactNode {
9090 activeLetter = { selectedLetter }
9191 />
9292
93- < Box sx = { { px : 2 , mb : 2 } } >
94- < Box sx = { { display : 'flex' , justifyContent : 'space-between' , alignItems : 'center' , flexWrap : 'wrap' , gap : 1 } } >
95- < Typography variant = "body2" color = "text.secondary" >
96- { finalFilteredTerms . length } 개의 용어 표시 중
97- </ Typography >
98- < Button
99- variant = "text"
100- size = "small"
101- startIcon = { < AddIcon /> }
102- href = "https://github.com/PyTorchKorea/kr-terms-poc/issues/new?template=new-term.yml"
103- target = "_blank"
104- rel = "noopener noreferrer"
105- >
106- 새 용어 요청
107- </ Button >
93+ < Container maxWidth = "lg" sx = { { px : { xs : 2 , md : 3 } } } >
94+ < Box sx = { { mb : 2 } } >
95+ < Box sx = { { display : 'flex' , justifyContent : 'space-between' , alignItems : 'center' , flexWrap : 'wrap' , gap : 1 } } >
96+ < Typography variant = "body2" color = "text.secondary" >
97+ { finalFilteredTerms . length } 개의 용어 표시 중
98+ </ Typography >
99+ < Button
100+ variant = "text"
101+ size = "small"
102+ startIcon = { < AddIcon /> }
103+ href = "https://github.com/PyTorchKorea/kr-terms-poc/issues/new?template=new-term.yml"
104+ target = "_blank"
105+ rel = "noopener noreferrer"
106+ >
107+ 새 용어 요청
108+ </ Button >
109+ </ Box >
108110 </ Box >
109- </ Box >
110111
111- { finalFilteredTerms . length === 0 ? (
112- < Box sx = { { textAlign : 'center' , py : 8 } } >
113- < SearchOffIcon sx = { { fontSize : 64 , color : 'text.disabled' , mb : 2 } } />
114- < Typography variant = "h6" color = "text.secondary" gutterBottom >
115- 검색 결과가 없습니다
116- </ Typography >
117- < Typography variant = "body2" color = "text.secondary" sx = { { mb : 3 } } >
118- 다른 검색어를 시도하거나, 알파벳 탐색으로 용어를 찾아보세요
119- </ Typography >
120- < Button
121- variant = "contained"
122- startIcon = { < AddIcon /> }
123- href = "https://github.com/PyTorchKorea/kr-terms-poc/issues/new?template=new-term.yml"
124- target = "_blank"
125- rel = "noopener noreferrer"
126- >
127- 찾으시는 용어가 없나요? 새 용어를 요청하세요
128- </ Button >
129- </ Box >
130- ) : (
131- < Box sx = { { px : 2 } } >
112+ { finalFilteredTerms . length === 0 ? (
113+ < Box sx = { { textAlign : 'center' , py : 8 } } >
114+ < SearchOffIcon sx = { { fontSize : 64 , color : 'text.disabled' , mb : 2 } } />
115+ < Typography variant = "h6" color = "text.secondary" gutterBottom >
116+ 검색 결과가 없습니다
117+ </ Typography >
118+ < Typography variant = "body2" color = "text.secondary" sx = { { mb : 3 } } >
119+ 다른 검색어를 시도하거나, 알파벳 탐색으로 용어를 찾아보세요
120+ </ Typography >
121+ < Button
122+ variant = "contained"
123+ startIcon = { < AddIcon /> }
124+ href = "https://github.com/PyTorchKorea/kr-terms-poc/issues/new?template=new-term.yml"
125+ target = "_blank"
126+ rel = "noopener noreferrer"
127+ >
128+ 찾으시는 용어가 없나요? 새 용어를 요청하세요
129+ </ Button >
130+ </ Box >
131+ ) : (
132132 < Grid container spacing = { 3 } >
133133 { finalFilteredTerms . map ( ( term ) => {
134134 const duplicates = statistics . duplicateTranslations . get ( term . meanings [ 0 ] . korean )
@@ -140,8 +140,8 @@ export function SearchPage(): React.ReactNode {
140140 )
141141 } ) }
142142 </ Grid >
143- </ Box >
144- ) }
143+ ) }
144+ </ Container >
145145 </ Layout >
146146 )
147147}
0 commit comments