-
-
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
1 parent
2e33c3b
commit 68de96c
Showing
25 changed files
with
269 additions
and
164 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
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 |
---|---|---|
@@ -1,12 +1,14 @@ | ||
|
||
import Nav from '@/components/nav/Navbar' | ||
import Navbar from '@/components/nav/Navbar' | ||
import NavHeader from '@/components/nav/NavHeader' | ||
|
||
|
||
export default function layout({children}) { | ||
return ( | ||
<> | ||
<NavHeader /> | ||
{children} | ||
<Nav /> | ||
<Navbar /> | ||
</> | ||
) | ||
} |
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,8 @@ | ||
export default function chatpage() { | ||
return ( | ||
<div> | ||
|
||
聊天 | ||
</div> | ||
) | ||
} |
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,7 @@ | ||
export default function communitypage() { | ||
return ( | ||
<div> | ||
社区 | ||
</div> | ||
) | ||
} |
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,52 @@ | ||
'use client' | ||
import ThemeSwap from "@/components/ThemeSwap"; | ||
import Link from "next/link"; | ||
import { usePathname } from 'next/navigation' | ||
import { RiChat3Line, RiFileTextLine, RiImageLine, RiMusic2Line, RiNotification3Line, RiQuestionAnswerLine, RiShapesLine, RiTeamLine, RiVideoLine } from 'react-icons/ri' | ||
export default function Message({ children }) { | ||
const pathname = usePathname(); | ||
return ( | ||
<div className='mx-auto max-w-4xl justify-center border-x-0 md:border-x'> | ||
|
||
|
||
|
||
<div className="flex flex-row w-full lg:w-full z-20 h-16 md:mt-16 items-center "> | ||
|
||
{linknav.map((item) => ( | ||
<div className='mx-auto flex-col sm:flex-row w-1/3 justify-around flex hover:bg-[--link-hover-background] z-20' key={item.href}> | ||
|
||
<Link href={item.href} className={`z-20 flex items-center justify-center w-[100%] h-16 flex-col sm:flex-row text-[#878787] border-b ${pathname === item.href ? 'text-info border-b-2 border-b-info' : ''}`}> | ||
<div className=' justify-center text-2xl sm:text-2xl z-20'> {item.logo} </div> | ||
<p className="text-sm text-inherit z-20 text-center">{item.name}</p> | ||
</Link> | ||
|
||
</div> | ||
))} | ||
|
||
</div> | ||
|
||
|
||
|
||
{children} | ||
</div> | ||
); | ||
} | ||
|
||
const linknav = [ | ||
{ | ||
href: "/message/chat", | ||
name: "聊天", | ||
logo: <RiQuestionAnswerLine /> | ||
}, | ||
{ | ||
href: "/message/community", | ||
name: "社区", | ||
logo: <RiTeamLine /> | ||
}, | ||
{ | ||
href: "/message/notice", | ||
name: "通知", | ||
logo: <RiNotification3Line /> | ||
}, | ||
|
||
] |
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,8 @@ | ||
export default function noticepage() { | ||
return ( | ||
<div> | ||
|
||
通知 | ||
</div> | ||
) | ||
} |
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.