1
0
mirror of https://github.com/phuoc-ng/csslayout.git synced 2025-10-23 18:56:29 +02:00

feat: Update header and footer

This commit is contained in:
Phuoc Nguyen
2022-08-21 19:59:09 +07:00
parent 78dedd0fc7
commit 3bb07d8358
2 changed files with 7 additions and 7 deletions

View File

@@ -6,7 +6,7 @@ export const HeaderBlock = () => {
const [totalStars, setTotalStars] = React.useState(0);
React.useEffect(() => {
fetch('https://api.github.com/repos/1milligram/csslayout')
fetch('https://api.github.com/repos/phuocng/csslayout')
.then((res) => res.json())
.then((data) => setTotalStars(data.stargazers_count))
.catch(console.log);
@@ -27,7 +27,7 @@ export const HeaderBlock = () => {
<Link href="/" passHref>
<HeaderLogo />
</Link>
<Link href="https://github.com/1milligram/csslayout">
<Link href="https://github.com/phuocng/csslayout">
<a className="block-header__cta">GitHub {totalStars}</a>
</Link>
</div>