diff --git a/.gitignore b/.gitignore index 90a51d0..38046fd 100644 --- a/.gitignore +++ b/.gitignore @@ -18,3 +18,13 @@ npm-debug.log* .firebase.json .vercel + +# OS generated files # +###################### +.DS_Store +.DS_Store? +._* +.Spotlight-V100 +.Trashes +ehthumbs.db +Thumbs.db diff --git a/README.md b/README.md index 771ec52..ce70ab1 100644 --- a/README.md +++ b/README.md @@ -15,6 +15,7 @@ This project is a simplified front end clone of Netflix. It was created with Rea - [x] Migrate to Typescript - [ ] Implement dynamic code splitting with dynamic imports - [ ] Setup storybook +- [ ] Implement internationalization with react-i18next ### Tools used diff --git a/src/components/Button/Button.tsx b/src/components/Button/Button.tsx index 07de8aa..e8cc016 100644 --- a/src/components/Button/Button.tsx +++ b/src/components/Button/Button.tsx @@ -3,6 +3,7 @@ import './button.scss' export enum ButtonType { Primary, Secondary, + IconRound, } interface IButton { diff --git a/src/components/Button/__tests__/Button.stories.tsx b/src/components/Button/__tests__/Button.stories.tsx index 3912dc4..0ac7bde 100644 --- a/src/components/Button/__tests__/Button.stories.tsx +++ b/src/components/Button/__tests__/Button.stories.tsx @@ -54,3 +54,9 @@ SecondaryWithIcon.args = { buttonType: ButtonType.Secondary, Icon: , } + +export const IconRound = Template.bind({}) +IconRound.args = { + ButtonType: ButtonType.IconRound, + Icon: , +} diff --git a/src/components/Button/button.scss b/src/components/Button/button.scss index a2c8190..9078878 100644 --- a/src/components/Button/button.scss +++ b/src/components/Button/button.scss @@ -75,5 +75,37 @@ &.Secondary { background-color: rgba(109, 109, 110, 0.7); color: #fff; + + &:not(:disabled):hover { + background-color: rgba(109, 109, 110, 0.4); + } + + &:not(:disabled):active { + background-color: rgba(109, 109, 110, 0.4); + color: rgba(255, 255, 255, 0.7); + } + + &:not(:disabled):focus::before { + box-sizing: content-box; + content: ''; + display: block; + height: 100%; + width: 100%; + border: 2px solid white; + border-radius: 8px; + padding: 2px; + position: absolute; + left: -4px; + top: -4px; + } + } + + &.IconRound { + background-color: rgba(42, 42, 42, 0.6); + border-color: hsla(0, 0%, 100%, 0.5); + border-width: 2px; + & > * { + fill: #fff; + } } } diff --git a/src/components/Header.tsx b/src/components/Header.tsx index f344827..9d56686 100644 --- a/src/components/Header.tsx +++ b/src/components/Header.tsx @@ -29,13 +29,13 @@ const Header = ({ name, overview }: IHeader) => { url='https://vimeo.com/384025132' />

{name}

+