-
Notifications
You must be signed in to change notification settings - Fork 293
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
170 additions
and
41 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
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 |
---|---|---|
|
@@ -61,6 +61,7 @@ | |
|
||
& .tab-panel-container { | ||
height: 100%; | ||
outline: none; | ||
} | ||
} | ||
|
||
|
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
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
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
13 changes: 13 additions & 0 deletions
13
src/renderer/pages/main-page/views/download-view/components/Downloaded/index.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import MusicSheet from '@/renderer/core/music-sheet' | ||
import React from 'react' | ||
|
||
export default function Downloaded() { | ||
|
||
// const downloadedMusic = MusicSheet.addDownloadedMusic | ||
|
||
|
||
|
||
return ( | ||
<div>Downloaded</div> | ||
) | ||
} |
7 changes: 7 additions & 0 deletions
7
src/renderer/pages/main-page/views/download-view/components/Downloading/index.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import React from 'react' | ||
|
||
export default function Downloading() { | ||
return ( | ||
<div>Downloading</div> | ||
) | ||
} |
13 changes: 13 additions & 0 deletions
13
src/renderer/pages/main-page/views/download-view/index.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,13 @@ | ||
.download-view--container { | ||
& .header { | ||
font-weight: 600; | ||
font-size: 1.5rem; | ||
margin-top: 1.5rem; | ||
margin-bottom: 1.2rem; | ||
letter-spacing: 0.05rem; | ||
user-select: none; | ||
} | ||
|
||
|
||
} | ||
|
28 changes: 25 additions & 3 deletions
28
src/renderer/pages/main-page/views/download-view/index.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,29 @@ | ||
import React from 'react' | ||
import { Tab } from "@headlessui/react"; | ||
import "./index.scss"; | ||
import Downloaded from "./components/Downloaded"; | ||
import Downloading from "./components/Downloading"; | ||
|
||
export default function DownloadView() { | ||
return ( | ||
<div>Download</div> | ||
) | ||
<div className="download-view--container"> | ||
<Tab.Group> | ||
<Tab.List className="tab-list-container"> | ||
<Tab as="div" className="tab-list-item"> | ||
已下载 | ||
</Tab> | ||
<Tab as="div" className="tab-list-item"> | ||
下载中 | ||
</Tab> | ||
</Tab.List> | ||
<Tab.Panels className={"tab-panels-container"}> | ||
<Tab.Panel className="tab-panel-container"> | ||
<Downloaded></Downloaded> | ||
</Tab.Panel> | ||
<Tab.Panel className="tab-panel-container"> | ||
<Downloading></Downloading> | ||
</Tab.Panel> | ||
</Tab.Panels> | ||
</Tab.Group> | ||
</div> | ||
); | ||
} |
Oops, something went wrong.