generated from Code-4-Community/frontend-scaffold
-
Notifications
You must be signed in to change notification settings - Fork 3
Global style #9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Global style #9
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
b05eb43
added global style variables, removed instances of h and p tags, and …
willmullinthomas 93600c8
changed up some styles to include global variables, made colors const…
willmullinthomas d0f1963
made default background color white to match design docs
willmullinthomas da6102a
Merge branch 'master' into global-style
60be9de
newline
788cedf
changed (some) components I worked on to use styled components
willmullinthomas 3cdab6d
missed one
willmullinthomas 24428bc
prettier
willmullinthomas da361b6
weird travis build error with desctructured Typography
willmullinthomas 3109254
weird travis build error with desctructured Typography
willmullinthomas File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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,4 +1,23 @@ | ||
| @antd-blue: #1890ff; | ||
| @link-color: @antd-blue; | ||
| @primary-color: #1da57a; | ||
| @text-grey: #AFAEAE; | ||
| @header-grey: #F5F5F5; | ||
| @light-green: #9AC356; | ||
| @mid-green: #61802E; | ||
| @dark-green: #3A681A; | ||
| @black: #000000; | ||
| @white: #FFFFFF; | ||
| @body-background: @white; | ||
| @component-background: @white; | ||
| @font-family: 'IBM Plex Sans', sans-serif; | ||
| @heading-color: @mid-green; | ||
| @heading-color-secondary: @dark-green; | ||
| @text-color: @black; | ||
| @text-color-secondary: @mid-green; | ||
| @link-color: @mid-green; | ||
| @line-height-base: 2.15; | ||
| @font-size-base: 13px; | ||
| @font-weight-base: 400; | ||
| @layout-header-background: @header-grey; | ||
| @layout-body-background: @body-background; | ||
| @layout-header-color: @black; | ||
| @btn-primary-bg: @light-green; | ||
| @border-radius-base: 4px; |
This file contains hidden or 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,19 +1,23 @@ | ||
| const CracoAntDesignPlugin = require('craco-antd'); | ||
| process.env.BROWSER = "none"; | ||
| process.env.BROWSER = 'none'; | ||
| module.exports = { | ||
| plugins: [ | ||
| { | ||
| plugin: CracoAntDesignPlugin, | ||
| options: { | ||
| customizeTheme: { | ||
| }, | ||
| customizeTheme: {}, | ||
| }, | ||
| }, | ||
| ], | ||
| babel: { | ||
| presets: [], | ||
| plugins: [['babel-plugin-styled-components', { | ||
| namespace: 'scaffold', | ||
| }]], | ||
| plugins: [ | ||
| [ | ||
| 'babel-plugin-styled-components', | ||
| { | ||
| namespace: 'speak-for-the-trees', | ||
| }, | ||
| ], | ||
| ], | ||
| }, | ||
| }; |
This file contains hidden or 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,4 @@ | ||
| export const PRIMARY = '#1da57a'; | ||
| export const LINK = '#1890ff'; | ||
| export const BLACK = '#000000'; | ||
| export const TEXT_GREY = '#AFAEAE'; |
This file contains hidden or 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,41 @@ | ||
| import React from 'react'; | ||
| import { Typography } from 'antd'; | ||
| import { BLACK } from '../../colors'; | ||
| import styled from 'styled-components'; | ||
| import logo from '../../SFTTicon.png'; | ||
|
|
||
| const { Paragraph, Title } = Typography; | ||
|
|
||
| interface GreetingContainerProps { | ||
| readonly header: string; | ||
| readonly body: string; | ||
| } | ||
|
|
||
| const InfoContainer = styled.div` | ||
| padding: 70px 70px 20px; | ||
| height: 481px; | ||
| background: url(${logo}) no-repeat bottom right #d4edaa; | ||
| box-shadow: 1.58105px 3.16211px 6.32421px rgba(0, 0, 0, 0.09); | ||
| border-radius: 6.32421px; | ||
| min-width: 500px; | ||
| `; | ||
|
|
||
| const TextContainer = styled.div` | ||
| width: 380px; | ||
| `; | ||
|
|
||
| const GreetingContainer: React.FC<GreetingContainerProps> = ({ | ||
| header, | ||
| body, | ||
| }) => { | ||
| return ( | ||
| <InfoContainer> | ||
| <Title style={{ color: BLACK }}>{header}</Title> | ||
| <TextContainer> | ||
| <Paragraph>{body}</Paragraph> | ||
| </TextContainer> | ||
| </InfoContainer> | ||
| ); | ||
| }; | ||
|
|
||
| export default GreetingContainer; |
This file contains hidden or 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 contains hidden or 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,7 +1,3 @@ | ||
| .dark-green { | ||
| color: #61802e; | ||
| } | ||
|
|
||
| .tree-stats-container { | ||
| margin-top: 35px; | ||
| } | ||
|
|
||
4 changes: 0 additions & 4 deletions
4
src/components/map-page-components/map-sidebar/map-sidebar.less
This file contains hidden or 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,7 +1,3 @@ | ||
| .title { | ||
| color: #61802e; | ||
| } | ||
|
|
||
| .sidebar-content-container { | ||
| display: block; | ||
| padding: 94px 42px; | ||
|
|
||
This file contains hidden or 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 hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔥