Controls turn into tapbar

This commit is contained in:
2022-05-20 23:50:47 +03:00
parent 49ae4b0dec
commit 7c076a040c
24 changed files with 246 additions and 21 deletions

View File

@@ -1,9 +1,30 @@
import styles from './Project.module.css';
import { useI18n } from "@solid-primitives/i18n";
import styles from './Project.module.css';
import type { Project } from './projectList';
export default (props: {project: Project}) => {
const [t] = useI18n();
export default () => {
return (
<div class={styles.Project}>
<img
class={styles.preview}
src={props.project.preview}
/>
<div
class={styles.body}
>
<a
href={props.project.link}
target="_blank"
>
<h2>{props.project.name}</h2>
</a>
<div class={styles.description}>
{t(props.project.descriptionSlug)}
</div>
</div>
</div>
)
}