Skip to content
This repository has been archived by the owner on Aug 7, 2024. It is now read-only.

Commit

Permalink
feat: filter events #2528
Browse files Browse the repository at this point in the history
  • Loading branch information
eddiejaoude committed Jan 5, 2023
2 parents 6ca677e + 30d2f31 commit 6c0f901
Show file tree
Hide file tree
Showing 72 changed files with 1,273 additions and 125 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/testimonial.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
name: Testimonial

on:
workflow_dispatch:
issues:
types: [opened]
types: [opened, edited]

jobs:
create-testimonial:
Expand All @@ -16,7 +17,6 @@ jobs:
with:
template-path: .github/ISSUE_TEMPLATE/testimonial.yml
body: ${{ github.event.issue.body }}
- run: cat ${HOME}/issue-parser-result.json
- name: current date
id: date
uses: Kaven-Universe/github-action-current-date-time@v1
Expand All @@ -29,11 +29,13 @@ jobs:
env:
FILE_NAME: "data/${{ steps.issue-parser.outputs.issueparser_name }}/testimonials/${{ github.actor }}.json"
FILE_DATA: '{"title": "${{ steps.issue-parser.outputs.issueparser_title }}", "description": "${{ steps.issue-parser.outputs.issueparser_description}}", "date": "${{ steps.date.outputs.time }}"}'
- name: validate JSON
run: jq . "data/${{ steps.issue-parser.outputs.issueparser_name }}/testimonials/${{ github.actor }}.json"
- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: "Testimonial for '${{ steps.issue-parser.outputs.issueparser_name }}' by '${{ github.actor }}'"
- name: Close Issue
uses: YiiGuxing/[email protected]
with:
comment: |
Testimonial added. Thank you for your contribution!
Testimonial added for @${{ steps.issue-parser.outputs.issueparser_name }}. Thank you for your contribution! @${{ steps.issue-parser.outputs.issueparser_name }} if you wish to add it your LinkFree profile please follow the instructions in the docs https://linkfree.eddiehub.io/docs/how-to-guides/testimonials
28 changes: 14 additions & 14 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,45 +1,45 @@
# [1.37.0](https://github.com/EddieHubCommunity/LinkFree/compare/v1.36.0...v1.37.0) (2023-01-02)
## [1.40.7](https://github.com/EddieHubCommunity/LinkFree/compare/v1.40.6...v1.40.7) (2023-01-05)


### Features
### Bug Fixes

