Reworked projects section

This commit is contained in:
2023-02-22 22:41:38 +03:00
parent 0d1fc4a897
commit 2d9f893b77
18 changed files with 310 additions and 202 deletions

View File

@@ -3,14 +3,21 @@ import { useI18n } from "@solid-primitives/i18n";
import styles from './Project.module.css';
import type { Project } from './projectList';
export default (props: { project: Project }) => {
export default (props: { project: Project, odd: boolean }) => {
const [t] = useI18n();
return (
<div class={styles.Project}>
<div
class={styles.Project}
classList={{
[styles.Project_odd]: props.odd,
[styles.Project_halfWidth]: props.project.halfWidth
}}
>
<img
class={styles.preview}
src={props.project.preview}
style={props.project.previewStyle}
/>
<div
class={styles.body}