diff --git a/src/imgs/java.jpeg b/src/imgs/java.jpeg new file mode 100644 index 0000000..8b94028 Binary files /dev/null and b/src/imgs/java.jpeg differ diff --git a/src/imgs/job.jpg b/src/imgs/job.jpg new file mode 100644 index 0000000..c16ad22 Binary files /dev/null and b/src/imgs/job.jpg differ diff --git a/src/views/chicken-circle/index.less b/src/views/chicken-circle/index.less index e69de29..1c7f18d 100644 --- a/src/views/chicken-circle/index.less +++ b/src/views/chicken-circle/index.less @@ -0,0 +1,76 @@ +.circle-box { + .top-input-card { + padding: 8px 12px; + background-color: #f2f3f5; + transition: all 0.2s; + border-radius: 8px; + + textarea { + background-color: #f2f3f5 !important; + outline: none !important; + border: none !important; + box-shadow: none; + } + + .choose-circle { + color: #3c6eee; + cursor: pointer; + display: inline-block; + font-size: 12px; + padding: 4px 10px 2px; + background-color: white; + border-radius: 14px 14px 14px 0; + } + &.card-focus { + border: 1px solid #3c6eee; + background-color: #fff; + textarea { + background-color: #fff !important; + } + .choose-circle { + // color: white; + background-color: rgba(60, 110, 238, 0.1); + } + } + .top-text-area { + background-color: #f2f3f5; + } + } + .publish-options { + display: flex; + justify-content: space-between; + margin-top: 20px; + .left-box { + display: flex; + div { + margin-right: 20px; + cursor: pointer; + &:hover { + color: #3c6eee; + } + } + } + } +} + +.pop-content { + &-item { + display: flex; + align-items: center; + cursor: pointer; + &:hover { + background-color: #f2f3f5; + } + // margin-bottom: 20px; + padding: 10px 0; + .item-img { + width: 48px; + height: 48px; + border-radius: 10px; + margin-right: 20px; + } + .item-name { + padding-right: 40px; + } + } +} diff --git a/src/views/chicken-circle/index.tsx b/src/views/chicken-circle/index.tsx index f76e5b7..2d0de99 100644 --- a/src/views/chicken-circle/index.tsx +++ b/src/views/chicken-circle/index.tsx @@ -1,18 +1,119 @@ -import { Input } from 'antd' +import headImg from '@/imgs/head.jpg' +import javaImg from '@/imgs/java.jpeg' +import jobImg from '@/imgs/job.jpg' +import { + FileImageOutlined, + MessageOutlined, + ShareAltOutlined, + SmileOutlined +} from '@ant-design/icons' +import { Avatar, Button, Card, Input, Popover, Tabs } from 'antd' +import { useState } from 'react' +import './index.less' + +const { Meta } = Card const { TextArea } = Input const Circle = () => { + const [hasFocus, setHasFocus] = useState(false) + const [comment, setComment] = useState('') + + const toggleFocus = (flag: boolean) => { + setHasFocus(!flag) + } + + const onChange = e => { + setComment(e.target.value) + } + + const renderPopContent = () => { + return ( + +
+ + JAVA圈子 +
+
+ + 求职圈子 +
+ + ) + } + ]} + /> + ) + } + return (
-
-