-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #37 from cardano2vn/develop
Merge pull request #36 from cardano2vn/add-authencation
- Loading branch information
Showing
29 changed files
with
156 additions
and
36 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,5 @@ | ||
import CollectionPage from '@/components/app/utilities/collection'; | ||
|
||
export default function page() { | ||
return <CollectionPage />; | ||
} |
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,5 @@ | ||
import CollectionPage from '@/components/app/utilities/collection'; | ||
|
||
export default function page() { | ||
return <CollectionPage />; | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...app/dashboard/utilities/metadata/page.tsx → ...p/dashboard/(utilities)/metadata/page.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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,41 @@ | ||
import { Button } from '@/components/ui/button'; | ||
import { SearchBar } from '../components/search-bar'; | ||
import ListFolderCard from '../components/list-folder'; | ||
import { CreateCollection } from '../components/create-collection-button'; | ||
export default function CollectionPage() { | ||
return ( | ||
<div className="mt-5 rounded-lg bg-section p-2"> | ||
<h1 className="text-2xl font-semibold leading-7">Collection</h1> | ||
<div className="mt-5"> | ||
<div className="flex flex-wrap items-center justify-between gap-2 rounded-lg p-2"> | ||
<div /> | ||
<div className="flex items-center space-x-2"> | ||
<div className="inline-flex rounded-md shadow-sm" role="group"> | ||
<Button variant="secondary" className="rounded-r-none"> | ||
Select All | ||
</Button> | ||
<Button | ||
variant="secondary" | ||
className="rounded-none border-x border-gray-600" | ||
> | ||
Format | ||
</Button> | ||
<Button | ||
variant="secondary" | ||
className="rounded-none border-r border-gray-600" | ||
> | ||
Download | ||
</Button> | ||
<Button variant="secondary" className="rounded-l-none"> | ||
Delete | ||
</Button> | ||
</div> | ||
<CreateCollection /> | ||
</div> | ||
</div> | ||
<SearchBar /> | ||
<ListFolderCard /> | ||
</div> | ||
</div> | ||
); | ||
} |
36 changes: 36 additions & 0 deletions
36
src/components/app/utilities/components/create-collection-button.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,36 @@ | ||
import { Button } from '@/components/ui/button'; | ||
import { Dialog, DialogContent, DialogTrigger } from '@/components/ui/dialog'; | ||
import { Input } from '@/components/ui/input'; | ||
import { Label } from '@/components/ui/label'; | ||
import { Textarea } from '@/components/ui/textarea'; | ||
|
||
export function CreateCollection() { | ||
return ( | ||
<Dialog> | ||
<DialogTrigger asChild> | ||
<Button className="bg-orange-500 text-white hover:bg-orange-600">Create New</Button> | ||
</DialogTrigger> | ||
<DialogContent className="bg-card"> | ||
<div className="w-full max-w-md rounded-l p-6"> | ||
<form className="space-y-6"> | ||
<div className="space-y-2"> | ||
<Label htmlFor="name">Title</Label> | ||
<Input id="name" required /> | ||
</div> | ||
<div className="space-y-2"> | ||
<Label htmlFor="description">Description</Label> | ||
<Textarea id="description" /> | ||
</div> | ||
<div className="space-y-2"> | ||
<Label htmlFor="link">Link</Label> | ||
<Input id="link" /> | ||
</div> | ||
<Button type="submit" className="w-full"> | ||
Submit | ||
</Button> | ||
</form> | ||
</div> | ||
</DialogContent> | ||
</Dialog> | ||
); | ||
} |
File renamed without changes.
File renamed without changes.
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,17 @@ | ||
import { FolderIcon } from 'lucide-react'; | ||
import { Checkbox } from '@/components/ui/checkbox'; | ||
import { Card } from '@/components/ui/card'; | ||
|
||
export default function FolderCard() { | ||
return ( | ||
<Card className="rounded-lg p-2"> | ||
<div className="flex items-center justify-between p-2"> | ||
<div className="flex items-center space-x-3"> | ||
<FolderIcon className="h-5 w-5 text-yellow-400" /> | ||
<span className="text-sm font-medium text-white">collection name</span> | ||
</div> | ||
<Checkbox className="h-4 w-4 rounded-full" /> | ||
</div> | ||
</Card> | ||
); | ||
} |
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,22 @@ | ||
import FolderCard from './folder-card'; | ||
|
||
export default function ListFolderCard() { | ||
const file = { | ||
name: 'VSDHBJCKJC.PNG', | ||
size: '2.34 MB', | ||
cid: 'QMBSCM6E6CR..VDDVMECRQT', | ||
date: '10/30/2023', | ||
}; | ||
|
||
return ( | ||
<div className="h-[60vh] w-full space-y-4 rounded-lg p-4"> | ||
<div className="overflow-x-auto"> | ||
<div className="md:grid-col-2 grid grid-cols-1 gap-4 lg:grid-cols-3 xl:grid-cols-4"> | ||
{Array.from({ length: 12 }, () => file).map((file, index) => ( | ||
<FolderCard key={index} /> | ||
))} | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
} |
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
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