-
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 #42 from Ninos-labs/feature/improve-ux
Feature/improve ux
- Loading branch information
Showing
167 changed files
with
651 additions
and
443 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,10 @@ | ||
import styled from 'styled-components'; | ||
|
||
const BoxTitleStyled = styled.h2` | ||
background-color: ${({ theme }) => theme.colors?.white}; | ||
background-color: inherit; | ||
font-size: ${({ theme }) => theme.fonts?.sizes?.subTitle}; | ||
top: 10rem; | ||
padding: 0 0 2rem; | ||
position: sticky; | ||
z-index: 1; | ||
@media screen and (min-width: ${({ theme }) => theme.size?.large}) { | ||
top: 0; | ||
} | ||
@media screen and (max-width: ${({ theme }) => theme.size?.small}) { | ||
top: 10rem; | ||
} | ||
`; | ||
|
||
export default BoxTitleStyled; |
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,23 @@ | ||
import styled from 'styled-components'; | ||
|
||
const StyledButton = styled.button` | ||
background-color: ${({ theme }) => theme.colors?.pastelGreen}; | ||
border: 1px solid ${({ theme }) => theme.colors?.black}; | ||
border-radius: ${({ theme }) => theme.radius?.small}; | ||
cursor: pointer; | ||
margin-top: 1rem; | ||
padding: 0.7rem 1rem; | ||
transform: translateX(0); | ||
transition: transform 0.3s; | ||
&:hover { | ||
transform: translateX(0.5rem); | ||
} | ||
&:active { | ||
color: ${({ theme }) => theme.colors?.blueZodiac}; | ||
transform: scale(1.1); | ||
} | ||
`; | ||
|
||
export default StyledButton; |
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,3 @@ | ||
import StyledButton from './button.styled'; | ||
|
||
export default StyledButton; |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,9 +1,10 @@ | ||
import Match from './match'; | ||
import Title from './title'; | ||
import Popup from './popup'; | ||
import * as Charts from './charts'; | ||
import HeaderStyled from './header'; | ||
import StyledButton from './button'; | ||
import MatchCounter from './matchCounter'; | ||
import ContentStyled from './content'; | ||
import BoxTitleStyled from './boxTitle'; | ||
|
||
export { Match, Title, Charts, HeaderStyled, MatchCounter, ContentStyled, BoxTitleStyled }; | ||
export { Match, Title, Popup, Charts, StyledButton, MatchCounter, ContentStyled, BoxTitleStyled }; |
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,3 @@ | ||
import Popup from './popup'; | ||
|
||
export default Popup; |
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,43 @@ | ||
import styled from 'styled-components'; | ||
|
||
const StyledPopup = styled.div` | ||
background-color: ${({ theme }) => theme.colors?.white}; | ||
border: 0.1rem solid ${({ theme }) => theme.colors?.blueZodiac}; | ||
border-radius: ${({ theme }) => theme.radius?.big}; | ||
bottom: -0.1rem; | ||
height: 420px; | ||
left: -0.1rem; | ||
right: -0.1rem; | ||
top: -0.1rem; | ||
margin: auto; | ||
max-width: 44rem; | ||
padding: 2rem; | ||
position: fixed; | ||
width: 80%; | ||
z-index: 2; | ||
header { | ||
align-items: center; | ||
display: flex; | ||
justify-content: space-between; | ||
margin-bottom: 1rem; | ||
position: sticky; | ||
top: 0; | ||
h2 { | ||
padding: 0; | ||
} | ||
button { | ||
margin-top: 0; | ||
} | ||
} | ||
& > div { | ||
box-sizing: border-box; | ||
height: 380px; | ||
overflow-y: hidden; | ||
} | ||
`; | ||
|
||
export default StyledPopup; |
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,19 @@ | ||
import Helmet from 'react-helmet'; | ||
import React, { Fragment } from 'react'; | ||
import { createPortal } from 'react-dom'; | ||
|
||
import StyledPopup from './popup.styled'; | ||
|
||
const Popup = ({ children }: any) => ( | ||
<Fragment> | ||
<Helmet> | ||
<body className="fixed" /> | ||
</Helmet> | ||
{createPortal( | ||
<StyledPopup>{children}</StyledPopup>, | ||
document.getElementById('modal-root') as any | ||
)} | ||
</Fragment> | ||
); | ||
|
||
export default Popup; |
Oops, something went wrong.