2022-10-07 19:35:53 +00:00
|
|
|
import type { JSX } from 'solid-js/jsx-runtime'
|
2022-10-31 16:40:55 +00:00
|
|
|
import { For } from 'solid-js'
|
2022-09-09 11:53:35 +00:00
|
|
|
import type { Shout } from '../../graphql/types.gen'
|
|
|
|
import { ArticleCard } from './Card'
|
|
|
|
|
2023-01-24 22:15:29 +00:00
|
|
|
export const Row3 = (props: { articles: Shout[]; header?: JSX.Element; nodate?: boolean }) => {
|
2022-09-09 11:53:35 +00:00
|
|
|
return (
|
|
|
|
<div class="floor">
|
2022-11-20 21:23:12 +00:00
|
|
|
<div class="wide-container">
|
|
|
|
<div class="row">
|
|
|
|
<div class="floor-header">{props.header}</div>
|
|
|
|
<For each={props.articles}>
|
|
|
|
{(a) => (
|
2023-03-10 17:42:48 +00:00
|
|
|
<div class="col-md-8">
|
2023-01-24 22:15:29 +00:00
|
|
|
<ArticleCard article={a} settings={{ nodate: props.nodate }} />
|
2022-11-20 21:23:12 +00:00
|
|
|
</div>
|
|
|
|
)}
|
|
|
|
</For>
|
|
|
|
</div>
|
2022-09-09 11:53:35 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
)
|
|
|
|
}
|