File tree Expand file tree Collapse file tree 4 files changed +70
-3
lines changed Expand file tree Collapse file tree 4 files changed +70
-3
lines changed Original file line number Diff line number Diff line change 34
34
"title" : " Bicycle to Dfinity" ,
35
35
"url" : " https://m5rwi-daaaa-aaaal-acrpq-cai.icp0.io" ,
36
36
"description" : " An adventure around the world to meet great souls and promote good stuff." ,
37
- "img" : " /showcase/aegir.jpg"
37
+ "img" : " /showcase/aegir.jpg" ,
38
+ "github" :" https://github.com/Kyliux/Icloud"
38
39
},
39
40
{
40
41
"title" : " ICPFA" ,
Original file line number Diff line number Diff line change 60
60
word-break : break-word ;
61
61
white-space : pre-wrap ;
62
62
}
63
+
64
+ h4 {
65
+ display : flex ;
66
+ align-items : center ;
67
+ justify-content : space-between ; /* This pushes items to the edges */
68
+ }
69
+
70
+ .githubLogo {
71
+ width : 40px ; /* Adjust the size of the logo */
72
+ height : 40px ;
73
+ }
74
+ }
75
+
76
+ .githubLink {
77
+ margin-left : auto ; /* Pushes the link to the right */
63
78
}
Original file line number Diff line number Diff line change @@ -6,7 +6,8 @@ export default function Spotlight({
6
6
title,
7
7
description,
8
8
img,
9
- url
9
+ url,
10
+ github
10
11
} : ShowcaseSpotlight ) : JSX . Element {
11
12
return (
12
13
< Link href = { url } target = "_blank" rel = "noreferrer noopener nofollow" >
@@ -22,7 +23,14 @@ export default function Spotlight({
22
23
</ div >
23
24
24
25
< div className = { styles . content } >
25
- < h4 > { title } </ h4 >
26
+ < h4 >
27
+ { title }
28
+ { github && (
29
+ < Link href = { github } target = "_blank" rel = "noreferrer noopener nofollow" className = { styles . githubLink } >
30
+ < img src = "https://upload.wikimedia.org/wikipedia/commons/thumb/a/ae/Github-desktop-logo-symbol.svg/640px-Github-desktop-logo-symbol.svg.png" alt = "GitHub Logo" className = { styles . githubLogo } />
31
+ </ Link >
32
+ ) }
33
+ </ h4 >
26
34
< p > { description } </ p >
27
35
</ div >
28
36
</ article >
You can’t perform that action at this time.
0 commit comments