webapp/src/components/Feed/RowShort.tsx

32 lines
817 B
TypeScript
Raw Normal View History

2023-11-28 13:18:25 +00:00
import type { Shout } from '../../graphql/schema/core.gen'
import { For } from 'solid-js'
2023-05-01 18:32:32 +00:00
import { ArticleCard } from './ArticleCard'
2022-09-09 11:53:35 +00:00
export default (props: { articles: Shout[] }) => (
<div class="floor floor--7">
2022-11-20 21:23:12 +00:00
<div class="wide-container">
2023-05-29 20:46:30 +00:00
<div class="short-cards">
2022-11-20 21:23:12 +00:00
<For each={props.articles}>
{(a) => (
2023-05-29 20:46:30 +00:00
<div class="short-card">
2022-11-20 21:23:12 +00:00
<ArticleCard
article={a}
settings={{
additionalClass: 'shout-card--content-top',
isWithCover: true,
isBigTitle: true,
isVertical: true,
2024-02-07 23:12:10 +00:00
nodate: true
2022-11-20 21:23:12 +00:00
}}
desktopCoverSize="S"
2022-11-20 21:23:12 +00:00
/>
</div>
)}
</For>
</div>
2022-09-09 11:53:35 +00:00
</div>
</div>
)