webapp/src/components/Feed/Row1.tsx

34 lines
811 B
TypeScript
Raw Normal View History

2023-11-28 13:18:25 +00:00
import type { Shout } from '../../graphql/schema/core.gen'
import { Show } from 'solid-js'
2023-05-01 18:32:32 +00:00
import { ArticleCard } from './ArticleCard'
2022-09-09 11:53:35 +00:00
export const Row1 = (props: {
article: Shout
nodate?: boolean
noAuthorLink?: boolean
noauthor?: boolean
}) => (
2022-09-09 11:53:35 +00:00
<Show when={!!props.article}>
<div class="floor floor--one-article">
2022-11-20 21:23:12 +00:00
<div class="wide-container">
<div class="row">
2023-03-10 17:42:48 +00:00
<div class="col-24">
<ArticleCard
article={props.article}
settings={{
isSingle: true,
nodate: props.nodate,
noAuthorLink: props.noAuthorLink,
noauthor: props.noauthor,
}}
desktopCoverSize="L"
/>
2022-11-20 21:23:12 +00:00
</div>
2022-09-09 11:53:35 +00:00
</div>
</div>
</div>
</Show>
)