Fix up first version and add Prettier and Docker

This commit is contained in:
Bad Manners 2024-03-20 11:34:09 -03:00
parent 09a1919d36
commit 324050ee38
87 changed files with 2210 additions and 822 deletions

View file

@ -1,11 +1,21 @@
---
import { type User } from '../content/config'
import { type User } from "../content/config";
type Props = {
user: User
}
user: User;
};
const { user } = Astro.props
const { user } = Astro.props;
---
{typeof user === 'string' ? <span>{user}</span> : Object.entries(user).map(([k, v]) => <a href={v} class="text-link underline" target="_blank"><span>{k}</span></a>)[0]}
{
typeof user === "string" ? (
<span>{user}</span>
) : (
Object.entries(user).map(([k, v]) => (
<a href={v} class="text-link underline" target="_blank">
<span>{k}</span>
</a>
))[0]
)
}