-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dashboard components basic styles (#574)
* Case sensitive renaming * Update `cvat-js` lib. * Add `.env` file * Add basic redux capabilities * Remove `setTimeout` as it was fixes in `cvat-js` * Remove redundant state field * Add header and footer styles * Remove `Affix` It does not recalculete width for some reason * Add basic styles to task cards * Fix empty component * Pagination fixes * Add modal on task delete
- Loading branch information
Showing
9 changed files
with
209 additions
and
64 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
REACT_APP_VERSION=${npm_package_version} | ||
|
||
REACT_APP_API_PROTOCOL=http | ||
REACT_APP_API_HOST=localhost | ||
REACT_APP_API_PORT=7000 | ||
REACT_APP_API_HOST_URL=${REACT_APP_API_PROTOCOL}://${REACT_APP_API_HOST}:${REACT_APP_API_PORT} | ||
REACT_APP_API_FULL_URL=${REACT_APP_API_PROTOCOL}://${REACT_APP_API_HOST}:${REACT_APP_API_PORT}/api/v1 | ||
|
||
REACT_APP_LOGIN=admin | ||
REACT_APP_PASSWORD=admin |
53 changes: 41 additions & 12 deletions
53
cvat-ui/src/components/dashboard/content/dashboard-content.scss
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 |
---|---|---|
@@ -1,23 +1,52 @@ | ||
.dashboard-content-сard { | ||
&__header { | ||
|
||
} | ||
.dashboard-content { | ||
width: 1024px; | ||
min-height: calc(100vh - 64px - 64px); | ||
margin: 0 auto; | ||
|
||
.dashboard-content-сard { | ||
margin: 20px; | ||
padding: 20px; | ||
border: 1px solid #001529; | ||
border-radius: 3px; | ||
background: white; | ||
|
||
&__header { | ||
text-align: center; | ||
|
||
h2 { | ||
margin-bottom: 20px; | ||
} | ||
} | ||
|
||
&__content { | ||
&__content { | ||
|
||
.card-cover { | ||
.card-cover { | ||
|
||
img { | ||
max-width: 300px; | ||
img { | ||
max-width: 300px; | ||
} | ||
} | ||
} | ||
|
||
.card-actions { | ||
.card-actions { | ||
display: flex; | ||
flex-flow: column wrap; | ||
|
||
} | ||
button { | ||
min-width: 200px; | ||
margin-bottom: 1px; | ||
} | ||
} | ||
|
||
.card-jobs { | ||
.card-jobs { | ||
|
||
} | ||
} | ||
} | ||
} | ||
|
||
.empty { | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: center; | ||
height: calc(100vh - 64px - 64px); | ||
} |
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,3 @@ | ||
.layout { | ||
|
||
} |
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,9 @@ | ||
.dashboard-footer { | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
min-width: 1024px; | ||
padding: 0 50px; | ||
height: 64px; | ||
background: #001529; | ||
} |
29 changes: 18 additions & 11 deletions
29
cvat-ui/src/components/dashboard/footer/dashboard-footer.tsx
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,34 @@ | ||
.dashboard-header { | ||
min-width: 1024px; | ||
background: #001529; | ||
|
||
&__logo { | ||
height: 64px; | ||
|
||
.logo { | ||
color: white; | ||
} | ||
} | ||
&__search { | ||
text-align: center; | ||
|
||
.search { | ||
max-width: 300px; | ||
} | ||
} | ||
&__actions { | ||
text-align: right; | ||
|
||
.action:not(:nth-child(1)) { | ||
margin-left: 8px; | ||
} | ||
|
||
.action { | ||
width: 100px; | ||
} | ||
} | ||
|
||
.logo, .search, .action { | ||
vertical-align: middle; | ||
} | ||
} |
Oops, something went wrong.