-
Notifications
You must be signed in to change notification settings - Fork 74
Daniela López. 1st challenge #28
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| // import './global.css'; | ||
| // import Header from '../src/pages/Header/Header'; | ||
| // import Home from './pages/Home/Layout/Layout'; | ||
| // import 'antd/dist/antd.css' | ||
|
|
||
| // function App() { | ||
| // return ( | ||
| // <div> | ||
| // <Header/> | ||
| // <Home/> | ||
| // </div> | ||
| // ); | ||
| // } | ||
|
|
||
| // export default App; | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| import styled from 'styled-components'; | ||
| import { White } from '../../constants/Colors'; | ||
|
|
||
| const LayoutGeneral = styled.div` | ||
| display: flex; | ||
| background-color: ${White}; | ||
| width: 100%; | ||
| height: auto; | ||
| flex-direction: column; | ||
| align-items: center; | ||
| & > Link { | ||
| color: red; | ||
| } | ||
| `; | ||
|
|
||
| export { LayoutGeneral }; | ||
| /* .container { | ||
| width: 100vw; | ||
| height: 100vh; | ||
| display: flex; | ||
| flex-direction: column; | ||
| justify-content: center; | ||
| align-items: center; | ||
| margin-top: -3rem; | ||
| } */ | ||
|
Comment on lines
+17
to
+25
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same here, remove unused comments. |
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,9 +1,8 @@ | ||
| import React from 'react'; | ||
|
|
||
| import './Layout.styles.css'; | ||
| import { LayoutGeneral } from './Layout.Style'; | ||
|
|
||
| function Layout({ children }) { | ||
| return <main className="container">{children}</main>; | ||
| return <LayoutGeneral>{children}</LayoutGeneral>; | ||
| } | ||
|
|
||
| export default Layout; |
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| // Light mode Colors | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What about creating themes instead, something like: const themes = {
dark: {
primary: ...
},
light: {
primary: ...
}
}Then you can re-use this them among all your components and styled components |
||
| export const White = '#F2F2F2'; | ||
| export const GrayLight = '#BDBFBF'; | ||
| export const GrayLight2 = '#E4E4E4'; | ||
| export const GrayMed = '#595959'; | ||
| export const Red = '#D90404'; | ||
| export const DarkRed = '#590A0A'; | ||
|
|
||
| // Dark mode Colors | ||
| export const Wine = '#2E0012'; | ||
| export const Cherry = '#4F0E00'; | ||
| export const DarkCherry = '#2E0012'; | ||
| export const DarkGray = '11000A'; | ||
| export const Magenta = '#750027'; | ||
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.
Remove the file if it is no needed