2022-02-03 21:56:58 -08:00
|
|
|
import React from 'react';
|
2022-02-03 15:24:25 -08:00
|
|
|
|
2022-02-03 21:44:54 -08:00
|
|
|
export interface downloadCardProps {
|
2022-02-03 15:24:25 -08:00
|
|
|
client: string;
|
|
|
|
imgUrl: string;
|
|
|
|
url: string;
|
2022-09-22 18:25:08 -07:00
|
|
|
imgUrl2: string;
|
|
|
|
url2: string;
|
2022-02-03 15:24:25 -08:00
|
|
|
notes: string;
|
|
|
|
buttonText: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
export const DownloadCard = ({
|
|
|
|
client,
|
|
|
|
imgUrl,
|
|
|
|
url,
|
2022-09-22 18:25:08 -07:00
|
|
|
imgUrl2,
|
|
|
|
url2,
|
2022-02-03 15:24:25 -08:00
|
|
|
notes,
|
|
|
|
buttonText,
|
2022-02-03 21:44:54 -08:00
|
|
|
}: downloadCardProps): JSX.Element => {
|
2022-02-03 15:24:25 -08:00
|
|
|
return (
|
|
|
|
<div className="card">
|
|
|
|
<div
|
|
|
|
className="card__header"
|
2022-04-01 06:34:49 -07:00
|
|
|
style={{ display: 'flex', justifyContent: 'space-between' }}
|
2022-02-03 15:24:25 -08:00
|
|
|
>
|
|
|
|
<h3>{client}</h3>
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
className="card__body"
|
2022-04-01 06:34:49 -07:00
|
|
|
style={{ display: 'flex', justifyContent: 'center' }}
|
2022-02-03 15:24:25 -08:00
|
|
|
>
|
2022-04-01 06:34:49 -07:00
|
|
|
{buttonText ? (
|
2022-02-03 21:57:54 -08:00
|
|
|
<a href={url} className="button button--secondary button--block">
|
|
|
|
{buttonText}
|
|
|
|
</a>
|
2022-04-01 06:34:49 -07:00
|
|
|
) : (
|
2022-09-22 18:25:08 -07:00
|
|
|
<div>
|
2022-02-04 08:48:23 -08:00
|
|
|
<a href={url}>
|
2022-11-01 15:31:54 -07:00
|
|
|
<img alt="img1" style={{ height: '4rem' }} src={imgUrl}></img>
|
2022-02-03 21:57:54 -08:00
|
|
|
</a>
|
2022-09-22 18:25:08 -07:00
|
|
|
<a href={url2}>
|
2022-11-01 15:31:54 -07:00
|
|
|
<img alt="img2" style={{ height: '4rem' }} src={imgUrl2}></img>
|
2022-09-22 18:25:08 -07:00
|
|
|
</a>
|
|
|
|
</div>
|
2022-04-01 06:34:49 -07:00
|
|
|
)}
|
2022-02-03 15:24:25 -08:00
|
|
|
</div>
|
2022-04-01 06:34:49 -07:00
|
|
|
<div className="card__footer">{notes ? notes : null}</div>
|
2022-02-03 15:24:25 -08:00
|
|
|
</div>
|
|
|
|
);
|
|
|
|
};
|
|
|
|
|
2022-02-03 21:46:11 -08:00
|
|
|
export const PlaceholderCard = (): JSX.Element => {
|
2022-02-03 15:24:25 -08:00
|
|
|
return (
|
|
|
|
<div
|
|
|
|
className="card"
|
|
|
|
style={{
|
2022-04-01 06:34:49 -07:00
|
|
|
width: '100%',
|
|
|
|
animation: 'pulse 2s infinite',
|
|
|
|
transform: 'scale(1)',
|
|
|
|
display: 'flex',
|
|
|
|
gap: '1rem',
|
|
|
|
padding: '1rem',
|
2022-02-03 15:24:25 -08:00
|
|
|
}}
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
style={{
|
2022-04-01 06:34:49 -07:00
|
|
|
display: 'flex',
|
|
|
|
justifyContent: 'space-between',
|
|
|
|
marginBottom: '1rem',
|
2022-02-03 15:24:25 -08:00
|
|
|
}}
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
style={{
|
2022-04-01 06:34:49 -07:00
|
|
|
borderRadius: '0.4rem',
|
|
|
|
backgroundColor: 'gray',
|
|
|
|
height: '2rem',
|
|
|
|
width: '8rem',
|
2022-02-03 15:24:25 -08:00
|
|
|
}}
|
|
|
|
/>
|
|
|
|
<div
|
|
|
|
style={{
|
2022-04-01 06:34:49 -07:00
|
|
|
borderRadius: '0.4rem',
|
|
|
|
backgroundColor: 'gray',
|
|
|
|
marginTop: '1rem',
|
|
|
|
height: '1rem',
|
|
|
|
width: '8rem',
|
2022-02-03 15:24:25 -08:00
|
|
|
}}
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
className="card__body"
|
|
|
|
style={{
|
2022-04-01 06:34:49 -07:00
|
|
|
borderRadius: '0.4rem',
|
|
|
|
backgroundColor: 'gray',
|
|
|
|
height: '3rem',
|
|
|
|
display: 'flex',
|
|
|
|
jusifyContent: 'center',
|
|
|
|
alignItems: 'center',
|
2022-02-03 15:24:25 -08:00
|
|
|
}}
|
|
|
|
/>
|
|
|
|
<a className="button disabled button--primary button--block"> </a>
|
|
|
|
<div
|
|
|
|
style={{
|
2022-04-01 06:34:49 -07:00
|
|
|
borderRadius: '0.4rem',
|
|
|
|
backgroundColor: 'gray',
|
|
|
|
width: '8rem',
|
|
|
|
height: '2rem',
|
2022-02-03 15:24:25 -08:00
|
|
|
}}
|
|
|
|
/>
|
|
|
|
<div
|
|
|
|
style={{
|
2022-04-01 06:34:49 -07:00
|
|
|
borderRadius: '0.4rem',
|
|
|
|
backgroundColor: 'gray',
|
|
|
|
width: '11rem',
|
|
|
|
height: '1rem',
|
2022-02-03 15:24:25 -08:00
|
|
|
}}
|
|
|
|
/>
|
|
|
|
<div
|
|
|
|
style={{
|
2022-04-01 06:34:49 -07:00
|
|
|
borderRadius: '0.4rem',
|
|
|
|
backgroundColor: 'gray',
|
|
|
|
width: '9rem',
|
|
|
|
height: '1rem',
|
2022-02-03 15:24:25 -08:00
|
|
|
}}
|
|
|
|
/>
|
|
|
|
<div
|
|
|
|
style={{
|
2022-04-01 06:34:49 -07:00
|
|
|
borderRadius: '0.4rem',
|
|
|
|
backgroundColor: 'gray',
|
|
|
|
width: '13rem',
|
|
|
|
height: '1rem',
|
2022-02-03 15:24:25 -08:00
|
|
|
}}
|
|
|
|
/>
|
|
|
|
<div
|
|
|
|
style={{
|
2022-04-01 06:34:49 -07:00
|
|
|
borderRadius: '0.4rem',
|
|
|
|
backgroundColor: 'gray',
|
|
|
|
width: '11rem',
|
|
|
|
height: '1rem',
|
2022-02-03 15:24:25 -08:00
|
|
|
}}
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
};
|