@@ -84,60 +84,62 @@ export const GitHub = ({ url }: GitHubProps) => {
8484 rel = "noopener noreferrer"
8585 className = "w-full max-w-[700px] p-4 border border-stone-800 hover:border-stone-700 mt-4 rounded-xl overflow-hidden block"
8686 >
87- < div className = "flex items-center" >
88- < img
89- src = { ownerAvatar }
90- alt = "Owner Avatar"
91- className = "w-12 h-12 rounded-full mr-4"
92- />
93- < div >
94- < Typography . Body variant = "large-bold" >
95- { repoData . full_name && repoData . full_name . length > 40
96- ? repoData . full_name . slice ( 0 , 40 ) + '...'
97- : repoData . full_name }
98- </ Typography . Body >
99- < Typography . Body variant = "small" className = "opacity-80" >
100- { repoData . description && repoData . description . length > 150
101- ? repoData . description . slice ( 0 , 150 ) + '...'
102- : repoData . description }
103- </ Typography . Body >
104- < div className = "flex gap-4" >
105- < div className = "flex gap-1" >
106- < span className = "text-[15px]" role = "img" aria-label = "star" >
107- ⭐
108- </ span >
109- < Typography . Body variant = "small" >
110- { repoData . stargazers_count }
111- </ Typography . Body >
112- </ div >
113- < div className = "flex gap-1" >
114- < div className = "flex items-center" >
115- < Icon . GitFork size = "15" />
87+ < div className = "flex justify-between" >
88+ < div className = "flex items-center" >
89+ < img
90+ src = { ownerAvatar }
91+ alt = "Owner Avatar"
92+ className = "w-12 h-12 rounded-full mr-4"
93+ />
94+ < div >
95+ < Typography . Body variant = "large-bold" >
96+ { repoData . full_name && repoData . full_name . length > 40
97+ ? repoData . full_name . slice ( 0 , 40 ) + '...'
98+ : repoData . full_name }
99+ </ Typography . Body >
100+ < Typography . Body variant = "small" className = "opacity-80" >
101+ { repoData . description && repoData . description . length > 150
102+ ? repoData . description . slice ( 0 , 150 ) + '...'
103+ : repoData . description }
104+ </ Typography . Body >
105+ < div className = "flex gap-4" >
106+ < div className = "flex gap-1" >
107+ < span className = "text-[15px]" role = "img" aria-label = "star" >
108+ ⭐
109+ </ span >
110+ < Typography . Body variant = "small" >
111+ { repoData . stargazers_count }
112+ </ Typography . Body >
116113 </ div >
117- < Typography . Body variant = "small" >
118- { repoData . forks_count }
119- </ Typography . Body >
120- </ div >
121- < div className = "flex gap-1" >
122- < div className = "flex items-center" >
123- < Icon . Eye size = "15" />
114+ < div className = "flex gap-1" >
115+ < div className = "flex items-center" >
116+ < Icon . GitFork size = "15" />
117+ </ div >
118+ < Typography . Body variant = "small" >
119+ { repoData . forks_count }
120+ </ Typography . Body >
121+ </ div >
122+ < div className = "flex gap-1" >
123+ < div className = "flex items-center" >
124+ < Icon . Eye size = "15" />
125+ </ div >
126+ < Typography . Body variant = "small" >
127+ { repoData . subscribers_count }
128+ </ Typography . Body >
124129 </ div >
125- < Typography . Body variant = "small" >
126- { repoData . subscribers_count }
127- </ Typography . Body >
128130 </ div >
129131 </ div >
130132 </ div >
133+ { previewImage && (
134+ < div >
135+ < img
136+ src = { previewImage }
137+ alt = "Preview"
138+ className = "w-40 h-[90px] rounded-lg"
139+ />
140+ </ div >
141+ ) }
131142 </ div >
132- { previewImage && (
133- < div className = "mt-4" >
134- < img
135- src = { previewImage }
136- alt = "Preview"
137- className = "rounded-lg max-h-[350px]"
138- />
139- </ div >
140- ) }
141143 </ a >
142144 ) ;
143145} ;
0 commit comments