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