forked from QuantStack/quantstack.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProjectCard.tsx
More file actions
35 lines (34 loc) · 1 KB
/
Copy pathProjectCard.tsx
File metadata and controls
35 lines (34 loc) · 1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import styles from "./styles.module.css";
export default function ProjectCard({ project }): JSX.Element {
const prefix = "project_picture_";
const base = `${prefix}${project.name}`
return (
<div className="container">
<div className="row row--no-gutters">
<div
className={"col col--6 col col--offset-1" + " " + styles.project_text}
>
<div className={styles.project_title}>{project.title}</div>
<div className={styles.project_description}>
<project.ProjectMD />
</div>
</div>
<div
className={
"col col--4 flex-full-centered padding-none" +
" " +
styles[base]
}
>
<div className={styles.col_project_picture}></div>
<img
src={project.pictureRoute}
width={project.pictureWidth}
height={project.pictureHeight}
alt={project.pictureAltText}
/>
</div>
</div>
</div>
);
}