34 lines
810 B
TypeScript
34 lines
810 B
TypeScript
import type { Shout } from '../../graphql/schema/core.gen'
|
|
|
|
import { Show } from 'solid-js'
|
|
|
|
import { ArticleCard } from './ArticleCard'
|
|
|
|
export const Row1 = (props: {
|
|
article: Shout
|
|
nodate?: boolean
|
|
noAuthorLink?: boolean
|
|
noauthor?: boolean
|
|
}) => (
|
|
<Show when={!!props.article}>
|
|
<div class="floor floor--one-article">
|
|
<div class="wide-container">
|
|
<div class="row">
|
|
<div class="col-24">
|
|
<ArticleCard
|
|
article={props.article}
|
|
settings={{
|
|
isSingle: true,
|
|
nodate: props.nodate,
|
|
noAuthorLink: props.noAuthorLink,
|
|
noauthor: props.noauthor
|
|
}}
|
|
desktopCoverSize="L"
|
|
/>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</Show>
|
|
)
|