mirror of
https://gitlab.com/MrFry/qmining-page
synced 2025-04-01 20:23:44 +02:00
Sidebar links changes, getstaticprops tries
This commit is contained in:
parent
a13fee6f84
commit
c6ba225fd8
8 changed files with 2193 additions and 4508 deletions
src/components
|
@ -43,27 +43,30 @@ export default function Layout(props) {
|
|||
<div className="sidebarheader">Frylabs</div>
|
||||
</div>
|
||||
{sidebarOpen ? (
|
||||
<div id="sideBarLinks">
|
||||
{Object.keys(tabs).map((key) => {
|
||||
const item = tabs[key]
|
||||
return (
|
||||
<Link href={item.href} key={key}>
|
||||
<a
|
||||
onClick={closeSideBar}
|
||||
className={href.includes(key) ? 'active' : undefined}
|
||||
id={item.id || undefined}
|
||||
>
|
||||
{item.text}
|
||||
</a>
|
||||
</Link>
|
||||
)
|
||||
})}
|
||||
<Link href={`/donate`}>
|
||||
<a className="donate" onClick={closeSideBar} target="_blank">
|
||||
Donate
|
||||
</a>
|
||||
</Link>
|
||||
</div>
|
||||
<>
|
||||
<div id="sideBarLinks">
|
||||
{Object.keys(tabs).map((key) => {
|
||||
const item = tabs[key]
|
||||
return (
|
||||
<Link href={item.href} key={key}>
|
||||
<a
|
||||
onClick={closeSideBar}
|
||||
className={href.includes(key) ? 'active' : undefined}
|
||||
id={item.id || undefined}
|
||||
>
|
||||
{item.text}
|
||||
</a>
|
||||
</Link>
|
||||
)
|
||||
})}
|
||||
<Link href={`/donate`}>
|
||||
<a className="donate" onClick={closeSideBar} target="_blank">
|
||||
Donate
|
||||
</a>
|
||||
</Link>
|
||||
</div>
|
||||
<div className="userInfo">User # TODO</div>
|
||||
</>
|
||||
) : null}
|
||||
</div>
|
||||
<div className="content">{props.children}</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue