mirror of
https://github.com/seigler/seigler.github.io
synced 2025-07-27 07:16: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
|
} = 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>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue