Skip to content

Commit

Permalink
fixing github widget
Browse files Browse the repository at this point in the history
  • Loading branch information
Lewwiss committed Oct 19, 2024
1 parent 839b4d4 commit dc66ffb
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 67 deletions.
6 changes: 5 additions & 1 deletion components/GitHubActivity/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const GitHubActivity = ({ username, period, color, defaultColor, gap }) => {
};

const fetchGithubTable = async () => {
const res = await fetch(`https://corsproxy.io/?https%3A%2F%2Fgithub.com%2Fusers%2F${username}%2Fcontributions?to=${currentDateFormatted()}`);
const res = await fetch(`https://corsproxy.io/?https%3A%2F%2Fgithub.com%2Fusers%2F${username}%2Fcontributions`);
setTableData(await res.text());
setTableLoading(false);
};
Expand Down Expand Up @@ -85,6 +85,10 @@ const GitHubActivity = ({ username, period, color, defaultColor, gap }) => {
gap: ${tableGap}px;
border-spacing: 0;
}
/* Hide the first td element in the first row. */
.ContributionCalendar-grid > tbody > tr:first-child > td:nth-child(-n+1) {
display: none;
}
/* Adjust to correct period */
.ContributionCalendar-grid > tbody > tr > td {
display: none;
Expand Down
65 changes: 0 additions & 65 deletions deploy.sh

This file was deleted.

2 changes: 1 addition & 1 deletion pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ const Home = () => {
</div>

{/* Project 2 */}
<a target='_blank' href="https://github.com/Lewwiss/storybook-outlines" className='relative pb-7 rounded-3xl bg-slate-900 border-[3px] border-primary overflow-hidden'>
<a target='_blank' href="https://github.com/Lewwiss/storybook-outlines" className='hover:scale-[102%] duration-150 relative pb-7 rounded-3xl bg-slate-900 border-[3px] border-primary overflow-hidden'>
<div className='relative h-16 lg:h-24 overflow-hidden'>
<div className='absolute top-0 left-0 w-full h-full bg-gradient-to-t from-slate-900 to-transparent z-10' />
<img src="https://i.imgur.com/8jRATob.png" className='absolute top-0 left-0 w-full opacity-40' draggable={false} />
Expand Down

0 comments on commit dc66ffb

Please sign in to comment.