@@ -140,14 +140,14 @@ const AnnouncementsPage = ({ previewContent }: AnnouncementsPageProps = {}) => {
140140 return (
141141 < div className = 'mt-8' >
142142 < section >
143- < div className = 'grid grid-cols-2 gap-0 ' >
144- < div className = 'bg-white px-8 sm:px-12 py-20 flex items-center' >
145- < div className = 'p-8' >
146- < h2 className = 'font-[Open_Sans] text-[40px] font-bold leading-[100 %] text-gray-800 mb-6' >
143+ < div className = 'grid grid-cols-1 lg:grid-cols- 2 gap-4 ' >
144+ < div className = 'bg-white px-6 sm:px-8 lg:px- 12 py-10 sm:py-16 lg: py-20 flex items-center' >
145+ < div className = 'p-4 sm:p-6 lg:p- 8' >
146+ < h2 className = 'font-[Open_Sans] text-2xl sm:text-3xl lg:text- [40px] font-bold leading-[110 %] text-gray-800 mb-4 sm: mb-6' >
147147 { content [ 'header_title' ] ?. value || 'Announcements' }
148148 </ h2 >
149149 < div
150- className = 'font-[Open_Sans] text-[18px] font-normal leading-[150%] text-gray-800'
150+ className = 'font-[Open_Sans] text-base sm:text-lg font-normal leading-[150%] text-gray-800'
151151 dangerouslySetInnerHTML = { {
152152 __html :
153153 content [ 'header_description' ] ?. value ||
@@ -156,7 +156,7 @@ const AnnouncementsPage = ({ previewContent }: AnnouncementsPageProps = {}) => {
156156 />
157157 </ div >
158158 </ div >
159- < div className = 'h-[400px] bg-slate-200 mr-12 rounded-lg overflow-hidden' >
159+ < div className = 'h-[300px] sm:h-[ 400px] bg-slate-200 lg: mr-12 rounded-lg overflow-hidden' >
160160 { headerImageSrc && (
161161 < S3Image
162162 src = { headerImageSrc }
@@ -168,15 +168,15 @@ const AnnouncementsPage = ({ previewContent }: AnnouncementsPageProps = {}) => {
168168 </ div >
169169 </ section >
170170 < section className = 'mt-8' >
171- < div className = 'bg-white px-20 py-4' >
172- < p className = 'font-[Open_Sans] text-[18px] font-bold text-gray-800 mb-4' >
171+ < div className = 'bg-white px-4 sm:px-8 lg:px- 20 py-4' >
172+ < p className = 'font-[Open_Sans] text-base sm:text-lg font-bold text-gray-800 mb-4' >
173173 { filterAnnouncements . length } { ' ' }
174174 { filterAnnouncements . length === 1 ? 'Announcement' : 'Announcements' }
175175 </ p >
176- < div className = 'flex items-center justify-between' >
177- < div className = 'flex gap-2 items-center' >
176+ < div className = 'flex flex-col sm:flex-row items-start sm:items- center justify-between gap-4 ' >
177+ < div className = 'flex gap-2 items-center overflow-x-auto w-full sm:w-auto ' >
178178 < button
179- className = { `px-8 py-3 rounded-lg shadow-sm border border-gray-200 transition-colors whitespace-nowrap ${
179+ className = { `px-4 sm:px-6 lg:px- 8 py-2 sm:py- 3 rounded-lg shadow-sm border border-gray-200 transition-colors whitespace-nowrap text-sm sm:text-base ${
180180 timeFilter === null
181181 ? 'bg-[#EBF3FF] text-[#194B90]'
182182 : 'bg-white text-[#3C3C3C] hover:bg-gray-200'
@@ -186,7 +186,7 @@ const AnnouncementsPage = ({ previewContent }: AnnouncementsPageProps = {}) => {
186186 All
187187 </ button >
188188 < button
189- className = { `px-8 py-3 rounded-lg shadow-sm border border-gray-200 transition-colors whitespace-nowrap ${
189+ className = { `px-4 sm:px-6 lg:px- 8 py-2 sm:py- 3 rounded-lg shadow-sm border border-gray-200 transition-colors whitespace-nowrap text-sm sm:text-base ${
190190 timeFilter === '24h'
191191 ? 'bg-[#EBF3FF] text-[#194B90]'
192192 : 'bg-white text-[#3C3C3C] hover:bg-gray-200'
@@ -196,7 +196,7 @@ const AnnouncementsPage = ({ previewContent }: AnnouncementsPageProps = {}) => {
196196 Last Day
197197 </ button >
198198 < button
199- className = { `px-8 py-3 rounded-lg shadow-sm border border-gray-200 transition-colors whitespace-nowrap ${
199+ className = { `px-4 sm:px-6 lg:px- 8 py-2 sm:py- 3 rounded-lg shadow-sm border border-gray-200 transition-colors whitespace-nowrap text-sm sm:text-base ${
200200 timeFilter === 'week'
201201 ? 'bg-[#EBF3FF] text-[#194B90]'
202202 : 'bg-white text-[#3C3C3C] hover:bg-gray-200'
@@ -206,7 +206,7 @@ const AnnouncementsPage = ({ previewContent }: AnnouncementsPageProps = {}) => {
206206 Last Week
207207 </ button >
208208 < button
209- className = { `px-8 py-3 rounded-lg shadow-sm border border-gray-200 transition-colors whitespace-nowrap ${
209+ className = { `px-4 sm:px-6 lg:px- 8 py-2 sm:py- 3 rounded-lg shadow-sm border border-gray-200 transition-colors whitespace-nowrap text-sm sm:text-base ${
210210 timeFilter === 'month'
211211 ? 'bg-[#EBF3FF] text-[#194B90]'
212212 : 'bg-white text-[#3C3C3C] hover:bg-gray-200'
@@ -216,7 +216,7 @@ const AnnouncementsPage = ({ previewContent }: AnnouncementsPageProps = {}) => {
216216 Last Month
217217 </ button >
218218 < button
219- className = { `px-8 py-3 rounded-lg shadow-sm border border-gray-200 transition-colors whitespace-nowrap ${
219+ className = { `px-4 sm:px-6 lg:px- 8 py-2 sm:py- 3 rounded-lg shadow-sm border border-gray-200 transition-colors whitespace-nowrap text-sm sm:text-base ${
220220 timeFilter === 'year'
221221 ? 'bg-[#EBF3FF] text-[#194B90]'
222222 : 'bg-white text-[#3C3C3C] hover:bg-gray-200'
0 commit comments