mirror of
https://github.com/seigler/seigler.github.io
synced 2025-07-26 23:06:09 +00:00
link directly to websites
This commit is contained in:
parent
f482027840
commit
1f25d68959
1 changed files with 12 additions and 2 deletions
|
@ -17,11 +17,21 @@ export function RepoCard({ repo }: { repo: GithubRepo }) {
|
|||
} = repo
|
||||
return (
|
||||
<div class="card">
|
||||
<header style={{ display: 'flex', justifyContent: 'space-between' }}>
|
||||
<header
|
||||
style={{
|
||||
display: 'flex',
|
||||
justifyContent: 'space-between',
|
||||
flexWrap: 'wrap'
|
||||
}}>
|
||||
<strong>
|
||||
<a href={html_url}>{name}</a>
|
||||
<a href={homepage || html_url}>{name}</a>
|
||||
</strong>
|
||||
{stargazers_count ? <div>{stargazers_count}⭐</div> : null}
|
||||
{homepage && (
|
||||
<div style={{ width: '100%', fontSize: '0.8em' }}>
|
||||
<a href={html_url}>source</a>
|
||||
</div>
|
||||
)}
|
||||
</header>
|
||||
<p style={{ flexGrow: 1 }}>{description}</p>
|
||||
<footer>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue