-
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.
- Loading branch information
Showing
7 changed files
with
122 additions
and
24 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,7 +1,13 @@ | ||
import React from "react"; | ||
import Category from "../modules/Category"; | ||
import PageCard from "../modules/__modules__/Card/PageCard"; | ||
|
||
const CategoryPage = () => { | ||
return <div>CategoryPage</div>; | ||
return ( | ||
<PageCard> | ||
<Category /> | ||
</PageCard> | ||
); | ||
}; | ||
|
||
export default CategoryPage; |
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 |
---|---|---|
@@ -1,7 +1,74 @@ | ||
import React from "react"; | ||
import { VPen, VTrash } from "../__modules/Vectors"; | ||
|
||
const Category = () => { | ||
return <div>Category</div>; | ||
return ( | ||
<div className="my-24 bg-white flex flex-col w-full border shadow-lg"> | ||
<div className="flex justify-between items-center px-5 py-5 border-b border-gray-200"> | ||
<h3 className="font-bold text-2xl">Category Lists</h3> | ||
<button className="bg-primary text-white px-4 py-2 rounded-md"> | ||
Add New Category | ||
</button> | ||
</div> | ||
<div className="flex justify-between px-5 py-5"> | ||
<div className="flex items-center"> | ||
<label htmlFor="numberOfItem">Show</label> | ||
<select | ||
name="numberOfItem" | ||
className="px-2 mx-2 rounded-md outline-none border bg-transparent focus:border-primary transition-all" | ||
> | ||
<option value={10}>10</option> | ||
<option value={25}>25</option> | ||
<option value={50}>50</option> | ||
<option value={100}>100</option> | ||
</select> | ||
<p>entries</p> | ||
</div> | ||
<div> | ||
<label htmlFor="searchItem" className="px-4"> | ||
Search: | ||
</label> | ||
<input | ||
type="search" | ||
name="searchItem" | ||
className="border border-gray-300 px-2 py-1 rounded-md outline-none focus:border-primary transition-all" | ||
/> | ||
</div> | ||
</div> | ||
<div className="mr-5"> | ||
<table className="border border-gray-300 w-full"> | ||
<tr> | ||
<th className="border px-10">No</th> | ||
<th className="border px-10">Song Category</th> | ||
<th className="border px-10">Category Description</th> | ||
<th className="border px-10">Action</th> | ||
</tr> | ||
{Array.from({ length: 10 }).map((_, index) => { | ||
return ( | ||
<tr key={index}> | ||
<td className="border px-5 py-5">{index + 1}</td> | ||
<td className="border px-5">Rock songs</td> | ||
<td className="border px-5"> | ||
Lorem ipsum, dolor sit amet consectetur adipisicing elit. Sunt | ||
! | ||
</td> | ||
<td className="border px-5"> | ||
<div className="flex justify-center items-center"> | ||
<button className="bg-primary p-2 rounded-lg text-white"> | ||
<VPen /> | ||
</button> | ||
<button className="bg-primary p-2 rounded-lg text-white mx-2"> | ||
<VTrash /> | ||
</button> | ||
</div> | ||
</td> | ||
</tr> | ||
); | ||
})} | ||
</table> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default Category; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import React from "react"; | ||
import CategoryPage from "../../components/CategoryPage"; | ||
|
||
const category = () => { | ||
return ( | ||
<div className="bg-globalBg h-screen"> | ||
<CategoryPage /> | ||
</div> | ||
); | ||
}; | ||
|
||
export default category; |