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

added conatct us and copywrite #1069

Merged
merged 3 commits into from
Jul 6, 2024
Merged
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
39 changes: 0 additions & 39 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-icons": "^5.0.1",
"react-router-dom": "^6.22.0",

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this needs to be deleted for your changes?

Copy link
Contributor Author

@AnkitMourya12 AnkitMourya12 Jun 27, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no

"react-scripts": "5.0.1",
"react-router-dom": "^6.22.0",
"web-vitals": "^3.5.2"
},
"scripts": {
Expand Down
13 changes: 13 additions & 0 deletions public/data/AnkitMourya12.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"name": "Ankit Mourya",
"location": "Uttar Pradesh",
"bio": "Ex intern @swiggy | contributor GSsoc'24",
"avatar": "https://github.com/AnkitMourya12.png",
"portfolio": "https://github.com/AnkitMourya12",
"skills": ["full stack", "data analyst"],
"social": {
"GitHub": "https://github.com/AnkitMourya12",
"Twitter": "https://x.com/ANKITMaury41117",
"LinkedIn": "https://www.linkedin.com/in/ankit-mourya-821aa223b/"
}
}
2 changes: 1 addition & 1 deletion public/data/Sahilll15.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Sahil Sanjay Chalke",
"location": "Mumbai, India 🇮🇳",
"location": "Mumbai, India 🇮🇳",
"bio": "FULL STACK DEV",
"avatar": "https://avatars.githubusercontent.com/u/109215419?v=4",
"portfolio": "https://sahilchalke.online/",
Expand Down
18 changes: 16 additions & 2 deletions public/data/connectaryal.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,24 @@
"bio": "Senior Software Engineer with 5+ years of experience in building scalable applications.",
"avatar": "https://github.com/connectaryal.png",
"portfolio": "https://shivaaryal.com.np/",
"skills": ["HTML", "CSS", "JavaScript", "Tailwind CSS", "TypeScript", "React", "OOP", "Node.js", "PHP", "Laravel", "WordPress", "MYSQL", "Docker"],
"skills": [
"HTML",
"CSS",
"JavaScript",
"Tailwind CSS",
"TypeScript",
"React",
"OOP",
"Node.js",
"PHP",
"Laravel",
"WordPress",
"MYSQL",
"Docker"
],
"social": {
"GitHub": "https://github.com/connectaryal",
"Twitter": "https://twitter.com/connectaryal",
"LinkedIn": "https://www.linkedin.com/in/connectaryal"
}
}
}
5 changes: 3 additions & 2 deletions src/ProfilesList.json
Original file line number Diff line number Diff line change
Expand Up @@ -425,5 +425,6 @@
"BHS-Harish.json",
"Monalisha-Roy.json",
"Sahilll15.json",
"Kritika.json"
]
"Kritika.json",
"AnkitMourya12.json"
]
54 changes: 54 additions & 0 deletions src/components/Sidebar/Sidebar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { faCode, faMoon, faSun } from '@fortawesome/free-solid-svg-icons';

function Sidebar() {
const [theme, setTheme] = useState('dark');
const [showContactForm, setShowContactForm] = useState(false);

function toggleTheme() {
const htmlElement = document.documentElement;
Expand All @@ -17,6 +18,11 @@ function Sidebar() {
setTheme('dark');
}
}

function toggleContactForm() {
setShowContactForm(!showContactForm);
}

return (
<div className="my-7 w-full border-r-2 border-borderSecondary px-7 font-spaceMono dark:border-borderColor md:h-[90vh] md:w-[23%]">
<div className="mb-2 flex h-12 items-center gap-2.5">
Expand Down Expand Up @@ -51,6 +57,54 @@ function Sidebar() {
</button>
</a>
</div>
<div className="pt-5">
<button
className="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"
onClick={toggleContactForm}
>
Contact Us
</button>
</div>
{showContactForm && (
<div className="contact-container pt-5">
<h1 className="contact-heading">Contact Us</h1>
<p className="contact-description">Please fill out the form below to get in touch with us.</p>
<form className="contact-form">
<div className="form-group">
<label htmlFor="name" className="form-label">
Name:
</label>
<input type="text" id="name" name="name" className="form-input" />
</div>

<div className="form-group">
<label htmlFor="email" className="form-label">
Email:
</label>
<input type="email" id="email" name="email" className="form-input" />
</div>

<div className="form-group">
<label htmlFor="message" className="form-label">
Message:
</label>
<textarea id="message" name="message" rows="4" className="form-textarea" />
</div>

<div className="pt-5">
<button
className="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"
onClick={toggleContactForm}
>
Submit
</button>
</div>
</form>
</div>
)}
<div className="mt-auto p-4 text-center text-secondaryColor ">
© {new Date().getFullYear()} devFind. All rights reserved.
</div>
</div>
);
}
Expand Down
Loading