-
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 #19 from Platzi-Master-C8/develop
Merge from develop to main
- Loading branch information
Showing
20 changed files
with
214 additions
and
43 deletions.
There are no files selected for viewing
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
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,100 @@ | ||
import React, { useState } from 'react'; | ||
|
||
import Link from '@mui/material/Link'; | ||
import MenuList from '@mui/material/MenuList'; | ||
import MenuItem from '@mui/material/MenuItem'; | ||
import Typography from '@mui/material/Typography'; | ||
import ListItemIcon from '@mui/material/ListItemIcon'; | ||
import Avatar from '@mui/material/Avatar'; | ||
import IconButton from '@mui/material/IconButton'; | ||
|
||
import { Currency, BriefCase, Blog, Menu, Close } from '@master-c8/icons'; | ||
import { COLORS } from '@master-c8/theme'; | ||
|
||
import Header from './Header'; | ||
|
||
import { WrapperMenu } from './Header.styles'; | ||
|
||
const HeaderJob = () => { | ||
const [open, setOpen] = useState(false); | ||
|
||
const handleOpen = () => setOpen(!open); | ||
|
||
return ( | ||
<Header isLogged> | ||
<IconButton | ||
aria-label="menu" | ||
sx={{ display: { sm: 'inherit', md: 'none' } }} | ||
onClick={handleOpen} | ||
> | ||
{!open ? <Menu color="secondary" size="large" /> : <Close color="secondary" size="large" />} | ||
</IconButton> | ||
<WrapperMenu open={open}> | ||
<MenuList sx={{ display: { sm: 'initial', md: 'flex' } }}> | ||
<MenuItem> | ||
<Link | ||
sx={{ | ||
flexDirection: { sm: 'row', md: 'column' }, | ||
alignItems: 'center', | ||
gap: '5px', | ||
display: 'flex', | ||
textDecoration: 'none', | ||
}} | ||
href="https://platzi-master-c8.github.io/gethired-jobplacement-salaries-frontend/" | ||
> | ||
<ListItemIcon> | ||
<Currency color="secondary" /> | ||
</ListItemIcon> | ||
<Typography color="secondary" sx={{ fontSize: { sm: '16px', md: '13px' } }}> | ||
Salary Calculator | ||
</Typography> | ||
</Link> | ||
</MenuItem> | ||
<MenuItem> | ||
<Link | ||
sx={{ | ||
flexDirection: { sm: 'row', md: 'column' }, | ||
alignItems: 'center', | ||
gap: '5px', | ||
display: 'flex', | ||
textDecoration: 'none', | ||
}} | ||
href="https://platzi-master-c8.github.io/gethired-jobplacement-ratings/" | ||
> | ||
<ListItemIcon sx={{ color: '#000' }}> | ||
<Blog /> | ||
</ListItemIcon> | ||
<Typography color="text" sx={{ fontSize: { sm: '16px', md: '13px' }, color: '#000' }}> | ||
Raitings | ||
</Typography> | ||
</Link> | ||
</MenuItem> | ||
<MenuItem> | ||
<Link | ||
sx={{ | ||
flexDirection: { sm: 'row', md: 'column' }, | ||
alignItems: 'center', | ||
gap: '5px', | ||
display: 'flex', | ||
textDecoration: 'none', | ||
}} | ||
href="https://platzi-master-c8.github.io/gethired-jobplacement-enterprise-Frontend/" | ||
> | ||
<ListItemIcon sx={{ color: '#000' }}> | ||
<BriefCase /> | ||
</ListItemIcon> | ||
<Typography color="text" sx={{ fontSize: { sm: '16px', md: '13px' }, color: '#000' }}> | ||
Company | ||
</Typography> | ||
</Link> | ||
</MenuItem> | ||
<MenuItem sx={{ display: { xs: 'none', md: 'initial' } }}> | ||
<Avatar sx={{ bgcolor: COLORS.secondary }}>J</Avatar> | ||
</MenuItem> | ||
</MenuList> | ||
</WrapperMenu> | ||
</Header> | ||
); | ||
}; | ||
|
||
export default HeaderJob; |
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 |
---|---|---|
@@ -1 +1,2 @@ | ||
export { default } from './Header'; | ||
export { default } from './Header'; | ||
export { default as HeaderJob } from './HeaderJob'; |
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 |
---|---|---|
@@ -1,2 +1,3 @@ | ||
export { default as Logotype } from './Logotype'; | ||
export { default as Header } from './Header'; | ||
export { default as HeaderJob } from './Header/HeaderJob'; |
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,5 @@ | ||
import { HTMLProps } from 'react'; | ||
|
||
export interface CloseProps extends HTMLProps<SVGAElement> {} | ||
|
||
export default function Close(props: CloseProps): JSX.Element; |
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,12 @@ | ||
import { forwardRef } from 'react'; | ||
import { SvgIcon } from '@mui/material'; | ||
|
||
const Close = forwardRef(function Close(props, ref) { | ||
return ( | ||
<SvgIcon {...props} {...ref}> | ||
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M6 18L18 6M6 6l12 12" /> | ||
</SvgIcon> | ||
); | ||
}); | ||
|
||
export default Close; |
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,13 @@ | ||
import { render } from '@testing-library/react'; | ||
import Close from './Close'; | ||
|
||
describe('@icons/Close', () => { | ||
it('Given a normal call it should render properly', () => { | ||
// arrange | ||
const { getByTitle } = render(<Close title="Close" />); | ||
// act | ||
const icon = getByTitle(/Close/i); | ||
// assert | ||
expect(icon).toBeInTheDocument(); | ||
}); | ||
}); |
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,2 @@ | ||
export { default } from './Close'; | ||
export * from './Close'; |
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 @@ | ||
export { default } from './Close'; |
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
Oops, something went wrong.