-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feat: Add tabs to the files page so that the user will be able to swi…
…tch from uploading files to downloading.
- Loading branch information
1 parent
f788ec0
commit 6b72665
Showing
13 changed files
with
95 additions
and
22 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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import classes from "./download-files.module.scss"; | ||
|
||
export interface DownloadFilesProps {} | ||
|
||
export const DownloadFiles = () => { | ||
return ( | ||
<section className={classes.container}> | ||
<h2>הורדת קבצים</h2> | ||
</section> | ||
); | ||
}; |
15 changes: 15 additions & 0 deletions
15
frontend/src/components/DownloadFiles/download-files.module.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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
.container { | ||
border-radius: var(--ant-border-radius); | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
justify-content: center; | ||
gap: 1rem; | ||
padding: 1.5rem; | ||
max-height: 100%; | ||
|
||
h2 { | ||
font-size: 2rem; | ||
font-weight: 500; | ||
} | ||
} |
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 @@ | ||
export * from './DownloadFiles'; |
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
File renamed without changes.
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
File renamed without changes.
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,29 @@ | ||
import { Tabs } from "antd"; | ||
import classes from "./files-manager.module.scss"; | ||
import { UploadFiles } from "../../components/UploadFiles"; | ||
import { DownloadFiles } from "../../components/DownloadFiles"; | ||
|
||
export interface FilesManagerProps {} | ||
|
||
export const FilesManager = () => { | ||
return ( | ||
<div className={classes.container}> | ||
<Tabs | ||
className={classes.tabs} | ||
centered | ||
items={[ | ||
{ | ||
key: "1", | ||
label: "העלאת קבצים", | ||
children: <UploadFiles />, | ||
}, | ||
{ | ||
key: "2", | ||
label: "הורדת קבצים", | ||
children: <DownloadFiles />, | ||
}, | ||
]} | ||
/> | ||
</div> | ||
); | ||
}; |
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,27 @@ | ||
.container { | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
height: 100%; | ||
width: 100%; | ||
|
||
.tabs { | ||
height: 100%; | ||
} | ||
|
||
:global { | ||
.ant-tabs-tabpane { | ||
height: 100%; | ||
max-height: 100%; | ||
} | ||
|
||
.ant-tabs-content { | ||
height: 100%; | ||
max-height: 100%; | ||
} | ||
|
||
.ant-upload-list-item-name { | ||
max-width: 60ch; | ||
} | ||
} | ||
} |
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 @@ | ||
export * from './FilesManager'; |
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
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