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

Development/user profile #1833

Closed
wants to merge 76 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
76 commits
Select commit Hold shift + click to select a range
72c7c49
First Commit
rinagobo Jan 24, 2024
a600602
Modified Footer section
rinagobo Jan 29, 2024
b436e92
Added a router path for 4 buttons
rinagobo Jan 31, 2024
e6d777f
Redone the header section
rinagobo Feb 4, 2024
9db1aaf
showCloseModal, and all other integrations
wimaan3 Feb 9, 2024
3b7fbe4
Modified a button route
rinagobo Feb 11, 2024
412c26f
Changed names of the images imported to be consistent
rinagobo Feb 11, 2024
f64011d
Changed variables for router function in camel case
rinagobo Feb 11, 2024
6d4de5e
Move inline styling to the styled component
rinagobo Feb 11, 2024
186e011
Moved inline stylings to the styled component
rinagobo Feb 11, 2024
e3d2984
Make <JourneySectionRight /> and <JourneySectionLeft /> into a single…
rinagobo Feb 11, 2024
a9129d7
Implemented the "CREATE YOUR PROFILE" button functionality
rinagobo Feb 11, 2024
fddb20a
CloseModal "X" icon fixed
wimaan3 Feb 18, 2024
eb0e1a9
Base Function of ProfileEditModal
rinagobo Feb 26, 2024
01541f5
Update Stepper.js
wimaan3 Feb 27, 2024
a0f697e
Update Stepper.js
wimaan3 Feb 27, 2024
31cab8f
Update onboardingReducer.js
wimaan3 Feb 27, 2024
a389055
Update onboardingActions.js
wimaan3 Feb 27, 2024
968c5ef
Update UserOnboardingModal.js
wimaan3 Feb 27, 2024
e10fa03
Update IntroductionModal.js
wimaan3 Feb 27, 2024
4d96a5e
Additional commit with the first one
rinagobo Mar 3, 2024
bdd8af6
Commit for updtating yarn package
rinagobo Mar 3, 2024
2b15eff
Succeeded in passing a function from a parant component to a grand c…
rinagobo Mar 3, 2024
5dc331c
Added "Unsubscribe"
rinagobo Mar 3, 2024
2c20106
New Modal Code Using Reducer
rinagobo Mar 8, 2024
c2cb350
New Modal Code Using Reducer 2
rinagobo Mar 16, 2024
0235719
CloseModalFinalChanges-Task1263-UI-Error-Fix
wimaan3 Mar 23, 2024
3fbd065
Cleaned the code
rinagobo Mar 24, 2024
b9d28a0
Cleaned the code
rinagobo Mar 24, 2024
7c3289e
Used context API partially
rinagobo Mar 24, 2024
90c650f
Leveraged context API fully
rinagobo Mar 24, 2024
eb7aa76
Cleaned the code
rinagobo Mar 24, 2024
c71f8bd
Cleaned the code
rinagobo Mar 24, 2024
59f0181
Commented out the functionality for opening the ProfileEditModal
rinagobo Mar 24, 2024
0aab2d2
new lock file after master merge
judeamos Mar 24, 2024
7199b44
Renamed files and folders related to EditProfileModal and created edi…
rinagobo Mar 24, 2024
efd6e2b
message
tiwarineelu59 Mar 28, 2024
807f731
Delete packages/tailwind-constructor/tailwind.css
rinagobo Mar 31, 2024
f9aedcd
Fixed conflicts
rinagobo Mar 31, 2024
b47963a
Fixed conflicts
rinagobo Mar 31, 2024
ec9add4
Fixed conflicts
rinagobo Mar 31, 2024
7f30dd3
Fixed conflicts
rinagobo Mar 31, 2024
2f74062
Fixed conflicts
rinagobo Mar 31, 2024
a32b94e
Fixed conflicts
rinagobo Mar 31, 2024
caeffec
Fixed conflicts
rinagobo Mar 31, 2024
499f953
1701 removed unused file
tiwarineelu59 Apr 1, 2024
83c379d
Merge pull request #1740 from dev-launchers/tiwarineelu59/nav-structu…
tiwarineelu59 Apr 1, 2024
1de8bda
Merge branch 'development/user-profile' into wimaan3/close-onboarding…
wimaan3 Apr 1, 2024
97a834b
Merge pull request #1638 from dev-launchers/rina/LaunchYourJourney
rinagobo Apr 2, 2024
9be89bc
Merge branch 'master' of https://github.com/dev-launchers/dev-launche…
judeamos Apr 7, 2024
ecb115d
Merge pull request #1712 from dev-launchers/rina/1430-EditProfileModa…
rinagobo Apr 7, 2024
5fc0140
Merge pull request #1731 from dev-launchers/wimaan3/close-onboarding-…
judeamos Apr 20, 2024
d20f1cf
Merge branch 'master' of https://github.com/dev-launchers/dev-launche…
judeamos Apr 20, 2024
8a6ce94
onboarding backend integration
judeamos Apr 20, 2024
1f52045
Merge pull request #1779 from dev-launchers/judeamos/code-refinement
judeamos Apr 20, 2024
887403c
quick code refinement
judeamos Apr 20, 2024
8bbfa47
Merge pull request #1780 from dev-launchers/judeamos/overview-profile…
judeamos Apr 21, 2024
2f57b1e
profilePicture/displayName_Backend_Integration
wimaan3 May 9, 2024
fc0409c
Updated UserDataContext.js userid "80" to "me"
wimaan3 May 11, 2024
0c32c9e
1704 sidebar design
tiwarineelu59 May 22, 2024
771ec6d
1704 sidebar menu design
tiwarineelu59 May 22, 2024
cd63c32
Merge pull request #1801 from dev-launchers/tiwarineelu59/nav-structu…
judeamos May 24, 2024
64c1efd
temp fix
judeamos May 24, 2024
6dc8e12
temp fix 2
judeamos May 24, 2024
b1e17e4
test 1
judeamos May 24, 2024
f2e0f97
test 2
judeamos May 24, 2024
e75db36
overview foundation
judeamos May 24, 2024
2ffa564
Merge branch 'development/user-profile' of https://github.com/dev-lau…
judeamos May 24, 2024
7d8df73
reverting back
judeamos May 24, 2024
0f69966
Merge pull request #1803 from dev-launchers/judeamos/overview-page-fo…
tiwarineelu59 May 25, 2024
dc1fccd
Merge branch 'development/user-profile' of https://github.com/dev-lau…
wimaan3 May 25, 2024
ef3f88b
Profile-Picture-Backend-Integration-FinalChanges
wimaan3 Jun 3, 2024
113c384
Update UserDataContext.js
wimaan3 Jun 3, 2024
7941ed2
Update OnboardingLandingPage.js
wimaan3 Jun 5, 2024
993fede
Merge pull request #1810 from dev-launchers/wimaan3/profile-picture-b…
wimaan3 Jun 13, 2024
6433a57
Merge branch 'master' of https://github.com/dev-launchers/dev-launche…
tiwarineelu59 Jun 19, 2024
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

