diff --git a/package-lock.json b/package-lock.json
index 2de6d6be..07f70a40 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -36361,4 +36361,4 @@
"integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q=="
}
}
-}
+}
\ No newline at end of file
diff --git a/package.json b/package.json
index e7ce6a13..51e7a7af 100644
--- a/package.json
+++ b/package.json
@@ -48,4 +48,4 @@
"last 1 safari version"
]
}
-}
+}
\ No newline at end of file
diff --git a/src/App.js b/src/App.js
index 359c8ae1..9b7673eb 100644
--- a/src/App.js
+++ b/src/App.js
@@ -15,6 +15,7 @@ import Pricing from "./Components/footer_section/Pricing/pricing";
import MyProjects from "./Components/menu_section/my_projects/MyProjects";
import NewProject from "./Components/menu_section/new_project/NewProject";
import Error from "./Components/404_page/Error";
+import Profile from "./Components/Profile/profile";
import Licensing from "./Components/footer_section/Legal/Licensing";
import TermsConditions from "./Components/footer_section/Legal/TermsandConditions";
import PrivacyPolicy from "./Components/footer_section/Legal/PrivacyPolicy";
@@ -46,6 +47,7 @@ function App() {
} />
} />
} />
+ } />
diff --git a/src/Components/Profile/Avatar.png b/src/Components/Profile/Avatar.png
new file mode 100644
index 00000000..d1fbd9fb
Binary files /dev/null and b/src/Components/Profile/Avatar.png differ
diff --git a/src/Components/Profile/instagram.png b/src/Components/Profile/instagram.png
new file mode 100644
index 00000000..28709bd2
Binary files /dev/null and b/src/Components/Profile/instagram.png differ
diff --git a/src/Components/Profile/linkedin.png b/src/Components/Profile/linkedin.png
new file mode 100644
index 00000000..861cf90c
Binary files /dev/null and b/src/Components/Profile/linkedin.png differ
diff --git a/src/Components/Profile/location.png b/src/Components/Profile/location.png
new file mode 100644
index 00000000..0166d143
Binary files /dev/null and b/src/Components/Profile/location.png differ
diff --git a/src/Components/Profile/profile.css b/src/Components/Profile/profile.css
new file mode 100644
index 00000000..59cd0bd4
--- /dev/null
+++ b/src/Components/Profile/profile.css
@@ -0,0 +1,263 @@
+/* Keyframes for fade-in effect */
+@keyframes fadeIn {
+ from {
+ opacity: 0;
+ }
+ to {
+ opacity: 1;
+ }
+}
+
+/* Keyframes for slide-in effect */
+@keyframes slideIn {
+ from {
+ transform: translateX(-100%);
+ opacity: 0;
+ }
+ to {
+ transform: translateX(0);
+ opacity: 1;
+ }
+}
+
+@keyframes slideInRight {
+ from {
+ transform: translateX(100%);
+ opacity: 0;
+ }
+ to {
+ transform: translateX(0);
+ opacity: 1;
+ }
+}
+
+/* Apply slide-in animation to .first section */
+.first {
+ animation: slideIn 0.8s ease forwards;
+}
+
+/* Apply slide-in-from-right animation to .second section */
+.second {
+ animation: slideInRight 0.8s ease forwards;
+}
+
+/* Apply fade-in animation to .aboutPageProfile */
+.aboutPageProfile {
+ animation: fadeIn 1s ease forwards;
+}
+
+/* Ensuring that aboutPageProfile hides and shows smoothly */
+.aboutPageProfile {
+ transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
+ opacity: 0;
+ visibility: hidden;
+}
+
+.aboutPageProfile.visible {
+ opacity: 1;
+ visibility: visible;
+}
+
+/* Other existing styles */
+.boxProfile {
+ margin: 50px 25px;
+ display: flex;
+ gap: 40px;
+}
+
+.first {
+ width: 400px;
+ outline: 3px solid #ff21bc;
+ height: 100vh;
+ padding: 40px 40px;
+ border-radius: 30px;
+}
+
+.profilephoto {
+ width: 250px;
+ height: 250px;
+ margin: auto;
+ border-radius: 50%;
+ outline: 3px solid #ff21bc;
+ background-image: url(./Avatar.png);
+ background-size: 100%;
+ margin-bottom: 40px;
+}
+
+.Name {
+ font-size: 25px;
+ font-weight: bold;
+}
+
+.usernameProfile {
+ font-size: larger;
+ color: #8d96a0;
+ margin-bottom: 24px;
+ cursor: pointer;
+}
+
+.usernameProfile:hover {
+ text-decoration: underline;
+}
+
+.descriptionProfile {
+ font-size: larger;
+ margin-bottom: 6px;
+}
+
+.editProfile {
+ width: 100%;
+ font-size: large;
+ margin-bottom: 50px;
+}
+
+.locationProfile {
+ display: flex;
+ gap: 10px;
+ margin-bottom: 25px
+}
+
+.locationIcon {
+ background-image: url(location.png);
+ height: 24px;
+ width: 24px;
+ background-size: 100%;
+}
+
+.linkedinProfile,
+.instaProfile {
+ display: flex;
+ gap: 10px;
+}
+
+.linkedinIcon {
+ width: 24px;
+ height: 24px;
+ background-image: url(linkedin.png);
+ background-size: 100%;
+}
+
+.instaIcon {
+ width: 24px;
+ height: 24px;
+ background-image: url(instagram.png);
+ background-size: 100%;
+}
+
+.socialProfile {
+ display: flex;
+ flex-direction: column;
+ gap: 5px;
+ margin-bottom: 30px;
+}
+
+.memberProfile {
+ font-weight: bold;
+ font-size: large;
+ text-align: center
+}
+
+.second {
+ width: 70%;
+ outline: 3px solid #ff21bc;
+ border-radius: 30px;
+}
+
+.navProfile {
+ width: 100%;
+ height: auto;
+ padding: 20px;
+ background-color: #140043;
+}
+
+.navProfile ul {
+ display: flex;
+ gap: 40px;
+ font-weight: bold;
+ cursor: pointer;
+}
+
+.navProfile ul li {
+ width: 90px;
+ height: 40px;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ border-radius: 20px;
+ transition: background-color 0.3s ease;
+}
+
+.navProfile ul li:hover {
+ background-color: #e55347;
+ transform: scale(1.05);
+ transition: background-color 0.3s ease, transform 0.3s ease;
+}
+
+.active {
+ background-color: #e55347;
+}
+
+.aboutProfile {
+ width: 100%;
+ height: 100%;
+}
+
+.aboutPageProfile {
+ height: 100%;
+ padding: 30px;
+ display: none;
+}
+
+.aboutPageProfile h1 {
+ font-size: 30px;
+ text-align: left;
+ margin-bottom: 30px;
+ font-weight: bold;
+ text-decoration: underline;
+}
+
+.aboutDetails li {
+ list-style: disc;
+ font-size: 22px;
+ list-style-position: inside;
+}
+
+.aboutDetails ol{
+ list-style-position: inside;
+ margin-left: 15px;
+ margin-bottom: 25px;
+}
+
+.aboutDetails ol li{
+ list-style-type:lower-roman;
+ font-size: 18px;
+}
+
+.headingAbout{
+ margin-bottom: 15px;
+ font-weight: bold;
+ text-decoration: underline;
+}
+
+#name{
+ color: #ff21bc;
+}
+
+.descriptionProfileabout{
+ margin-bottom: 45px;
+ font-size: 20px;
+}
+
+.headAbout{
+ font-weight: 700;
+ color: white;
+}
+
+.projectsPageProfile{
+ height: 100%;
+ display: none;
+}
+
+.visible{
+ display: block;
+}
diff --git a/src/Components/Profile/profile.js b/src/Components/Profile/profile.js
new file mode 100644
index 00000000..34cce7d1
--- /dev/null
+++ b/src/Components/Profile/profile.js
@@ -0,0 +1,99 @@
+import React from 'react'
+import MyProjects from '../menu_section/my_projects/MyProjects'
+import './profile.css'
+
+const profile = () => {
+ const handleClick = (event) => {
+ const buttons = document.getElementsByClassName('btnProfile');
+ for (const button of buttons) {
+ button.classList.remove('active');
+ }
+ event.target.classList.add('active');
+ if (document.querySelector(".visible")) {
+ document.querySelector(".visible").classList.remove('visible');
+ }
+ if (document.querySelector(".active").innerHTML === "ABOUT") {
+ document.querySelector(".aboutPageProfile").classList.add('visible');
+ }
+ if (document.querySelector(".active").innerHTML === "PROJECTS") {
+ document.querySelector(".projectsPageProfile").classList.add('visible');
+ }
+ };
+
+ return (
+
+
+
+
SUGAM ARORA
+
@sugamarora
+
Pre-Final Year @PEC, Chandigarh
+
+
+
Edit Profile
+
MEMBER SINCE: AUGUST 5, 2023
+
+
+
+
+ ABOUT
+ PROJECTS
+ CART
+ WALLET
+
+
+
+
Hi there, I'm SUGAM ARORA
+
Know more about me:
+
+ Lorem ipsum dolor sit, amet consectetur adipisicing elit. Deleniti, deserunt ipsum perferendis laboriosam molestias possimus nisi dolor fugiat magnam aspernatur reiciendis tenetur sapiente itaque impedit non optio? Deserunt, delectus exercitationem?
+
+
+ Educational Details
+
+ Heading: Enter your university Educational details
+ Heading: Enter your High School Educational details
+
+ Skills
+
+ Skill 1
+ Skill 2
+
+ Projects
+
+ Heading: Enter details of Project 1
+ Heading: Enter details of Project 2
+
+ UniCollab Stats
+
+ Total Active Days : X days
+ Current Streak : X days
+ Longest Streak : X days
+
+ Achievements
+
+ Heading: Enter your achievement 1
+ Heading: Enter your achievement 2
+
+
+
+
+
+
+
+
+ )
+}
+
+export default profile
diff --git a/src/Components/menu_section/my_projects/MyProjects.js b/src/Components/menu_section/my_projects/MyProjects.js
index e7ae7994..3ee519a2 100644
--- a/src/Components/menu_section/my_projects/MyProjects.js
+++ b/src/Components/menu_section/my_projects/MyProjects.js
@@ -55,10 +55,10 @@ const SampleData = [
}
]
-function MyProjects() {
+function MyProjects({showMenu = true}) {
return (
-
+ {showMenu &&
}
My Projects
diff --git a/yarn.lock b/yarn.lock
index 606e0234..5d83fc74 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -10924,4 +10924,4 @@ yargs@^17.3.1:
yocto-queue@^0.1.0:
version "0.1.0"
resolved "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz"
- integrity sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==
+ integrity sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==
\ No newline at end of file