Skip to content

Commit 85ef64b

Browse files
committed
Update project page
1 parent 456af39 commit 85ef64b

File tree

2 files changed

+50
-9
lines changed

2 files changed

+50
-9
lines changed

src/components/Projcts/ RepoCard.js

Lines changed: 46 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import {FaStar} from "react-icons/fa";
22

33
const RepoCard = ({ repo }) => {
4-
const { name, html_url, stargazers_count, language, owner, description } = repo;
4+
const { name, html_url, stargazers_count, language, owner, description, forks_count,open_issues, topics } = repo;
55
return (
66
<a href={html_url} target="_blank" rel="noopener noreferrer"
7-
className="bg-slate-900 border flex flex-col justify-between rounded-lg border-gray-700 p-5 shadow hover:bg-gray-700 delay-100 h-full duration-200 w-full">
8-
<div>
7+
className="bg-slate-900/60 border flex flex-col justify-between rounded-lg border-gray-700 p-5 shadow hover:bg-gray-700 delay-100 h-full duration-200 w-full">
8+
<div>
99
<div className="flex flex-row">
1010
{/*<img src={owner?.avatar_url} className="rounded h-40 w-40"/>*/}
1111
<p>
@@ -17,13 +17,54 @@ const RepoCard = ({ repo }) => {
1717
{ description }
1818
</p>
1919
</div>
20-
<div className="flex justify-between mt-4">
20+
<div className="flex flex-wrap justify-start mt-2">
21+
{topics?.map((topic, index) => (
22+
<div key={index} className="flex m-1 text-xs font-medium bg-blue-500/20 text-blue-400 rounded-xl px-2 py-1">{topic}</div>
23+
))}
24+
</div>
25+
26+
<div className="flex justify-start mt-4">
2127
<span className="text-xs text-gray-500">{language}</span>
2228
<div className="flex flex-row justify-between">
23-
<div className="flex flex-row text-gray-500 hover:text-white">
29+
<div className="flex flex-row text-gray-500 hover:text-white ml-3">
2430
<FaStar className="h-4 w-4"/>
2531
<span className="text-xs ml-1">{stargazers_count}</span>
2632
</div>
33+
<div className="flex flex-row text-gray-500 hover:text-white ml-3">
34+
<svg
35+
aria-hidden="true"
36+
height="16"
37+
viewBox="0 0 16 16"
38+
version="1.1"
39+
width="16"
40+
data-view-component="true"
41+
class="octicon octicon-repo-forked mr-1 fill-current">
42+
<path
43+
fill-rule="evenodd"
44+
d="M5 3.25a.75.75 0 11-1.5 0 .75.75 0 011.5 0zm0 2.122a2.25 2.25 0 10-1.5 0v.878A2.25 2.25 0 005.75 8.5h1.5v2.128a2.251 2.251 0 101.5 0V8.5h1.5a2.25 2.25 0 002.25-2.25v-.878a2.25 2.25 0 10-1.5 0v.878a.75.75 0 01-.75.75h-4.5A.75.75 0 015 6.25v-.878zm3.75 7.378a.75.75 0 11-1.5 0 .75.75 0 011.5 0zm3-8.75a.75.75 0 100-1.5.75.75 0 000 1.5z">
45+
</path>
46+
</svg>
47+
<span className="text-xs ml-1">{forks_count}</span>
48+
</div>
49+
50+
<div className="flex flex-row text-gray-500 hover:text-white ml-3">
51+
<svg
52+
aria-hidden="true"
53+
height="16"
54+
viewBox="0 0 16 16"
55+
version="1.1"
56+
width="16"
57+
data-view-component="true"
58+
class="octicon octicon-issue-opened UnderlineNav-octicon d-none d-sm-inline fill-current">
59+
<path d="M8 9.5a1.5 1.5 0 100-3 1.5 1.5 0 000 3z">
60+
</path>
61+
<path
62+
fill-rule="evenodd"
63+
d="M8 0a8 8 0 100 16A8 8 0 008 0zM1.5 8a6.5 6.5 0 1113 0 6.5 6.5 0 01-13 0z">
64+
</path>
65+
</svg>
66+
<span className="text-xs ml-1">{open_issues}</span>
67+
</div>
2768
</div>
2869
</div>
2970
</a>

src/pages/projects.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,12 @@ const Projects = ({ success = false, projectsData = [] }) => {
3636
<Head>
3737
<title>Projects | WebXDAO</title>
3838
</Head>
39-
<section className="text-white text-center bg-[#00007f]">
40-
<div className="px-5 py-10 sm:p-20">
41-
<h1 className="font-bold text-3xl md:text-5xl antialiased">
39+
<section className="py-8">
40+
<div className="container max-w-5xl mx-auto">
41+
<h1 className="w-full my-2 text-4xl font-bold leading-tight text-center text-white">
4242
Resources/Projects
4343
</h1>
44-
<div className="mt-6 text-lg md:text-xl font-light text-true-gray-500 antialiased">
44+
<div className="w-full mt-6 text-lg md:text-xl font-light leading-tight text-center text-white">
4545
Here you can find a list of good projects and resources to learn
4646
about Blockchain and Web 3.0
4747
</div>

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy