File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ const Header = ({ className }: Props) => {
1616
1717 return (
1818 < header className = "sticky top-0 pt-2 md:pt-4 z-30 mx-1 sm:mx-4 md:mx-10 lg:mx-1" >
19- < div className = { clsx ( 'blurred-container w-full mx-auto flex flex-wrap justify-between px-4 sm:px-6 md:px-10 lg:px-4 py-2' , className ) } >
19+ < div className = { clsx ( 'blurred-container w-full mx-auto flex flex-wrap justify-between px-[11px] sm:px-[23px] md:px-[39px] lg:px-3 py-2' , className ) } >
2020 < div className = "flex flex-shrink-0 flex-grow items-center" >
2121 < Link href = "/" className = "hidden sm:block" >
2222 < Image
Original file line number Diff line number Diff line change @@ -2,13 +2,21 @@ import { getLocale } from 'next-intl/server';
22
33import { loadNow } from '@lib/contentful' ;
44import { type LocaleCode } from '@lib/router' ;
5- import BulletList from '../atoms/BulletList' ;
65
76const NowList = async ( ) => {
87 const locale = await getLocale ( ) as LocaleCode ;
98 const activities = await loadNow ( locale ) || [ ] ;
109
11- return < BulletList bullets = { activities } /> ;
10+ return (
11+ < div className = "grid sm:grid-cols-2 gap-4" >
12+ { activities . map ( ( activity , i ) => (
13+ < div key = { i } className = "mb-4" >
14+ < h2 className = "text-h2" > { activity . category } </ h2 >
15+ < p className = "mt-2" > { activity . description } </ p >
16+ </ div >
17+ ) ) }
18+ </ div >
19+ ) ;
1220} ;
1321
1422export default NowList ;
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ type CompanyEntrySkeleton = {
4747type NowEntrySkeleton = {
4848 contentTypeId : 'now' ,
4949 fields : {
50- activities : EntryFieldTypes . Object ,
50+ tasks : EntryFieldTypes . Object ,
5151 } ,
5252} ;
5353
@@ -250,7 +250,7 @@ export const loadNow = async (locale?: LocaleCode) => {
250250 locale : getLocale ( locale ) ,
251251 } )
252252 . then ( getEntryFields < NowData > )
253- . then ( ( now ) => now [ 0 ] . activities )
253+ . then ( ( now ) => now [ 0 ] . tasks )
254254 . catch ( ( ) => [ ] )
255255 ) ) ( ) ;
256256} ;
Original file line number Diff line number Diff line change 11export type NowData = {
2- activities : string [ ] ;
2+ tasks : { category : string ; description : string ; } [ ] ;
33} ;
You can’t perform that action at this time.
0 commit comments