Skip to content

Commit 036a5cb

Browse files
committed
Introducing DevDisplay Universe
1 parent 9155d30 commit 036a5cb

File tree

7 files changed

+452
-11
lines changed

7 files changed

+452
-11
lines changed

package-lock.json

Lines changed: 93 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
"react-router-dom": "^6.22.0",
2525
"react-scripts": "5.0.1",
2626
"sitemap": "^8.0.0",
27+
"styled-components": "^6.1.15",
2728
"web-vitals": "^3.5.2"
2829
},
2930
"scripts": {

public/data/codeaashu.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,5 +52,6 @@
5252
"LinkedIn": "https://www.linkedin.com/in/ashutoshkumaraashu/",
5353
"Instagram": "https://www.instagram.com/warrior_aashuu/",
5454
"Email": "[email protected]"
55-
}
55+
},
56+
"verified": true
5657
}

src/components/Profile/Profile.jsx

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,24 @@ function Card({ data }) {
5252
<div className="w-[55%] sm:w-[75%]">
5353
<h3>
5454
<a
55-
className="text-lg font-bold hover:text-textSecondary dark:text-white"
55+
className="flex items-center text-lg font-bold hover:text-textSecondary dark:text-white"
5656
href={data.portfolio}
5757
target="_blank"
5858
rel="noreferrer"
5959
>
6060
{data.name}
61+
{data.verified && (
62+
<svg
63+
xmlns="http://www.w3.org/2000/svg"
64+
viewBox="0 0 24 24"
65+
width="16"
66+
height="16"
67+
style={{ marginLeft: '8px' }}
68+
>
69+
<circle cx="12" cy="12" r="10" fill="rgb(24, 186, 255)" />
70+
<path fill="#fff" d="M9 16.2l-3.5-3.5 1.4-1.4L9 13.4l7.1-7.1 1.4 1.4z" />
71+
</svg>
72+
)}
6173
</a>
6274
</h3>
6375
<p className="flex items-center gap-x-1 text-sm dark:text-white">

src/components/ProfileSkeleton/ProfileSkeleton.jsx

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ function ProfileSkeleton() {
1515
Instagram: '',
1616
Email: '',
1717
},
18+
verified: false,
1819
};
1920

2021
return (
@@ -23,7 +24,21 @@ function ProfileSkeleton() {
2324
<div className="flex gap-[1rem]">
2425
<div className="skeleton h-[6.1rem] w-[6.1rem] flex-shrink-0 rounded"></div>
2526
<div className="w-[80%] overflow-hidden">
26-
<h3 className="skeleton mb-[0.5rem] h-[1.6rem] w-full rounded-[0.25rem]">{skeletonData.name}</h3>
27+
<h3 className="skeleton mb-[0.5rem] h-[1.6rem] w-full rounded-[0.25rem]">
28+
{skeletonData.name}
29+
{skeletonData.verified && (
30+
<svg
31+
xmlns="http://www.w3.org/2000/svg"
32+
viewBox="0 0 24 24"
33+
width="16"
34+
height="16"
35+
style={{ marginLeft: '8px' }}
36+
>
37+
<circle cx="12" cy="12" r="10" fill="rgb(24, 186, 255)" />
38+
<path fill="#fff" d="M9 16.2l-3.5-3.5 1.4-1.4L9 13.4l7.1-7.1 1.4 1.4z" />
39+
</svg>
40+
)}
41+
</h3>
2742
<p className="skeleton mb-[0.4rem] h-[1.2rem] w-full rounded-[0.25rem]">{skeletonData.location}</p>
2843
<div className="flex gap-[1rem] overflow-hidden">
2944
{skeletonData.skills &&
@@ -64,4 +79,5 @@ function ProfileSkeleton() {
6479
</div>
6580
);
6681
}
82+
6783
export default ProfileSkeleton;

0 commit comments

Comments
 (0)