-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from Mildred14/ms-work-experience-info
Work Experience Content
- Loading branch information
Showing
13 changed files
with
200 additions
and
7 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
import React from "react"; | ||
import './WorkExperience.scss' | ||
import salesloftLogo from '../../assets/images/salesloft.png' | ||
import roverpassLogo from '../../assets/images/roverpass.png' | ||
import micheladaLogo from '../../assets/images/michelada.jpeg' | ||
|
||
export const WorkExperience = () => { | ||
const experiences = [ | ||
{ name: "Salesloft", | ||
period: "2024-2021", | ||
img: salesloftLogo, | ||
description: "A workflow platform for seller teams to drive more revenue, make forecasts, and close deals with buyers", | ||
jobTitle: 'Software Engineer', | ||
link: 'https://www.salesloft.com/' | ||
}, | ||
{ name: "Roverpass", | ||
period: "2021-2019", | ||
img: roverpassLogo, | ||
description: "Web application to make reservations for camprounds RV located in US", | ||
jobTitle: 'Jr. Software Engineer', | ||
link: 'https://www.roverpass.com/' | ||
}, | ||
{ name: "michelada.io", | ||
period: "2019-2018", | ||
img: micheladaLogo, | ||
description: "Software development consultant", | ||
jobTitle: 'Apprentice', | ||
link: 'https://www.michelada.io/' | ||
}, | ||
] | ||
|
||
const displayExperience = () => { | ||
return experiences.map((experience) => { | ||
return ( | ||
<a href={experience.link} target="_blank" rel="noopener" className="work-experience--card"> | ||
<div className="work-experience--img"> | ||
<img src={experience?.img}/> | ||
</div> | ||
<div className="content"> | ||
<p className="period">{experience.period}</p> | ||
<p className="company-name">{experience.name}</p> | ||
<p className="job-title">{experience.jobTitle}</p> | ||
<p className="description">{experience.description}</p> | ||
</div> | ||
</a> | ||
) | ||
}) | ||
} | ||
|
||
return ( | ||
<div className="work-experience--wrap"> | ||
{displayExperience()} | ||
<h2 className="github">No worries, there's more in <a href="https://github.com/Mildred14" target="_blank" rel="noopener" className="github-link">GitHub</a></h2> | ||
</div> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
@use '../../assets/styles/utilities'; | ||
|
||
.work-experience--wrap { | ||
display: flex; | ||
flex-direction: column; | ||
width: 100%; | ||
align-items: center; | ||
|
||
> .work-experience--card { | ||
box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px; | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
width: 280px; | ||
padding: 20px; | ||
border-radius: 10px; | ||
margin-bottom: 20px; | ||
text-decoration: none; | ||
&:hover, :visited, :active { | ||
text-decoration: none; | ||
} | ||
> .work-experience--img { | ||
text-align: center; | ||
width: 280px; | ||
> img { | ||
border-radius: 10px; | ||
width: 100%; | ||
} | ||
} | ||
|
||
> .content { | ||
text-align: left; | ||
width: 100%; | ||
color: utilities.$black; | ||
> .period { | ||
font-family: Arial, Helvetica, sans-serif; | ||
font-size: 14px; | ||
margin: 0; | ||
margin-top: 10px; | ||
} | ||
> .company-name { | ||
font-family: utilities.$secondary-font; | ||
font-size: 24px; | ||
margin: 0; | ||
} | ||
|
||
> .description { | ||
margin: 0; | ||
font-size: 13px; | ||
color: utilities.$gray; | ||
} | ||
|
||
> .job-title{ | ||
font-size: 12px; | ||
margin: 0; | ||
margin-bottom: 10px; | ||
} | ||
} | ||
} | ||
> .github { | ||
font-family: utilities.$secondary-font; | ||
margin: auto; | ||
font-weight: 100; | ||
& > .github-link { | ||
color: utilities.$blue; | ||
text-decoration: none; | ||
} | ||
} | ||
@media (min-width: utilities.$layout-breakpoint-desktop) { | ||
align-items: baseline; | ||
> .work-experience--card { | ||
width: 100%; | ||
align-items: flex-start; | ||
flex-direction: row; | ||
max-width: -webkit-fill-available; | ||
> .work-experience--img { | ||
width: 150px; | ||
margin-right: 20px; | ||
} | ||
> .content { | ||
overflow: hidden; | ||
} | ||
} | ||
} | ||
} | ||
|
||
.work-experience--card:hover { | ||
box-shadow: rgba(50, 50, 93, 0.25) 0px 2px 5px -1px, rgba(0, 0, 0, 0.3) 0px 1px 3px -1px; | ||
} |
21 changes: 21 additions & 0 deletions
21
src/components/WorkExperience/__test__/WorkExperience.test.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import React from 'react' | ||
import { screen, render } from '@testing-library/react' | ||
import { WorkExperience } from "../WorkExperience"; | ||
|
||
test('should display experiences', () => { | ||
render(<WorkExperience />) | ||
|
||
const salesloft = screen.getByText("Salesloft") | ||
const roverpass = screen.getByText("Roverpass") | ||
const michelada = screen.getByText("michelada.io") | ||
expect(salesloft).toBeInTheDocument(); | ||
expect(roverpass).toBeInTheDocument(); | ||
expect(michelada).toBeInTheDocument(); | ||
}) | ||
|
||
test('should redirect to Github', () => { | ||
render(<WorkExperience />) | ||
|
||
const salesloft = screen.getByText("GitHub") | ||
expect(salesloft).toHaveAttribute('href', 'https://github.com/Mildred14' ) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters