-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Styled components organization. (#77)
* Split loading overlay to other component. * Organize styles of landing page. * Organize styles of search result page. * Organize styles of ShareButton. * Organize styles of Navbar. * Organize styles of GetApp button.
- Loading branch information
Showing
16 changed files
with
405 additions
and
359 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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import Box from '@components/Box'; | ||
import { faCircleNotch } from '@fortawesome/free-solid-svg-icons'; | ||
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; | ||
import { FunctionComponent } from 'react'; | ||
|
||
const FullSizeLoading: FunctionComponent = () => { | ||
return ( | ||
<Box | ||
height="100%" | ||
display="flex" | ||
flexDirection="column" | ||
justifyContent="center" | ||
alignItems="center" | ||
> | ||
<FontAwesomeIcon icon={faCircleNotch} className="fa-spin" style={{ fontSize: 24 }} /> | ||
<Box mt="1rem">Loading...</Box> | ||
</Box> | ||
); | ||
}; | ||
|
||
export default FullSizeLoading; |
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,26 @@ | ||
import { breakpoints } from '@assets/themes/globalTheme'; | ||
import { Button } from 'antd'; | ||
import styled from 'styled-components'; | ||
import { GetAppProps } from '.'; | ||
|
||
export const PlatformBadge = styled.img` | ||
cursor: pointer; | ||
max-height: 5rem; | ||
& + & { | ||
margin: 1.5rem 0 0 0; | ||
} | ||
@media (min-width: ${breakpoints.md}) { | ||
max-height: 2.5rem; | ||
& + & { | ||
margin: 0 0 0 0.5rem; | ||
} | ||
} | ||
`; | ||
|
||
export const GetAppButton = styled(Button)<GetAppProps>` | ||
color: ${({ textcolor }) => | ||
textcolor === 'grey' ? 'var(--gray-7)' : 'var(--gray-1)'} !important; | ||
`; |
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,33 @@ | ||
import { breakpoints } from '@assets/themes/globalTheme'; | ||
import { Button } from 'antd'; | ||
import styled from 'styled-components'; | ||
|
||
export const NavbarWrapper = styled.header` | ||
padding: 1rem; | ||
display: flex; | ||
background-color: var(--primary-color); | ||
color: var(--gray-1); | ||
z-index: 100; | ||
box-shadow: 0px 0.25rem 0.25rem rgba(0, 0, 0, 0.3); | ||
`; | ||
|
||
export const Logo = styled.img` | ||
height: 2.5rem; | ||
margin: 0 0.5rem; | ||
cursor: pointer; | ||
`; | ||
|
||
export const Title = styled.span` | ||
font-size: 1.5rem; | ||
font-weight: 300; | ||
line-height: 1.5; | ||
display: none; | ||
@media (min-width: ${breakpoints.md}) { | ||
display: inline; | ||
} | ||
`; | ||
|
||
export const SearchButton = styled(Button)` | ||
color: var(--gray-1) !important; | ||
`; |
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.