-
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.
Merge pull request #159 from ajeetchaulagain/code-cleanup-refactor-2
Code Cleanup and Refactor
- Loading branch information
Showing
41 changed files
with
219 additions
and
191 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,21 @@ | ||
import styled from 'styled-components'; | ||
import { Button as FormButton } from '../form/styles'; | ||
import { mb } from 'styled-components-spacing'; | ||
|
||
export const Container = styled.div` | ||
${mb(6)} | ||
`; | ||
|
||
export const Button = styled(FormButton)` | ||
width: 90px; | ||
`; | ||
|
||
export const StyledForm = styled.form` | ||
display: flex; | ||
flex-direction: column; | ||
`; | ||
|
||
export const FormRow = styled.div` | ||
display: flex; | ||
flex-direction: column; | ||
`; |
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,44 @@ | ||
import styled from 'styled-components'; | ||
import { p, my } from 'styled-components-spacing'; | ||
import { Paragraph } from '../paragraph/Paragraph'; | ||
import { mb, mr } from 'styled-components-spacing'; | ||
|
||
export const Container = styled.div` | ||
display: flex; | ||
align-items: center; | ||
background-color: ${({ theme }) => theme.colors.tertiaryBackground}; | ||
border-radius: ${({ theme }) => theme.borderRadius.base}; | ||
${p(4)}; | ||
${my(5)}; | ||
a { | ||
font-family: ${({ theme }) => theme.fonts.body}; | ||
color: ${({ theme }) => theme.colors.brandPrimary}; | ||
text-decoration: underline; | ||
font-weight: ${({ theme }) => theme.fontWeights[6]}; | ||
:hover { | ||
text-decoration: none; | ||
} | ||
} | ||
`; | ||
|
||
export const StyledParagraph = styled(Paragraph)` | ||
${mb(0)}; | ||
line-height: 1.5; | ||
font-size: ${({ theme }) => theme.fontSizes.small}; | ||
font-weight: ${({ theme }) => theme.fontWeights[4]}; | ||
`; | ||
|
||
export const IconWrapper = styled.div` | ||
font-size: 3rem; | ||
display: flex; | ||
color: ${({ theme }) => theme.colors.brandPrimary}; | ||
svg { | ||
display: inline-block; | ||
${mr(4)}; | ||
} | ||
`; | ||
|
||
export const ContentWrapper = styled.div` | ||
width: 100%; | ||
`; |
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
Oops, something went wrong.