2022-10-07 19:35:53 +00:00
|
|
|
import type { JSX } from 'solid-js/jsx-runtime'
|
2024-07-04 07:51:15 +00:00
|
|
|
import type { Shout } from '~/graphql/schema/core.gen'
|
2023-11-14 15:10:00 +00:00
|
|
|
|
2023-08-12 10:36:21 +00:00
|
|
|
import { For, Show } from 'solid-js'
|
2023-11-14 15:10:00 +00:00
|
|
|
|
2023-05-01 18:32:32 +00:00
|
|
|
import { ArticleCard } from './ArticleCard'
|
2022-09-09 11:53:35 +00:00
|
|
|
|
2023-07-26 20:40:14 +00:00
|
|
|
export const Row3 = (props: {
|
|
|
|
articles: Shout[]
|
|
|
|
header?: JSX.Element
|
|
|
|
nodate?: boolean
|
|
|
|
noAuthorLink?: boolean
|
2023-10-10 19:45:35 +00:00
|
|
|
noauthor?: boolean
|
2023-07-26 20:40:14 +00:00
|
|
|
}) => {
|
2022-09-09 11:53:35 +00:00
|
|
|
return (
|
2023-08-12 10:36:21 +00:00
|
|
|
<Show when={props.articles && props.articles.length > 0}>
|
|
|
|
<div class="floor">
|
|
|
|
<div class="wide-container">
|
|
|
|
<div class="row">
|
2023-11-23 19:02:55 +00:00
|
|
|
<Show when={props.header}>
|
|
|
|
<div class="floor-header">{props.header}</div>
|
|
|
|
</Show>
|
2023-08-12 10:36:21 +00:00
|
|
|
<For each={props.articles}>
|
|
|
|
{(a) => (
|
|
|
|
<div class="col-md-8">
|
|
|
|
<ArticleCard
|
|
|
|
article={a}
|
2023-10-10 19:45:35 +00:00
|
|
|
settings={{
|
|
|
|
nodate: props.nodate,
|
|
|
|
noAuthorLink: props.noAuthorLink,
|
2024-06-26 08:22:05 +00:00
|
|
|
noauthor: props.noauthor
|
2023-10-10 19:45:35 +00:00
|
|
|
}}
|
2023-11-18 14:10:02 +00:00
|
|
|
desktopCoverSize="S"
|
2023-08-12 10:36:21 +00:00
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
)}
|
|
|
|
</For>
|
|
|
|
</div>
|
2022-11-20 21:23:12 +00:00
|
|
|
</div>
|
2022-09-09 11:53:35 +00:00
|
|
|
</div>
|
2023-08-12 10:36:21 +00:00
|
|
|
</Show>
|
2022-09-09 11:53:35 +00:00
|
|
|
)
|
|
|
|
}
|