* popular profiles views ([#2579](https://github.com/EddieHubCommunity/LinkFree/issues/2579)) ([99f3552](https://github.com/EddieHubCommunity/LinkFree/commit/99f3552b7d32d7b23398811b52347d928589a831))
* testimonial action with jq ([d7481ca](https://github.com/EddieHubCommunity/LinkFree/commit/d7481ca952a5d494c46632eb1aa74c2b5cbb6eb7))



# [1.36.0](https://github.com/EddieHubCommunity/LinkFree/compare/v1.35.0...v1.36.0) (2023-01-01)
## [1.40.6](https://github.com/EddieHubCommunity/LinkFree/compare/v1.40.5...v1.40.6) (2023-01-04)


### Features
### Bug Fixes

* copy to code blocks ([#2565](https://github.com/EddieHubCommunity/LinkFree/issues/2565)) ([dac79c8](https://github.com/EddieHubCommunity/LinkFree/commit/dac79c8d130907f34f29994eeb9ca5b27babb12e))
* testimonial gh action trigger ([5de6d7b](https://github.com/EddieHubCommunity/LinkFree/commit/5de6d7b19f98214cd13c491bd4e595925765c50b))



# [1.35.0](https://github.com/EddieHubCommunity/LinkFree/compare/v1.34.1...v1.35.0) (2023-01-01)
## [1.40.5](https://github.com/EddieHubCommunity/LinkFree/compare/v1.40.4...v1.40.5) (2023-01-04)


### Features
### Bug Fixes

* profile tab sorting ([#2539](https://github.com/EddieHubCommunity/LinkFree/issues/2539)) ([cda7709](https://github.com/EddieHubCommunity/LinkFree/commit/cda7709c19fce96fd2af8da60dd4e7019bf586b8)), closes [#2474](https://github.com/EddieHubCommunity/LinkFree/issues/2474) [#2553](https://github.com/EddieHubCommunity/LinkFree/issues/2553)
* github action jq to apt ([0022406](https://github.com/EddieHubCommunity/LinkFree/commit/00224060dd733ad66182efa8c4dc1709a45a2e36))



## [1.34.1](https://github.com/EddieHubCommunity/LinkFree/compare/v1.34.0...v1.34.1) (2022-12-31)
## [1.40.4](https://github.com/EddieHubCommunity/LinkFree/compare/v1.40.3...v1.40.4) (2023-01-04)


### Bug Fixes

* formatting of copy component ([d132385](https://github.com/EddieHubCommunity/LinkFree/commit/d132385247274cb0d28f8f3a1da089872e6447bc))
* github action for jq ([7bdc59c](https://github.com/EddieHubCommunity/LinkFree/commit/7bdc59c8aaaa4ce8915b0399102eee0b65cb35c7))



# [1.34.0](https://github.com/EddieHubCommunity/LinkFree/compare/v1.33.0...v1.34.0) (2022-12-31)
## [1.40.3](https://github.com/EddieHubCommunity/LinkFree/compare/v1.40.2...v1.40.3) (2023-01-04)


### Features
### Bug Fixes

* copy to clipboard ([#2551](https://github.com/EddieHubCommunity/LinkFree/issues/2551)) ([5fdbcfb](https://github.com/EddieHubCommunity/LinkFree/commit/5fdbcfb1b3161c1101e3d4b08faa2d9b799c552d))
* github action for jq ([30b79a3](https://github.com/EddieHubCommunity/LinkFree/commit/30b79a3685339e54fc9495254b1aa575f14f6225))



17 changes: 13 additions & 4 deletions components/event/EventKey.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
import { IconContext } from "react-icons";
import { MdOutlineOnlinePrediction, MdOutlinePeople } from "react-icons/md";

export default function EventKey({ onToggleEventType }) {
export default function EventKey({ events, onToggleEventType }) {
const inPersonEvents = events.filter((event) => event.isInPerson).length;
const virtualEvents = events.filter((event) => event.isVirtual).length;


return (
<div className="grid grid-cols-1 gap-4 sm:grid-cols-2 mb-6">
<div onClick={() => onToggleEventType('in-person')} className="hover:scale-105 cursor-pointer transition-all 3s relative flex items-center space-x-3 rounded-lg border border-gray-300 bg-white px-6 py-5 shadow-sm focus-within:ring-2 focus-within:ring-indigo-500 focus-within:ring-offset-2">
<div
onClick={() => onToggleEventType("in-person")}
className="hover:scale-105 cursor-pointer transition-all 3s relative flex items-center space-x-3 rounded-lg border border-gray-300 bg-white px-6 py-5 shadow-sm focus-within:ring-2 focus-within:ring-indigo-500 focus-within:ring-offset-2"
>
<div className="flex-shrink-0">
<IconContext.Provider value={{ size: "3em" }}>
<MdOutlinePeople />
Expand All @@ -19,8 +23,12 @@ export default function EventKey({ onToggleEventType }) {
These are in person events
</p>
</div>
<div className="text-2xl font-semibold">{inPersonEvents}</div>
</div>
<div onClick={() => onToggleEventType('virtual')} className="hover:scale-105 cursor-pointer transition-all 3s relative flex items-center space-x-3 rounded-lg border border-gray-300 bg-white px-6 py-5 shadow-sm focus-within:ring-2 focus-within:ring-indigo-500 focus-within:ring-offset-2">
<div
onClick={() => onToggleEventType("virtual")}
className="hover:scale-105 cursor-pointer transition-all 3s relative flex items-center space-x-3 rounded-lg border border-gray-300 bg-white px-6 py-5 shadow-sm focus-within:ring-2 focus-within:ring-indigo-500 focus-within:ring-offset-2"
>
<div className="flex-shrink-0">
<IconContext.Provider value={{ size: "3em" }}>
<MdOutlineOnlinePrediction />
Expand All @@ -33,6 +41,7 @@ export default function EventKey({ onToggleEventType }) {
These are virtual events held online
</p>
</div>
<div className="text-2xl font-semibold">{virtualEvents}</div>
</div>
</div>
);
Expand Down
17 changes: 6 additions & 11 deletions components/user/UserCard.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export default function UserCard({ profile }) {
href={`/${profile.username}`}
className="flex flex-col items-center border-2 max-w-[14rem] h-[17rem] overflow-hidden rounded-lg border-gray-200 p-4 gap-3 hover:border-orange-600"
>
<div className="flex justify-center">
<div className="flex justify-center relative">
<FallbackImage
src={profile.avatar}
alt={`Profile picture of ${profile.name}`}
Expand All @@ -18,16 +18,11 @@ export default function UserCard({ profile }) {
className="rounded-full"
fallback={profile.name}
/>
{profile.displayStatsPublic && (
<div class="relative">
<div
id="card-views"
className="absolute inline-block h-5 top-0 bottom-auto translate-x-2/4 rotate-0 skew-x-0 skew-y-0 scale-x-100 scale-y-100 py-1 px-1.5 text-xs leading-none text-center whitespace-nowrap align-baseline font-bold bg-orange-600 text-black rounded-full z-10"
>
{abbreviateNumber(profile.views)}
</div>
</div>
)}
{profile.views && (
<div className="absolute inline-block top-0 right-0 bottom-auto left-auto translate-x-2/4 -translate-y-1/2 rotate-0 skew-x-0 skew-y-0 scale-x-100 scale-y-100 py-1 px-1.5 text-xs leading-none text-center whitespace-nowrap align-baseline font-bold bg-orange-600 text-black rounded-full z-10">
{abbreviateNumber(profile.views)}
</div>
)}
</div>
<div>
<h3 className="text-xl justify-center text-center text-orange-600 font-bold mb-2">
Expand Down
2 changes: 1 addition & 1 deletion components/user/UserEvents.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import EventKey from "../event/EventKey";
export default function UserEvents({ data }) {
return (
<div className="mt-6">
<EventKey />
<EventKey events={data.events} />
{!data.events && <Alert type="info" message="No events found" />}
<ul role="list" className="divide-y divide-gray-200">
{data.events &&
Expand Down
4 changes: 3 additions & 1 deletion data/AliReza1083.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
{
"name": "Ali Reza",
"type": "personal",
"bio": "React Developer | Refugee Boy | Open Source",
"displayStatsPublic": true,
"bio": "**React** Developer | Refugee Boy | Open Source",
"avatar": "https://github.com/AliReza1083.png",
"tags": ["Open Source", "Javascript", "Typescript", "ReactJS"],
"links": [
{
"name": "Follow me on GitHub",
Expand Down
58 changes: 55 additions & 3 deletions data/Arindam200.json
Original file line number Diff line number Diff line change
@@ -1,23 +1,75 @@
{
"name": "Arindam Majumder",
"type": "personal",
"bio": " Open Source Enthusiast|Learner",
"type": "Personal",
"displayStatsPublic": true,
"bio": "Open Source Enthusiast | Core Team Member of **GrowInCommunity** | Tech Blogger | DSA | Web Development ",
"avatar": "https://github.com/Arindam200.png",
"tags": ["Open Source", "Web Development", "DSA", "Java", "Go", "Python"],
"socials": [
{ "icon": "FaTwitter", "url": "https://twitter.com/Arindam_1729" },
{ "icon": "FaGithub", "url": "https://github.com/Arindam200" }
],
"links": [
{
"name": "Follow me on GitHub",
"url": "https://github.com/Arindam200",
"icon": "FaGithub"
},
{
"name": "Join our Inclusive Open Source community GrowInCommunity on Twitter & Discord",
"url": "https://twitter.com/GrowInComm",
"icon": "FaLink"
},
{
"name": "Follow me on Twitter",
"url": "https://twitter.com/Arindam_1729",
"icon": "FaTwitter"
},
{
"name": "Follow me on LinkedIn",
"name": "Connect with me on LinkedIn",
"url": "https://www.linkedin.com/in/arindam-majumder-021bb623b/",
"icon": "FaLinkedin"
},
{
"name": "Follow and read my blog on Hashnode",
"url": "https://arindam1729.hashnode.dev/",
"icon": "SiHashnode"
},
{
"name": "Follow and read my blog on Dev.to",
"url": "https://dev.to/arindam_1729",
"icon": "FaDev"
},
{
"name": "Follow me on Instagram",
"url": "https://www.instagram.com/i_am_arindam_official/",
"icon": "FaInstagram"
}
],
"milestones": [
{
"title": "Completed Hacktoberfest 2022",
"date": "October 2022",
"icon": "SiOpensourceinitiative",
"color": "grey",
"description": "Participated in my first ever Hacktoberfest and completed/won it.",
"url": "https://github.com/Arindam200"
},
{
"title": "Became Core Team Member of our Inclusive Open Source community **GrowInCommunity**",
"date": "8 December 2022",
"icon": "SiOpensourceinitiative",
"color": "red",
"description": "Started our Inclusive Open Source community **GrowInCommunity** where everyone learn, build and grow together",
"url": "https://twitter.com/GrowInComm"
},
{
"title": "Started Tech Blog",
"date": "11 October 2022",
"icon": "SiHashnode",
"color": "blue",
"description": "Documenting my Journey through blogs",
"url": "https://arindam1729.hashnode.dev/"
}
]
}
16 changes: 15 additions & 1 deletion data/CBID2.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@
"name": "Follow me on LinkedIn",
"url": "https://www.linkedin.com/in/christinebelzie",
"icon": "FaLinkedin"
},
{
"name": "Follow my tech blog",
"url": "https://chrissycodes.hashnode.dev/",
"icon": "SiHashnode"
}
],
"milestones": [
Expand All @@ -32,6 +37,15 @@
"color": "grey",
"description": "Won for being an active participant in SheSharp.",
"url": "https://www.linkedin.com/posts/christinebelzie_announcing-our-new-in-tech-scholarship-winner-activity-6993952117304508416-3oC5?utm_source=share&utm_medium=member_desktop"
},
{
"title": "Wrote my first blog post",
"date": "December 2022",
"icon": "SiHashnode",
"color": "grey",
"description": "In this blog post, I describe why I decided to learn to code and how I overcame imposter syndrome to start this journey",
"url": "https://chrissycodes.hashnode.dev/"
}
]
],
"testimonials": ["loftwah"]
}
1 change: 1 addition & 0 deletions data/CBID2/testimonials/loftwah.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"title": "Grateful for Christine's help in welcoming me to the open-source community", "description": "I just wanted to thank Christine for her tremendous help and support in my introduction to open-source software. She was a fantastic mentor and ensured I had everything I needed to get started and feel welcome in the community. Her patience and kindness meant a lot to me. Thank you for being such a fantastic support and making me feel like a valuable part of the open-source community. Your contributions are greatly appreciated!", "date": "2023-01-05"}
7 changes: 7 additions & 0 deletions data/EddieHubCommunity.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@
"type": "community",
"bio": "Inclusive **Open Source** community - Collaboration 1st, Code 2nd!",
"avatar": "https://github.com/EddieHubCommunity.png",
"testimonials": [
"loftwah",
"LinuxGamer",
"yashdev9274",
"dren98",
"Susmita-Dey"
],
"links": [
{
"name": "Visit EddieHub Website",
Expand Down
1 change: 1 addition & 0 deletions data/EddieHubCommunity/testimonials/LinuxGamer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"title": "Amazing, Supporting Community", "description": "This community is amazing, supportive and helpful. They are the reason I got into Open Source.", "date": "2023-01-04"}
5 changes: 5 additions & 0 deletions data/EddieHubCommunity/testimonials/Susmita-Dey.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"title": "Testimonial for EddieHubCommunity - Susmita Dey",
"description": "EddieHub is the first community to help me start my journey to Open Source. I wasn't aware of anything called **Open Source** before I met @eddiejaoude on a Twitter space and came across ** EddieHub community ** and found so many people here geeking out, helping each other, making PRs and issues, and many more.The repositories maintainers are so kind here;always ready to help each other.I created my first issue and PR here and contributed to this community and soon became a member.It helped me to customize my GitHub profile and taught me how to collaborate with people all over the world. I 'm very happy being here as a member now and helping people geeking out together and learning new things. ❤️ Thank you Eddie Sir for making this awesome community! 🚀 EddieHub is invaluable: It 's beyond any ratings :)",
"date": "2023-01-04"
}
1 change: 1 addition & 0 deletions data/EddieHubCommunity/testimonials/dren98.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"title": "LinkFree Testimonial", "description": "I highly recommend LinkFree to anyone in the tech industry looking for a simple and effective way to showcase their content and grow their career, also its a great opportunity to be a part of the open source community and contribute to the project's development.", "date": "2023-01-04"}
1 change: 1 addition & 0 deletions data/EddieHubCommunity/testimonials/eddiejaoude.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"title": "One of the best community", "description": "I think EddieHub is one of the first community which introduces me to a whole new world of open source and made me realize that we all can work in a collaborative and exclusive environment no matter how professional or novice we are. This is a place for all, No matter who you are beginner or a professional you should definitely checkout EddieHub community and do contribute to it, start it or sponsor it. It will make you fall in love with open source specially Eddie - he is the best my bet.", "date": "2023-01-04"}
1 change: 1 addition & 0 deletions data/EddieHubCommunity/testimonials/loftwah.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"title": "Best open source community", "description": "I found EddieHub while trying to find a job after being let go and I found the community to be very welcoming and ever since my career has gone into overdrive.", "date": "2023-01-04"}
8 changes: 4 additions & 4 deletions data/Kaleem-abdull.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,19 @@
},

{
"name": "Follow me on LinkedIn",
"url": "https://linkedin.com/in/abdul-rahaman-mohammed",
"name": "Check out my LinkedIn profile",
"url": "https://www.linkedin.com/in/drabdrahaman",
"icon": "FaLinkedinIn"
},

{
"name": "Subscribe to my YouTube",
"name": "subscribe to my YouTube",
"url": "https://www.youtube.com/channel/UCeR0sR2CSaRT5HWRSs5AeoQ",
"icon": "FaYoutubeSquare"
},

{
"name": "Follow me on GitHub",
"name": "Lets geek out on GitHub",
"url": "https://github.com/Kaleem-abdull/",
"icon": "FaGithub"
}
Expand Down
Loading

0 comments on commit 6c0f901

Please sign in to comment.