Skip to content

Commit

Permalink
Merge pull request #1325 from dev-launchers/rina/new1075-import-SVG-f…
Browse files Browse the repository at this point in the history
…iles

rina/new1075-import-SVG-files
  • Loading branch information
rinagobo committed Aug 13, 2023
2 parents 63de68c + edba9b0 commit fa561ac
Show file tree
Hide file tree
Showing 7 changed files with 66 additions and 23 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Typography } from "@devlaunchers/components/components/atoms";
import RoleCard from "./RoleCard/RoleCard.js";
import RoleCard from "../../RoleCard/RoleCard.js";
import { PageThereeContainer, ThreeRoleCards } from "./StyledPageThree.js";

export default function PageThree(){
Expand All @@ -9,19 +9,19 @@ export default function PageThree(){
<Typography type="subtitle">We'll use this to recommend open source projects for you to work on.</Typography>
<ThreeRoleCards>
<RoleCard
iconImg="Onboarding"
iconImg="Developer"
title="Developer"
subtitle="You’re here to work on our codebase"
theme="theme1"
/>
<RoleCard
iconImg="Onboarding"
iconImg="UX"
title="UX Designer"
subtitle="You’re here to make our platform user friendly"
theme="theme2"
/>
<RoleCard
iconImg="Onboarding"
iconImg="Other"
title=" Other"
subtitle="You’re a surprise!"
theme="theme3"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
import styled from "styled-components";

export const PageThereeContainer = styled.div`
padding: 10%;
text-align: center;
`

export const ThreeRoleCards = styled.div`
padding-left: 5%;
padding-right: 5%;
display: flex;
flex-direction: row;
`
Expand Down
Original file line number Diff line number Diff line change
@@ -1,25 +1,32 @@
import styled from "styled-components";
import React from 'react';
import juniorExperienceSvg from '../../../../images/junior-experience.svg';
import midExperienceSvg from '../../../../images/mid-experience.svg'
import onboardingFoldersSvg from '../../../../images/onboarding-folders.svg';
import seniorExperienceSvg from '../../../../images/senior-experience.svg'
import userProfileSvg from '../../../../images/user-profile.svg';
import Developer from '../../../.././images/Onboarding/RoleCard/developer.svg';
import UX from '../../../.././images/Onboarding/RoleCard/ux-ui.svg';
import Other from '../../../.././images/Onboarding/RoleCard/other.svg';

export const IconImg = ({iconImg}) => {
switch (iconImg) {
case 'Junior':
return <img src={juniorExperienceSvg}/>
case 'Mid-Level':
return <img src={midExperienceSvg}/>
case 'Senior':
return <img src={seniorExperienceSvg}/>
case 'Onboarding':
return <img src={onboardingFoldersSvg}/>
case 'Developer':
return (
<img src={Developer}/>
)

case 'UX':
return (
<img src={UX}/>
)

case 'Other':
return (
<img src={Other}/>
)

default:
return <img src={userProfileSvg} />
}
} ;
return (
<img src={Developer} />
)
}
};

export const RoleCardContainer = styled.div`
margin: 50px 10px 0px;
Expand All @@ -42,7 +49,11 @@ export const RoleCardContainer = styled.div`
`;

export const IconWrapper = styled.div`
width: 50%;
width: 100%;
img {
width: 50px;
height: 50px;
};
`;


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ import Modal from "react-modal";
import OnboardingCard from "./OnboardingCard/OnboardingCard.js";
import PlatformOnboarding from "./PlatformOnboarding/PlatformOnboarding";
import PageOne from "./PlatformOnboarding/PageOne";
import PageThree from "./PlatformOnboarding/PageThree";
import Typography from "@devlaunchers/components/components/atoms/Typography";
import LogoMonogram from '../../../images/logo-monogram.png'
import LogoMonogram from "../../../images/logo-monogram.png"
import { ModalContainer, userUnboardingModalStyle, ModalHeader, ModalBody } from "./StyledUserOnboardingModal";

Modal.setAppElement("#__next");
Expand Down Expand Up @@ -48,7 +49,8 @@ export default function UserOnboardingModal({ isOpen }) {
{/*<PlatformOnboarding/> (stepper) */}

{/* <PageOne name="any name"/> */}


{/* <PageThree /> */}
</ModalBody>
</ModalContainer>
</Modal>
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions apps/user-profile/src/images/Onboarding/RoleCard/other.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit fa561ac

Please sign in to comment.