mirror of
https://github.com/D4M13N-D3V/neroshitron.git
synced 2025-03-14 10:05:04 +00:00
fix: gallery admin page
This commit is contained in:
parent
7635178e3c
commit
d94f3b825b
@ -139,43 +139,45 @@ function PageComponent() {
|
|||||||
></GalleryThumbnail>
|
></GalleryThumbnail>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
<div className="w-full flex opacity-90 backdrop-blur-lg bg-primary shadow-lg p-8 pb-0 rounded">
|
<div className="w-full opacity-90 backdrop-blur-lg bg-primary shadow-lg p-8 pb-0 rounded">
|
||||||
<input
|
<span className="text-2xl">Editing Gallery</span>
|
||||||
type="text"
|
<div className="w-full flex justify-end">
|
||||||
className="mb-8 mr-2 rounded-md bg-secondary p-2 w-1/2 text-white"
|
<div className="w-1/2 flex">
|
||||||
placeholder="Gallery Name"
|
<input
|
||||||
value={galleryName}
|
type="text"
|
||||||
onChange={(e) => setGalleryName(e.target.value)}
|
className="mb-8 mr-2 rounded-md bg-secondary p-2 w-full text-white"
|
||||||
/><div className="w-1/6">
|
placeholder="Gallery Name"
|
||||||
<button
|
value={galleryName}
|
||||||
onClick={() => deleteGallery()}
|
onChange={(e) => setGalleryName(e.target.value)}
|
||||||
className="text-center w-full bg-error hover:bg-error-light text-white rounded-md p-2 flex items-center justify-center"
|
/>
|
||||||
>
|
</div>
|
||||||
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" strokeWidth={1.5}
|
<div className="w-1/2 flex">
|
||||||
stroke="currentColor" className="md:hidden size-6">
|
<button
|
||||||
<path strokeLinecap="round" strokeLinejoin="round" d="m14.74 9-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 0 1-2.244 2.077H8.084a2.25 2.25 0 0 1-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 0 0-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 0 1 3.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 0 0-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 0 0-7.5 0" />
|
onClick={() => deleteGallery()}
|
||||||
</svg>
|
className="h-10 text-center w-full bg-error hover:bg-error-light text-white rounded-md p-2 flex items-center justify-center"
|
||||||
|
>
|
||||||
<span className="md:block hidden">Delete</span>
|
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" strokeWidth={1.5}
|
||||||
</button>
|
stroke="currentColor" className="md:hidden size-6">
|
||||||
</div>
|
<path strokeLinecap="round" strokeLinejoin="round" d="m14.74 9-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 0 1-2.244 2.077H8.084a2.25 2.25 0 0 1-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 0 0-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 0 1 3.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 0 0-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 0 0-7.5 0" />
|
||||||
<div className="w-1/6">
|
</svg>
|
||||||
<button
|
|
||||||
onClick={() => (router.push("/gallery/admin"))}
|
<span className="md:block hidden">Delete</span>
|
||||||
className="w-full bg-error-dark hover:bg-error text-white rounded-md p-2 ml-2 flex items-center justify-center"
|
</button>
|
||||||
>
|
<button
|
||||||
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" strokeWidth={1.5}
|
onClick={() => (router.push("/gallery/admin"))}
|
||||||
stroke="currentColor" className="md:hidden size-6">
|
className="h-10 w-full bg-error-dark hover:bg-error text-white rounded-md p-2 ml-2 flex items-center justify-center"
|
||||||
<path strokeLinecap="round" strokeLinejoin="round" d="M9 15 3 9m0 0 6-6M3 9h12a6 6 0 0 1 0 12h-3" />
|
>
|
||||||
</svg>
|
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" strokeWidth={1.5}
|
||||||
|
stroke="currentColor" className="md:hidden size-6">
|
||||||
<span className="md:block hidden">Back</span>
|
<path strokeLinecap="round" strokeLinejoin="round" d="M9 15 3 9m0 0 6-6M3 9h12a6 6 0 0 1 0 12h-3" />
|
||||||
</button>
|
</svg>
|
||||||
</div>
|
|
||||||
<div className="w-1/4">
|
<span className="md:block hidden">Back</span>
|
||||||
<button onClick={()=>{updateGallery()}} className="w-full bg-warning hover:bg-warning-light text-white rounded-md p-2 ml-4">
|
</button>
|
||||||
<span>Update</span>
|
<button onClick={()=>{updateGallery()}} className="h-10 w-full bg-warning hover:bg-warning-light text-white rounded-md p-2 ml-2">
|
||||||
</button>
|
<span>Update</span>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div className="w-full lg:flex opacity-90 backdrop-blur-lg bg-primary shadow-lg p-8 pt-0 rounded">
|
<div className="w-full lg:flex opacity-90 backdrop-blur-lg bg-primary shadow-lg p-8 pt-0 rounded">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user