Skip to content

Commit 64ff5f1

Browse files
committed
image loading skeleton adden
1 parent 834c03a commit 64ff5f1

File tree

5 files changed

+49
-18
lines changed

5 files changed

+49
-18
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"version": "0.0.1",
55
"type": "module",
66
"scripts": {
7-
"dev": "vite",
7+
"dev": "vite --open",
88
"build": "vite build",
99
"preview": "vite preview"
1010
},

src/components/Contributors/contributors.jsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,14 +46,14 @@ function Contribute() {
4646
id="container"
4747
className={`py-4 mb-4 col-span-12 md:col-span-6 xl:col-span-4 md:px-6 border-l-4 rounded-lg bg-dark-secondary flex flex-col mt-8 items-center mx-auto gap-2 px-3 border-[#${changeColor()}] hover:border-primary hover:text-primary`}
4848
>
49-
<h1>
49+
<img className="pfp mb-8 skeleton" src={user.avatar_url} />
50+
<h1 className="text-center -mb-10 font-semibold uppercase">
5051
{user.login}{" "}
5152
<small className="text-violet-400 container:hover:text-white">
5253
{user.contributions}
5354
</small>
5455
</h1>
55-
<img className="pfp" src={user.avatar_url} />
56-
<div className="links">
56+
<div className="links text-sm">
5757
<a className="spf-link" href={user.html_url}>
5858
Github
5959
</a>
@@ -69,10 +69,10 @@ function Contribute() {
6969
<img
7070
src="/assets/run.gif"
7171
className="w-1/2 mx-auto"
72-
alt="Running Gif"
72+
alt="Running.gif"
7373
/>
7474
<h1 className="text-center md:text-2xl text-white">
75-
Contributors coming...
75+
Contributors coming❤️‍🔥...
7676
</h1>
7777
</div>
7878
)

src/components/Contributors/css/index.css

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,17 @@
2525
left: 11%;
2626
width: 10rem;
2727
border-radius: 50%;
28+
}
29+
30+
.skeleton {
31+
animation: skeleton 1s linear infinite alternate;
32+
}
33+
34+
@keyframes skeleton {
35+
0% {
36+
background-color: rgb(145, 144, 144);
37+
}
38+
100% {
39+
background-color: rgba(116, 116, 116, 0.4);
40+
}
2841
}/*# sourceMappingURL=index.css.map */

src/components/Contributors/css/index.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 29 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,44 @@
1-
#container{
2-
3-
display:inline-block;
1+
#container {
2+
3+
display: inline-block;
44
width: 17rem;
55
height: 18rem;
66
margin: 2rem;
7-
7+
88
}
9-
.links{
9+
10+
.links {
1011
position: relative;
1112
display: inline;
12-
top:20%;
13+
top: 20%;
1314
}
14-
.spf-link{
15+
16+
.spf-link {
1517
padding: 1.4rem;
1618
}
17-
.spf-link:hover{
18-
text-decoration:underline;
19+
20+
.spf-link:hover {
21+
text-decoration: underline;
1922
}
20-
.pfp{
23+
24+
.pfp {
2125
position: relative;
2226
top: 5%;
2327
left: 11%;
24-
width:10rem;
28+
width: 10rem;
2529
border-radius: 50%;
30+
}
31+
32+
.skeleton {
33+
animation: skeleton 1s linear infinite alternate;
34+
}
35+
36+
@keyframes skeleton {
37+
0% {
38+
background-color: rgb(145, 144, 144);
39+
}
40+
41+
100% {
42+
background-color: rgba(116, 116, 116, 0.4);
43+
}
2644
}

0 commit comments

Comments
 (0)