Skip to content

Commit

Permalink
FD-3221 horizontal 4 meta
Browse files Browse the repository at this point in the history
  • Loading branch information
willemliufdmg committed Nov 23, 2022
1 parent bee2e1e commit 75c3449
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 18 deletions.
Expand Up @@ -55,21 +55,21 @@ https://images.example.com/image.png?auto=format&ixlib=react-9.5.4&w=8192 8192w"
class="teaserText xs__pl+4 s__p+4"
>
<div
class="meta xs__m-0 xs__mb+2 body-text sans s"
class="meta xs__m-0 xs__mb+2 body-text sans xs"
>
<time>
11:40
</time>
<span
class="prefix"
class="dot"
>
Ondernemen
</span>
<span
class="dot"
class="prefix"
>
Ondernemen
</span>
<time>
11:40
</time>
</div>
<div
class="textContainer"
Expand Down
3 changes: 2 additions & 1 deletion src/components/card/HorizontalCard2.tsx
Expand Up @@ -2,14 +2,15 @@ import React from 'react';
import styles from './HorizontalCard2.module.scss';

interface Props {
style?: React.CSSProperties;
className?: string;
id: string;
url: string;
label: string;
time: string;
title: string;
intro: string;
isRead?: boolean;
[x: string]: any;
}

/**
Expand Down
5 changes: 0 additions & 5 deletions src/components/card/HorizontalCard4.module.scss
Expand Up @@ -93,11 +93,6 @@
top: auto;
left: auto;
right: auto;
.update,
.prefix {
font-family: map-deep-get($typography, 'font-family', 'bold'),
sans-serif;
}
.update {
padding: 1px 8px;
color: var(--card);
Expand Down
12 changes: 8 additions & 4 deletions src/components/card/HorizontalCard4.tsx
Expand Up @@ -2,17 +2,20 @@ import React from 'react';
import styles from './HorizontalCard4.module.scss';

interface Props {
style?: React.CSSProperties;
className?: string;
id: string;
/**
* Custom image component. When set this will replace the default img-element.
*/
imageComponent?: JSX.Element;
url: string;
imageUrl?: string;
caption?: string;
label: string;
time: string;
title: string;
isRead?: boolean;
[x: string]: any;
}

/**
Expand Down Expand Up @@ -49,17 +52,18 @@ function HorizontalCard4(props: Props) {

<div className={`${styles.teaserText} xs__pl+4 s__p+4`}>
<div
className={`${styles.meta} xs__m-0 xs__mb+2 body-text sans s`}
className={`${styles.meta} xs__m-0 xs__mb+2 body-text sans xs`}
>
<time>{props.time}</time>

{props.label && (
<>
<span className={styles.dot}></span>
<span className={styles.prefix}>
{props.label}
</span>
<span className={styles.dot}></span>
</>
)}
<time>{props.time}</time>
</div>

<div className={styles.textContainer}>
Expand Down

0 comments on commit 75c3449

Please sign in to comment.