-
Notifications
You must be signed in to change notification settings - Fork 7
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
22 changed files
with
791 additions
and
333 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 @@ | ||
declare module "*.mdx" { | ||
import type { ComponentProps, ComponentType } from "react"; | ||
const component: ComponentType; | ||
export default component; | ||
} |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
File renamed without changes
File renamed without changes
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 |
---|---|---|
@@ -1,27 +1,55 @@ | ||
'use client'; | ||
|
||
import React from 'react'; | ||
import Link from 'next/link'; | ||
import { usePathname } from 'next/navigation'; | ||
|
||
const Sidebar: React.FunctionComponent = () => ( | ||
|
||
<div className="flex-initial basis-1/4 p-4"> | ||
|
||
<div className="h-full rounded-xl p-8 bg-[#1B1A1A]"> | ||
|
||
<p className="font-dmsans-regular text-sm text-[#757575] mb-4"> | ||
DOCS | ||
</p> | ||
|
||
<button className="w-full py-3 px-4 rounded-lg text-lg text-left font-dmsans-regular text-black bg-[#07F3E6]"> | ||
How to play | ||
</button> | ||
|
||
"use client"; | ||
|
||
import React from "react"; | ||
import Link from "next/link"; | ||
import { usePathname } from "next/navigation"; | ||
|
||
const Item = ({ | ||
href, | ||
children, | ||
}: { | ||
href: string; | ||
children: React.ReactNode; | ||
}) => { | ||
const pathname = usePathname(); | ||
|
||
const active = pathname === href; | ||
|
||
return ( | ||
<Link | ||
href={href} | ||
className={`block w-full py-3 px-4 rounded-lg text-lg text-left font-dmsans-regular ${ | ||
active ? "bg-[#07F3E6] text-black" : "text-gray-400" | ||
}`} | ||
> | ||
{children} | ||
</Link> | ||
); | ||
}; | ||
|
||
const Sidebar: React.FunctionComponent = () => { | ||
return ( | ||
<div className="flex-initial basis-1/4 p-4"> | ||
<div className="h-full rounded-xl p-8 bg-[#1B1A1A]"> | ||
<p className="font-dmsans-regular text-sm text-[#757575] mb-3"> | ||
INTRODUCTION | ||
</p> | ||
|
||
<Item href="/how-to-play">Introduction</Item> | ||
<Item href="/how-to-play/gameplay">Gameplay</Item> | ||
<Item href="/how-to-play/glossary">Glossary</Item> | ||
|
||
<p className="font-dmsans-regular text-sm text-[#757575] mb-3 mt-8"> | ||
GUIDES | ||
</p> | ||
|
||
<Item href="/how-to-play/build-ship">Build Ship</Item> | ||
<Item href="/how-to-play/move-ship">Move Ship</Item> | ||
<Item href="/how-to-play/gather-fuel">Gather Fuel</Item> | ||
<Item href="/how-to-play/mine-asteria">Mine Asteria</Item> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
</div> | ||
|
||
); | ||
|
||
export default Sidebar; | ||
export default Sidebar; |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.