link directly to websites

This commit is contained in:
Joshua Seigler 2022-10-11 12:01:23 -04:00
parent f482027840
commit 1f25d68959
No known key found for this signature in database

View file

@ -17,11 +17,21 @@ export function RepoCard({ repo }: { repo: GithubRepo }) {
} = repo } = repo
return ( return (
<div class="card"> <div class="card">
<header style={{ display: 'flex', justifyContent: 'space-between' }}> <header
style={{
display: 'flex',
justifyContent: 'space-between',
flexWrap: 'wrap'
}}>
<strong> <strong>
<a href={html_url}>{name}</a> <a href={homepage || html_url}>{name}</a>
</strong> </strong>
{stargazers_count ? <div>{stargazers_count}</div> : null} {stargazers_count ? <div>{stargazers_count}</div> : null}
{homepage && (
<div style={{ width: '100%', fontSize: '0.8em' }}>
<a href={html_url}>source</a>
</div>
)}
</header> </header>
<p style={{ flexGrow: 1 }}>{description}</p> <p style={{ flexGrow: 1 }}>{description}</p>
<footer> <footer>