diff --git a/src/forge/Component/Component.scss b/src/forge/Component/Component.scss index d27d4aae..226e9fe6 100644 --- a/src/forge/Component/Component.scss +++ b/src/forge/Component/Component.scss @@ -151,4 +151,42 @@ li.ant-menu-item{ .ant-tree{ margin:0px 20px!important; } +} + +.menuPanels{ + width: 240px; + height: 180px; + .ant-popover-content,.ant-popover-inner{ + height: 100%; + width: 100%; + } +} +.halfs{ + margin-top: 24px; + padding:24px 0px 0px 0px; + border-top: 1px solid #e8e8e8; + .attrPerson{ + padding-bottom: 24px; + } +} +.menuinfos{ + padding:15px 0px; + li{ + display: flex; + flex-direction: column; + align-items: center; + border-right: 1px solid #eee; + flex: 1; + & >span:first-child{ + font-size: 18px; + font-weight: 400; + color: #333; + } + & >span:last-child{ + color: #666; + } + &:last-child{ + border-right: none; + } + } } \ No newline at end of file diff --git a/src/forge/Component/Contributors.jsx b/src/forge/Component/Contributors.jsx index 7215c735..04cd393e 100644 --- a/src/forge/Component/Contributors.jsx +++ b/src/forge/Component/Contributors.jsx @@ -1,44 +1,155 @@ import React, { useEffect, useState } from 'react'; import { AlignCenter , FlexAJ } from '../Component/layout'; import { Link } from 'react-router-dom'; -import { Dropdown , Spin } from 'antd'; +import { Popover , Spin } from 'antd'; import { getImageUrl } from 'educoder'; -import Axios from 'axios'; +import './Component.scss'; +import { getUser } from '../GetData/getData'; +import axios from 'axios'; -function Contributors({contributors,owner,projectsId}){ - - // function menuFunc(login){ - // let data = undefined; - // const url = `/users/${login}.json`; - // Axios.get(url).then(result=>{ - // if(result && result.data){ - // data = result.data; - // } - // }).catch(error=>{}) - - // if(data){ - // return( - //