Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhanced sidebar n profile Section #471

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions public/data/TeekshaHarish.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"name": "Teeksha Harish",
"location": "Delhi",
"bio": "Engineering student and MERN developer",
"avatar": "https://github.com/TeekshaHarish.png",
"portfolio": "Your Portfolio URL or Github URL",
"skills": ["Reactjs", "Express", "Nodejs","MongoDB", "Python", "FastAPI","MySQL", "TailwindCSS", "PostgresSQL"],
"social": {
"GitHub": "https://github.com/TeekshaHarish",
"Twitter": "https://twitter.com/your-twitter-username",
"LinkedIn": "https://www.linkedin.com/in/your-linkedin-username"
}
}
"name": "Teeksha Harish",
"location": "Delhi",
"bio": "Engineering student and MERN developer",
"avatar": "https://github.com/TeekshaHarish.png",
"portfolio": "Your Portfolio URL or Github URL",
"skills": ["Reactjs", "Express", "Nodejs", "MongoDB", "Python", "FastAPI", "MySQL", "TailwindCSS", "PostgresSQL"],
"social": {
"GitHub": "https://github.com/TeekshaHarish",
"Twitter": "https://twitter.com/your-twitter-username",
"LinkedIn": "https://www.linkedin.com/in/your-linkedin-username"
}
}
16 changes: 8 additions & 8 deletions src/components/Profile/Profile.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ function Card({ data }) {
data.skills.map((skill, index) => {
return (
<div
className=" inline h-auto cursor-default whitespace-nowrap rounded-md bg-secondaryColor px-2 py-1 text-[9px] text-white sm:text-sm md:h-[30px]"
className=" inline h-auto cursor-default whitespace-nowrap rounded-md bg-secondaryColor px-2 py-2 text-blue-50 sm:text-xs md:h-[30px]"
key={index}
>
{skill}
Expand All @@ -74,7 +74,7 @@ function Card({ data }) {
data.skills.map((skill, index) => {
return (
<div
className=" inline h-auto cursor-default whitespace-nowrap rounded-md bg-secondaryColor px-2 py-1 text-[9px] text-white sm:text-sm md:h-[30px]"
className=" inline h-auto cursor-default whitespace-nowrap rounded-md bg-secondaryColor px-2 py-2 text-blue-50 sm:text-xs md:h-[30px]"
key={index}
>
{skill}
Expand All @@ -91,7 +91,7 @@ function Card({ data }) {
data.skills.map((skill, index) => {
return (
<div
className=" inline h-auto cursor-default whitespace-nowrap rounded-md bg-secondaryColor px-2 py-1 text-[9px] text-white sm:text-sm md:h-[30px]"
className=" inline h-auto cursor-default whitespace-nowrap rounded-md bg-secondaryColor px-2 py-2 text-blue-50 sm:text-xs md:h-[30px]"
key={index}
>
{skill}
Expand All @@ -112,23 +112,23 @@ function Card({ data }) {
</div>
</div>
<div className="mt-4">
<div className="dark:text-white">{data.bio}</div>
<div className="mt-1 flex gap-x-4">
<div className="text-sm text-blue-950 dark:text-blue-100">{data.bio}</div>
<div className="mt-3 flex justify-center gap-x-4">
{data.social?.GitHub && (
<a href={data.social.GitHub} target="_blank" rel="noreferrer">
<FaGithub className="text-2xl text-blue-600 duration-300 hover:scale-125" />
<FaGithub className="text-xl text-blue-500 duration-300 hover:scale-125 hover:text-blue-600" />
</a>
)}

{data.social?.Twitter && (
<a href={data.social.Twitter} target="_blank" rel="noreferrer">
<FaXTwitter className="text-2xl text-blue-600 duration-300 hover:scale-125" />
<FaXTwitter className="text-xl text-blue-500 duration-300 hover:scale-125 hover:text-blue-600" />
</a>
)}

{data.social?.LinkedIn && (
<a href={data.social.LinkedIn} target="_blank" rel="noreferrer">
<FaLinkedin className="text-2xl text-blue-600 duration-300 hover:scale-125" />
<FaLinkedin className="text-xl text-blue-500 duration-300 hover:scale-125 hover:text-blue-600" />
</a>
)}
</div>
Expand Down
23 changes: 17 additions & 6 deletions src/components/Sidebar/Sidebar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,14 @@ import { FaLinkedin } from 'react-icons/fa';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import { faCode, faMoon, faSun } from '@fortawesome/free-solid-svg-icons';
import { useNavigate } from 'react-router-dom';
import { PiUserCirclePlusFill } from 'react-icons/pi';
import { SiSpotlight } from 'react-icons/si';
import { MdHub } from 'react-icons/md';

function Sidebar() {
const navigate = useNavigate();
const [theme, setTheme] = useState(() => {
const storedTheme = JSON.parse(localStorage.getItem('theme'));
const storedTheme = localStorage.getItem('theme');
return storedTheme || (document.documentElement.classList.contains('dark') ? 'dark' : 'light');
});

Expand Down Expand Up @@ -59,7 +62,7 @@ function Sidebar() {
Open Source community where you can discover, connect, collab with skilled developers, share your ideas then
build projects and also promote the project through this community.
</div>
<div className="flex flex-wrap items-center justify-center gap-2 pt-5 ">
<div className="flex flex-wrap items-center gap-2 pt-5 ">
<a
href="https://github.com/codeaashu/DevDisplay?tab=readme-ov-file#how-to-add-your-profile-"
target="_blank"
Expand All @@ -70,7 +73,10 @@ function Sidebar() {

inline-block cursor-pointer rounded-lg border-2 border-textSecondary bg-textSecondary px-[15px] py-1.5 text-center font-poppoins text-sm transition-all duration-500 hover:bg-transparent hover:text-textSecondary dark:text-white"
>
Add your profile
<div className="flex items-center gap-1">
<PiUserCirclePlusFill size={18} />
Add your profile
</div>
</button>
</a>
<a href="https://www.linkedin.com/company/devdisplay/" target="_blank" rel="noreferrer">
Expand All @@ -80,17 +86,22 @@ function Sidebar() {
</button>
</a>
</div>
<div className="flex flex-row flex-wrap items-center justify-center gap-2 pt-6">
<div className="flex flex-row flex-wrap items-center gap-2 pt-6">
<a href="https://ai.google.dev/competition/projects/helpmate-ai" target="_blank" rel="noreferrer">
<button className="inline-flex cursor-pointer items-center rounded-lg border-2 border-textSecondary bg-textSecondary px-[15px] py-1.5 text-center font-poppoins text-sm transition-all duration-500 hover:bg-transparent hover:text-textSecondary dark:text-white">
Spotlight
<div className="flex items-center gap-1">
<SiSpotlight size={13} />
Spotlight
</div>
</button>
</a>
<button
onClick={handleOpportunities}
className="inline-flex cursor-pointer items-center rounded-lg border-2 border-textSecondary bg-textSecondary px-[15px] py-1.5 text-center font-poppoins text-sm transition-all duration-500 hover:bg-transparent hover:text-textSecondary dark:text-white"
>
Opportunities Hub
<div className="flex items-center gap-1">
<MdHub size={11} /> Opportunities Hub
</div>
</button>
</div>
</div>
Expand Down
Loading