This file was deleted.

111 changes: 7 additions & 104 deletions apps/user-profile/src/components/common/Card/Card.js
Original file line number Diff line number Diff line change
@@ -1,107 +1,10 @@
import React from "react";
import { useRouter } from "next/router";

import Link from "next/link";
import {
Container,
Content,
ImageHolder,
DataHolder,
Image,
Description,
SecondaryText,
AttachmentsContainer,
ActionsContainer,
TagsContainer,
} from "./StyledCard";
import Tag from "../Tag";

import RainbowBar from "../RainbowBar";

import CardTitle from "./CardTitle";
import Attachments from "./Attachments";

/**
* Props:
* - title:
* - description:
* - imageSrc:
* - size:
* - href:
* - onClick:
* - attachments:
* - textAlignment: changes text-alignment if passed otherwise it defaults to left text-alignment
* - imageHolderBackgroundColor: changes bgColor if passed otherwise it defaults to black bgColor
* - cardFlexDirection: changes flex-direction if existed otherwise delete flex-direction
*/
export default function Card(props) {
const router = useRouter();

import Header from './Header';
function Card({ title, children }) {
return (
<Container
style={props.style}
size={props.size}
key={props.i}
onClick={props.cardData.onClick}
>
{props.noImage ? "" :
<ImageHolder
size={props.size}
bgColor={props.cardData.imageHolderBackgroundColor}
>
{props.cardData.tags && (
<TagsContainer>
{props.cardData.tags.map((tag, i) => (
<Tag filled text={tag} key={i} />
))}
</TagsContainer>
)}
{props.isLinkingInside ? (
<Link href={`${router.pathname}/${props.cardData.href}`} passHref>
<a rel="noopener noreferrer">
<Image alt="" imageSrc={props.cardData.imageSrc} />
</a>
</Link>
) : (
<a
href={props.cardData.href}
target="_blank"
rel="noopener noreferrer"
>
<Image alt="" imageSrc={props.cardData.imageSrc} />
</a>
)}
</ImageHolder>
}

{props.size === "large" ? "" : (<RainbowBar height=".3rem" />)}

<Content
size={props.size}
textAlignment={props.cardData.textAlignment}
flexDirection={props.cardData.flexDirection}
>

<DataHolder size={props.size}>
<CardTitle
data={props.cardData}
isLinkingInside={props.isLinkingInside}
pathname={router.pathname}
/>
{props.cardData.secondaryText && (
<SecondaryText>{props.cardData.secondaryText}</SecondaryText>
)}
<Description>{props.cardData.description}</Description>
</DataHolder>
{props.cardData.attachments && (
<AttachmentsContainer>
<Attachments data={props.cardData.attachments} />
</AttachmentsContainer>
)}
{props.cardData.actions && (
<ActionsContainer>{props.cardData.actions}</ActionsContainer>
)}
</Content>
</Container>
<div className="flex flex-col shadow-lg w-full h-full bg-white">
<Header title={title} /> <div className="px-8 pb-10 pt-6">{children}</div>
</div>
);
}

export default Card;

This file was deleted.

17 changes: 17 additions & 0 deletions apps/user-profile/src/components/common/Card/Header/Header.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import { Typography } from '@devlaunchers/components/components/atoms';
import EditButton from './../../../common/EditButton';

function Header({ title, showEdit }) {
return title ? (
<div className="flex justify-between px-8 pt-5 pb-2 items-center border-b-2 border-[#f9f9f9]">
<Typography type="h3" className="m-0 p-0">
{title}
</Typography>
<EditButton />
</div>
) : (
<></>
);
}

export default Header;
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from './Header';
2 changes: 1 addition & 1 deletion apps/user-profile/src/components/common/Card/index.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export { default } from "./Card";
export { default } from './Card';
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from "react";
import Card from "../Card/Card";
import Card from "../OldCard/Card";
import { Collection, CollectionTitle } from "./StyledCardGroup";

export default function CardGroup(props) {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import cog from './../../../images/icons/outlined-cog.svg';
import { Typography } from '@devlaunchers/components/components/atoms';

function EditButton() {
return (
<div className="flex gap-2">
<img src={cog} className="w-4" />
<Typography type="p">Edit</Typography>
</div>
);
}

export default EditButton;
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from './EditButton';
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import React, { useState } from "react";
import React, { useState } from 'react';
import {
AttachmentLink,
AttachmentLinkContainer,
AttachmentImg,
AttachmentImgContainer,
} from "./StyledAttachments";
} from './StyledAttachments';

export default function Attachments(props) {
const [showAttachment, setShowAttachment] = useState(false);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import styled from "styled-components";
import styled from 'styled-components';

export const AttachmentLink = styled.a.attrs(() => ({
target: "_blank",
rel: "noopener noreferrer",
target: '_blank',
rel: 'noopener noreferrer',
}))`
color: lightslategray;
font-size: medium;
Expand All @@ -23,8 +23,8 @@ export const AttachmentLinkContainer = styled.div`
`;

export const AttachmentImg = styled.img.attrs(() => ({
src: "images/Attachment.png?webp",
alt: "attachment-icon",
src: 'images/Attachment.png?webp',
alt: 'attachment-icon',
}))`
width: 5vh;
height: 5vh;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from './Attachments';
108 changes: 108 additions & 0 deletions apps/user-profile/src/components/common/OldCard/Card.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
import React from 'react';
import { useRouter } from 'next/router';

import Link from 'next/link';
import {
Container,
Content,
ImageHolder,
DataHolder,
Image,
Description,
SecondaryText,
AttachmentsContainer,
ActionsContainer,
TagsContainer,
} from './StyledCard';
import Tag from '../Tag';

import RainbowBar from '../RainbowBar';

import CardTitle from './CardTitle';
import Attachments from './Attachments';

/**
* Props:
* - title:
* - description:
* - imageSrc:
* - size:
* - href:
* - onClick:
* - attachments:
* - textAlignment: changes text-alignment if passed otherwise it defaults to left text-alignment
* - imageHolderBackgroundColor: changes bgColor if passed otherwise it defaults to black bgColor
* - cardFlexDirection: changes flex-direction if existed otherwise delete flex-direction
*/
export default function Card(props) {
const router = useRouter();

return (
<Container
style={props.style}
size={props.size}
key={props.i}
onClick={props.cardData.onClick}
>
{props.noImage ? (
''
) : (
<ImageHolder
size={props.size}
bgColor={props.cardData.imageHolderBackgroundColor}
>
{props.cardData.tags && (
<TagsContainer>
{props.cardData.tags.map((tag, i) => (
<Tag filled text={tag} key={i} />
))}
</TagsContainer>
)}
{props.isLinkingInside ? (
<Link href={`${router.pathname}/${props.cardData.href}`} passHref>
<a rel="noopener noreferrer">
<Image alt="" imageSrc={props.cardData.imageSrc} />
</a>
</Link>
) : (
<a
href={props.cardData.href}
target="_blank"
rel="noopener noreferrer"
>
<Image alt="" imageSrc={props.cardData.imageSrc} />
</a>
)}
</ImageHolder>
)}

{props.size === 'large' ? '' : <RainbowBar height=".3rem" />}

<Content
size={props.size}
textAlignment={props.cardData.textAlignment}
flexDirection={props.cardData.flexDirection}
>
<DataHolder size={props.size}>
<CardTitle
data={props.cardData}
isLinkingInside={props.isLinkingInside}
pathname={router.pathname}
/>
{props.cardData.secondaryText && (
<SecondaryText>{props.cardData.secondaryText}</SecondaryText>
)}
<Description>{props.cardData.description}</Description>
</DataHolder>
{props.cardData.attachments && (
<AttachmentsContainer>
<Attachments data={props.cardData.attachments} />
</AttachmentsContainer>
)}
{props.cardData.actions && (
<ActionsContainer>{props.cardData.actions}</ActionsContainer>
)}
</Content>
</Container>
);
}
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import Link from "next/link";
import Image from "next/image";
import React from "react";
import Link from 'next/link';
import Image from 'next/image';
import React from 'react';

import { Heading, Title } from "./StyledCardTitle";
import { Heading, Title } from './StyledCardTitle';

export default function CardTitle({
data,
Expand Down Expand Up @@ -36,7 +36,7 @@ export default function CardTitle({
alt="github"
height="32"
width="32"
src={"images/GitHub-Mark-Light-32px.png?webp"}
src={'images/GitHub-Mark-Light-32px.png?webp'}
/>
</a>
)}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
import styled from "styled-components";
import styled from 'styled-components';

export const Heading = styled.div`
display: flex;
align-items: flex-start;
width: 100%;
font-size: 1.4rem;
text-align: ${({ cardTitleAlignment }) => cardTitleAlignment || "left"};
font-size: ${({ cardTitleSize }) => cardTitleSize || "1.4rem"};
text-align: ${({ cardTitleAlignment }) => cardTitleAlignment || 'left'};
font-size: ${({ cardTitleSize }) => cardTitleSize || '1.4rem'};

${({ cardTitleUnderline }) => {
const { color, thickness, type } = cardTitleUnderline;
return `border-bottom: ${color || "#00000000"} ${thickness || "0.15rem"} ${
type || "solid"
return `border-bottom: ${color || '#00000000'} ${thickness || '0.15rem'} ${
type || 'solid'
};`;
}}
`;

export const Title = styled.a`
font-family: "Abel", sans-serif;
font-family: 'Abel', sans-serif;
color: black;
font-weight: bold;
flex: 1;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from './CardTitle';
Loading
Loading