-
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
master1lan
committed
Feb 24, 2023
1 parent
4a7c449
commit f3b31d1
Showing
19 changed files
with
481 additions
and
228 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 |
|---|---|---|
| @@ -1,5 +1,5 @@ | ||
| import { ReactElement } from "react"; | ||
|
|
||
| export type ReactChildrenType = { | ||
| children: ReactElement; | ||
| children: ReactElement | ReactElement[]; | ||
| }; |
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
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 |
|---|---|---|
| @@ -0,0 +1,81 @@ | ||
| import { Link } from "react-router-dom"; | ||
| import { Link as Mlink } from "@mui/material"; | ||
| import { RouterList } from "../routernav"; | ||
| import { TabProps } from "../routernav/index"; | ||
| import HeadNav from "../nav"; | ||
| import styles from "./midcontent.module.less"; | ||
| export default function MidContent() { | ||
| return ( | ||
| <> | ||
| <div | ||
| className={`${styles["midcontent"]} flex justify-between mt-4 mb-4 gap-2`} | ||
| > | ||
| <LeftLinks /> | ||
| <div className='flex-shrink flex-grow flex justify-center gap-2 flex-wrap'> | ||
| {/* todo修改这个玩意 */} | ||
| <HeadNav /> | ||
| </div> | ||
| <RightLinks /> | ||
| </div> | ||
| </> | ||
| ); | ||
| } | ||
|
|
||
| const LeftLinks = () => ( | ||
| <div className='flex items-center gap-2 basis-36 flex-shrink-0'> | ||
| {RouterList.map((item, key) => ( | ||
| <Link | ||
| to={item.to} | ||
| key={key} | ||
| className='pl-4 pr-4 pt-2 pb-2 text-center bg-white text-gray-800 transition-all hover:bg-blue-100' | ||
| > | ||
| {item.label} | ||
| </Link> | ||
| ))} | ||
| </div> | ||
| ); | ||
| `露早虞莫莞儿柚恩米诺`; | ||
| const GroupLists: TabProps[] = [ | ||
| { | ||
| label: "露早", | ||
| to: "1669777785", | ||
| }, | ||
| { | ||
| label: "虞莫", | ||
| to: "1811071010", | ||
| }, | ||
| { | ||
| label: "莞儿", | ||
| to: "1875044092", | ||
| }, | ||
| { | ||
| label: "柚恩", | ||
| to: "1795147802", | ||
| }, | ||
| { | ||
| label: "米诺", | ||
| to: "1778026586", | ||
| }, | ||
| { | ||
| label: "官号", | ||
| to: "2018113152", | ||
| }, | ||
| ]; | ||
|
|
||
| const RightLinks = () => ( | ||
| <div className='grid grid-cols-3 gap-2 text-gray-600 basis-40 flex-shrink-0'> | ||
| {GroupLists.map((item, key) => ( | ||
| <Mlink | ||
| href={`https://space.bilibili.com/${item.to}`} | ||
| target='_blank' | ||
| key={key} | ||
| underline='none' | ||
| color='inherit' | ||
| className='text-sm font-normal pl-2 pr-2 pt-1 pb-1 transition-colors hover:text-blue-400' | ||
| title={item.label} | ||
| > | ||
| {item.label} | ||
| </Mlink> | ||
| ))} | ||
| </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,5 @@ | ||
| .midcontent { | ||
| max-width: 1440px; | ||
| margin: 0 auto; | ||
| padding: 0 16px; | ||
| } |
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.