-
Notifications
You must be signed in to change notification settings - Fork 0
TDA 5 | Сreated First Version #1
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 11 commits
32a533f
bcf4c41
3d0bf51
23925e4
0fa4d00
e2815d6
d64af4a
8cd607c
52fef2f
f1ca818
dff13e4
279637d
682ed77
9b2faf1
4d1655b
31747b4
12dd9a4
2d63faf
06c90e8
d3c3bae
2fc7b76
d463d5a
389a4b7
8cbcfb0
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| # editorconfig.org | ||
| root = true | ||
|
|
||
| [*] | ||
| indent_style = tab | ||
| indent_size = 4 | ||
| end_of_line = lf | ||
| charset = utf-8 | ||
| tab_width = 4 | ||
| trim_trailing_whitespace = true | ||
| insert_final_newline = false | ||
|
|
||
| [*.md] | ||
| trim_trailing_whitespace = false |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| module.exports = { | ||
| extends: 'react-app', | ||
| rules: { | ||
| quotes: ['error', 'single'], | ||
| 'max-len': [ | ||
| 'error', | ||
| { | ||
| ignorePattern: '^import [^,]+ from |^export | implements', | ||
| code: 150, | ||
| }, | ||
| ], | ||
| 'react/jsx-sort-props': ['error', { 'shorthandFirst': true, 'noSortAlphabetically': true }], | ||
| 'simple-import-sort/imports': 'warn', | ||
| 'comma-dangle': ['error', 'always-multiline'], | ||
| '@typescript-eslint/indent': ['error', 'tab', { SwitchCase: 1 }], | ||
| 'spaced-comment': [ | ||
| 'error', | ||
| 'always', | ||
| { 'markers': ['/'] }, | ||
| ], | ||
| 'no-trailing-spaces': 'error', | ||
| semi: ['error', 'always'], | ||
| 'no-shadow': 'off', | ||
| }, | ||
| plugins: [ | ||
| 'simple-import-sort', | ||
| ], | ||
| }; |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -17,6 +17,7 @@ | |
| .env.development.local | ||
| .env.test.local | ||
| .env.production.local | ||
| .env | ||
|
|
||
| npm-debug.log* | ||
| yarn-debug.log* | ||
|
|
||
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,40 +1,55 @@ | ||
| { | ||
| "name": "todo", | ||
| "version": "0.1.0", | ||
| "private": true, | ||
| "dependencies": { | ||
| "@testing-library/jest-dom": "^5.16.1", | ||
| "@testing-library/react": "^11.2.7", | ||
| "@testing-library/user-event": "^12.8.3", | ||
| "react": "^17.0.2", | ||
| "react-dom": "^17.0.2", | ||
| "react-router-dom": "^6.0.2", | ||
| "react-scripts": "4.0.3", | ||
| "styled-components": "^5.3.3", | ||
| "web-vitals": "^1.1.2" | ||
| }, | ||
| "scripts": { | ||
| "start": "react-scripts start", | ||
| "build": "react-scripts build", | ||
| "test": "react-scripts test", | ||
| "eject": "react-scripts eject" | ||
| }, | ||
| "eslintConfig": { | ||
| "extends": [ | ||
| "react-app", | ||
| "react-app/jest" | ||
| ] | ||
| }, | ||
| "browserslist": { | ||
| "production": [ | ||
| ">0.2%", | ||
| "not dead", | ||
| "not op_mini all" | ||
| ], | ||
| "development": [ | ||
| "last 1 chrome version", | ||
| "last 1 firefox version", | ||
| "last 1 safari version" | ||
| ] | ||
| } | ||
| "name": "todo", | ||
| "version": "0.1.0", | ||
| "private": true, | ||
| "dependencies": { | ||
| "@reduxjs/toolkit": "^1.8.1", | ||
| "@testing-library/jest-dom": "^5.16.1", | ||
| "@testing-library/react": "^11.2.7", | ||
| "@testing-library/user-event": "^12.8.3", | ||
| "@types/jest": "^27.4.1", | ||
| "@types/node": "^17.0.29", | ||
| "@types/react": "^18.0.8", | ||
| "axios": "^0.27.1", | ||
| "firebase": "^9.8.0", | ||
| "react": "^17.0.2", | ||
| "react-dom": "^17.0.2", | ||
| "react-redux": "^8.0.1", | ||
| "react-router-dom": "^6.3.0", | ||
| "react-scripts": "4.0.3", | ||
| "styled-components": "^5.3.3", | ||
| "typescript": "^4.6.3", | ||
| "web-vitals": "^1.1.2" | ||
| }, | ||
| "scripts": { | ||
| "start": "react-scripts start", | ||
| "build": "react-scripts build", | ||
| "test": "react-scripts test", | ||
| "eject": "react-scripts eject", | ||
| "lint": "eslint -c .eslintrc.js --ext .ts,.tsx src/ --max-warnings=0" | ||
| }, | ||
| "eslintConfig": { | ||
| "extends": [ | ||
| "react-app", | ||
| "react-app/jest" | ||
| ] | ||
| }, | ||
| "browserslist": { | ||
| "production": [ | ||
| ">0.2%", | ||
| "not dead", | ||
| "not op_mini all" | ||
| ], | ||
| "development": [ | ||
| "last 1 chrome version", | ||
| "last 1 firefox version", | ||
| "last 1 safari version" | ||
| ] | ||
| }, | ||
| "devDependencies": { | ||
| "@types/react-dom": "^18.0.0", | ||
| "@types/react-router-dom": "^5.3.3", | ||
| "@types/styled-components": "^5.1.25", | ||
| "eslint-plugin-simple-import-sort": "^7.0.0" | ||
| } | ||
| } |
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| /// <reference types="react-scripts" /> |
This file was deleted.
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| import styled from 'styled-components'; | ||
|
|
||
| export const Wrapper = styled.div` | ||
| width: 100vw; | ||
| max-width: 100%; | ||
| display: flex; | ||
| justify-content: center; | ||
| align-items: center; | ||
| `; | ||
|
|
||
| export const Root = styled.div` | ||
| width: 50vw; | ||
| min-height: 50vh; | ||
| border: 1px solid #000; | ||
| border-radius: 10px; | ||
| display: flex; | ||
| justify-content: center; | ||
| flex-direction: column; | ||
| align-items: center; | ||
| `; | ||
|
|
||
| export const Title = styled.h1` | ||
| font-size: 20px; | ||
| font-weight: 500; | ||
| margin-top: 1rem; | ||
| `; | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| import { FC } from 'react'; | ||
|
|
||
| import { ReactComponent as Logo } from '../../static/img/logo.svg'; | ||
| import { Root, Title, Wrapper } from './StyledAuth'; | ||
| import { IProps } from './types'; | ||
|
|
||
| const AuthLayout: FC<IProps> = ({ children }) => { | ||
| return ( | ||
|
Comment on lines
+14
to
+17
Collaborator
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. a lot of spaces |
||
| <Wrapper> | ||
| <Root> | ||
| <Logo /> | ||
| <Title>TODO APP</Title> | ||
| {children} | ||
| </Root> | ||
| </Wrapper> | ||
| ); | ||
| }; | ||
| export default AuthLayout; | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| import { ReactNode } from 'react'; | ||
|
|
||
| export interface IProps { | ||
| children: ReactNode | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| import styled from 'styled-components'; | ||
|
|
||
| export const StyledButton = styled.button` | ||
| width: ${props => props.width || 'auto'}; | ||
| color: ${props => props.color} ; | ||
| border: 1px solid #000000; | ||
|
DanilWeda marked this conversation as resolved.
Outdated
|
||
| box-sizing: border-box; | ||
| border-radius: 5px; | ||
| font-size: 18px; | ||
| margin-bottom: 1rem; | ||
| padding: 1rem 2.5rem; | ||
| background-color: transparent; | ||
| cursor: pointer; | ||
| min-width: 12rem; | ||
| transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1); | ||
|
|
||
| &:hover { | ||
| transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1); | ||
| background-color: #C9EEFF; | ||
| } | ||
| `; | ||
Uh oh!
There was an error while loading. Please reload this page.