Skip to content

Commit

Permalink
Merge pull request #7 from Souls-R/master
Browse files Browse the repository at this point in the history
feat: add github link at index page
  • Loading branch information
mudongliang authored Apr 10, 2024
2 parents 6ee04e0 + e58bba1 commit d924c4f
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,15 @@
return ESCAPE_MAP[region] !== undefined
}

function GithubIcon(props) {
return (
<svg
{...props}
xmlns="http://www.w3.org/2000/svg" width="1.2em" height="1.2em" viewBox="0 0 24 24"><path fill="black" d="M12 2A10 10 0 0 0 2 12c0 4.42 2.87 8.17 6.84 9.5c.5.08.66-.23.66-.5v-1.69c-2.77.6-3.36-1.34-3.36-1.34c-.46-1.16-1.11-1.47-1.11-1.47c-.91-.62.07-.6.07-.6c1 .07 1.53 1.03 1.53 1.03c.87 1.52 2.34 1.07 2.91.83c.09-.65.35-1.09.63-1.34c-2.22-.25-4.55-1.11-4.55-4.92c0-1.11.38-2 1.03-2.71c-.1-.25-.45-1.29.1-2.64c0 0 .84-.27 2.75 1.02c.79-.22 1.65-.33 2.5-.33s1.71.11 2.5.33c1.91-1.29 2.75-1.02 2.75-1.02c.55 1.35.2 2.39.1 2.64c.65.71 1.03 1.6 1.03 2.71c0 3.82-2.34 4.66-4.57 4.91c.36.31.69.92.69 1.85V21c0 .27.16.59.67.5C19.14 20.16 22 16.42 22 12A10 10 0 0 0 12 2"/>
</svg>
)
}

function App() {
const [data, setData] = React.useState([]);
const [loading, setLoading] = React.useState(false);
Expand Down Expand Up @@ -143,8 +152,13 @@

return (
<antd.Spin spinning={loading}>
<div>
<div style={{ display: 'flex', alignItems: 'baseline', justifyContent: 'space-between' }}>
<h1>Linux Kernel Patch Statistic among Universities</h1>
<a href="https://github.com/hust-open-atom-club/linux-edu-rank">
<GithubIcon style={{ transform: 'scale(1.5)', marginRight: '1em' }} />
</a>
</div>
<div>
{
meta && <antd.Descriptions>
<antd.Descriptions.Item label="Last update">{meta.update ? dayjs(meta.update).format("YYYY-MM-DD HH:mm") : "N/A"}</antd.Descriptions.Item>
Expand Down

0 comments on commit d924c4f

Please sign in to comment.