Skip to content
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

[Front-end - Do Le Hoang Gia Bao] #276

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
initial commit
  • Loading branch information
gbkelvin committed May 17, 2022
commit fb19c2f5086b35539adf43e8476e9a623fee6eea
41,999 changes: 41,999 additions & 0 deletions package-lock.json

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,12 @@
"@types/react-dom": "^16.9.0",
"axios": "^0.19.2",
"cross-env": "^7.0.2",
"moment": "^2.29.3",
"react": "^16.13.1",
"react-datepicker": "^4.7.0",
"react-datetime-picker": "^3.5.0",
"react-dom": "^16.13.1",
"react-icons": "^4.3.1",
"react-scripts": "4.0.3",
"shortid": "^2.2.15",
"typescript": "4.5.3"
Expand Down Expand Up @@ -39,6 +43,8 @@
]
},
"devDependencies": {
"@types/react-datepicker": "^4.4.1",
"@types/react-datetime-picker": "^3.4.1",
"@types/shortid": "^0.0.29"
}
}
129 changes: 6 additions & 123 deletions src/App.css
Original file line number Diff line number Diff line change
@@ -1,125 +1,8 @@
.App {
text-align: center;
display: flex;
justify-content: center;
}

button {
outline: none;
border: none;
box-shadow: 2px 0 2px currentColor;
border-radius: 4px;
min-height: 32px;
min-width: 80px;
padding: 4px 8px;
}

button:hover {
opacity: 0.85;
}

input[type="checkbox"] {
width: 24px;
height: 24px;
box-shadow: none;
border: none;
outline: none;
}

input[type="checkbox"]:focus {
box-shadow: none;
border: none;
outline: none;
}

input {
min-height: 36px;
border: none;
outline: none;
padding: 0 12px;
box-shadow: 2px 0 4px rgba(0,0,0, 0.2);
border-radius: 4px;
}

input:focus {
box-shadow: 1px 0 9px rgba(0,0,0, 0.25);
}

.ToDo__container {
border: 1px solid rgba(0,0,0, 0.13);
border-radius: 8px;
width: 500px;
margin-top: 5rem;
padding: 24px;
box-shadow: 2px 2px 1px rgba(0,0,0, 0.09),
3px 2px 3px rgba(0,0,0, 0.05);
}

.Todo__creation {
display: flex;
}

.Todo__input {
flex: 1 1;
}

.ToDo__list {
display: flex;
flex-direction: column;
margin-top: 1.5rem;
}

.ToDo__item {
display: flex;
align-items: center;
justify-content: space-between;
}

.ToDo__item > span {
flex: 1 1;
text-align: left;
margin-left: 8px;
}

.Todo__content {
flex: 1 1;
}

.Todo__delete {
outline: none;
border: none;
width: 32px;
height: 32px;
min-width: auto;
min-height: auto;
box-shadow: none;
border-radius: 50%;
display: flex;
justify-content: center;
align-items: center;
cursor: pointer;
}

.Todo__action, .Todo__delete {
width: 24px;
height: 24px;
flex-shrink: 0;
}

.Todo__toolbar {
display: flex;
justify-content: space-between;
margin-top: 24px;
}

.Todo__tabs {
display: flex;
justify-content: center;
}

.Todo__tabs > *:not(:last-child) {
margin-right: 8px;
}

.Action__btn {
display : flex;
justify-content : center;
align-items : center;
height : 100%;
width : 100%;
padding : 20px;
}
7 changes: 3 additions & 4 deletions src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
import React from 'react';

import ToDoPage from './ToDoPage';
import React from 'react';
import ToDoPage from './components/ToDoPage';

import './App.css';

function App() {
return (
<main className="App">
<ToDoPage />
<ToDoPage/>
</main>
);
}
Expand Down
107 changes: 0 additions & 107 deletions src/ToDoPage.tsx

This file was deleted.

Loading