-
Notifications
You must be signed in to change notification settings - Fork 3
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
Shuaige1234567
committed
Dec 9, 2023
1 parent
7a6be68
commit 08e5bd2
Showing
7 changed files
with
58 additions
and
79 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
import React from "react"; | ||
import {Layout} from "antd"; | ||
import Post from "../components/post"; | ||
import Comment from "../components/comment"; | ||
|
||
export const Content = React.memo(()=>{ | ||
return <> | ||
<Layout.Content className={"posts"} style={{ | ||
backgroundColor: "white", | ||
overflowY: 'auto', | ||
scrollbarWidth: 'thin', | ||
width: '200px', | ||
borderRight: '1px solid rgba(0,0,0,0.2)', | ||
padding:"40px 20px" | ||
}}> | ||
<Post/> | ||
<Post/> | ||
<Post/> | ||
<Post/> | ||
<Post/> | ||
<Post/> | ||
<Post/> | ||
</Layout.Content> | ||
<Layout.Content className={"posts"} style={{ | ||
backgroundColor: 'white', | ||
overflowY: 'auto', | ||
scrollbarWidth: 'thin', | ||
padding:"40px 20px" | ||
}}> | ||
<Comment/> | ||
<Comment/> | ||
<Comment/> | ||
<Comment/> | ||
<Comment/> | ||
<Comment/> | ||
<Comment/> | ||
<Comment/> | ||
</Layout.Content> | ||
</> | ||
}) |
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,40 +1,6 @@ | ||
import { Layout } from 'antd'; | ||
import Post from '../components/post'; | ||
import Comment from '../components/comment'; | ||
import {Content} from "./content"; | ||
import React from "react"; | ||
|
||
export default function Explore() { | ||
return ( | ||
<> | ||
<Layout.Content style={{ | ||
backgroundColor: "white", | ||
overflowY: 'auto', | ||
scrollbarWidth: 'thin', | ||
width: '200px', | ||
borderRight: '1px solid', | ||
}}> | ||
<Post/> | ||
<Post/> | ||
<Post/> | ||
<Post/> | ||
<Post/> | ||
<Post/> | ||
<Post/> | ||
</Layout.Content> | ||
|
||
<Layout.Content style={{ | ||
backgroundColor : 'white', | ||
overflowY: 'auto', | ||
scrollbarWidth: 'thin', | ||
}}> | ||
<Comment /> | ||
<Comment /> | ||
<Comment /> | ||
<Comment /> | ||
<Comment /> | ||
<Comment /> | ||
<Comment /> | ||
<Comment /> | ||
</Layout.Content> | ||
</> | ||
); | ||
return <Content/> | ||
} |
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,40 +1,7 @@ | ||
import React from "react"; | ||
import {Layout} from "antd"; | ||
import Post from "../components/post"; | ||
import Comment from "../components/comment"; | ||
|
||
export const Home = React.memo(()=>{ | ||
return <> | ||
<Layout.Content className={"posts"} style={{ | ||
backgroundColor: "white", | ||
overflowY: 'auto', | ||
scrollbarWidth: 'thin', | ||
width: '200px', | ||
borderRight: '1px solid rgba(0,0,0,0.2)', | ||
padding:"40px 20px" | ||
}}> | ||
<Post/> | ||
<Post/> | ||
<Post/> | ||
<Post/> | ||
<Post/> | ||
<Post/> | ||
<Post/> | ||
</Layout.Content> | ||
<Layout.Content className={"posts"} style={{ | ||
backgroundColor: 'white', | ||
overflowY: 'auto', | ||
scrollbarWidth: 'thin', | ||
padding:"40px 20px" | ||
}}> | ||
<Comment/> | ||
<Comment/> | ||
<Comment/> | ||
<Comment/> | ||
<Comment/> | ||
<Comment/> | ||
<Comment/> | ||
<Comment/> | ||
</Layout.Content> | ||
</> | ||
import {Content} from "./content"; | ||
|
||
export const Home = React.memo(() => { | ||
return <Content/> | ||
}) |
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