mirror of
https://github.com/wah-su/wahs.wah.su.git
synced 2025-09-14 18:33:50 +05:00
add ""masonry"" grid view
This commit is contained in:
parent
a30c9bb445
commit
b1ef537d14
6 changed files with 189 additions and 51 deletions
|
@ -10,15 +10,25 @@ export default function PageNav() {
|
|||
<div className="flex gap-4">
|
||||
{ipp.map((item, idx) => {
|
||||
return <button key={`ipp_${item}`}
|
||||
className={`${idx > 4 ? "hidden md:block" : ""} cursor-pointer md:text-lg lg:text-xl`}
|
||||
className={`${idx > 4 ? "hidden md:block" : ""} cursor-pointer md:text-lg lg:text-xl text-gray-200`}
|
||||
id="nav_ipp"
|
||||
data-ipp={item}
|
||||
>{item}</button>
|
||||
})}
|
||||
</div>
|
||||
<button className="flex justify-center items-center cursor-pointer" id="nav_next">
|
||||
<div className="material-symbols--navigate-next w-16 h-16"></div>
|
||||
</button>
|
||||
<div className="flex">
|
||||
<div className="gap-1 hidden xl:flex">
|
||||
<button className="flex justify-center items-center cursor-pointer text-gray-200" id="nav_view" data-view="grid">
|
||||
<div className="material-symbols--grid-on w-8 h-8"></div>
|
||||
</button>
|
||||
<button className="flex justify-center items-center cursor-pointer text-gray-200" id="nav_view" data-view="masonry">
|
||||
<div className="material-symbols--dashboard-rounded w-8 h-8"></div>
|
||||
</button>
|
||||
</div>
|
||||
<button className="flex justify-center items-center cursor-pointer" id="nav_next">
|
||||
<div className="material-symbols--navigate-next w-16 h-16"></div>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@ export default function Placeholder(props: {
|
|||
return (
|
||||
<a
|
||||
data-type="placeholder__image"
|
||||
className={`relative aspect-square min-w-48 sm:min-w-auto rounded-sm overflow-hidden ${
|
||||
className={`relative aspect-square min-w-48 min-h-48 sm:min-w-auto rounded-sm overflow-hidden ${
|
||||
props.isMobileHidden ? "hidden xl:block" : ""
|
||||
}`}
|
||||
>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue