Skip to content

Commit 89a706d

Browse files
author
Manuel Schächinger
committed
Merge remote-tracking branch 'origin/develop'
2 parents ab23b8e + e74f209 commit 89a706d

4 files changed

Lines changed: 14 additions & 6 deletions

File tree

app/components/organisms/Header.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

app/components/organisms/NowList.tsx

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,21 @@ import { getLocale } from 'next-intl/server';
22

33
import { loadNow } from '@lib/contentful';
44
import { type LocaleCode } from '@lib/router';
5-
import BulletList from '../atoms/BulletList';
65

76
const 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

1422
export default NowList;

app/lib/contentful.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ type CompanyEntrySkeleton = {
4747
type 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
};

app/models/now.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
export type NowData = {
2-
activities: string[];
2+
tasks: { category: string; description: string; }[];
33
};

0 commit comments

Comments
 (0)