diff --git a/src/forge/Information/Pages/JCC/Component/index.scss b/src/forge/Information/Pages/JCC/Component/index.scss new file mode 100644 index 000000000..562231b0a --- /dev/null +++ b/src/forge/Information/Pages/JCC/Component/index.scss @@ -0,0 +1,58 @@ +.partner_jcc{ + .grow_path { + height: 100px; + display: flex; + justify-content: space-around; + align-items: center; + .grow_path_item { + z-index: 10; + display: flex; + flex-direction: column; + justify-content: center; + align-items: center; + align-self: self-start; + cursor: pointer; + transition: 1s; + .grow_path_type { + width: 82px; + height: 58px; + // color: black; + font-size: 15px; + display: flex; + align-items: center; + justify-content: center; + margin-top: 10px; + } + } + .dot { + width:28px; + height:28px; + background-color:#ffffff; + border:7px solid; + border-color:#0d8dfd52; + border-radius: 50%; + transition: .5s; + } + } + .line { + height: 0px; + width: 1200px; + border-bottom: solid 1px #ddd; + transform: translate(0, -87px); + } + .zone_part_lists{ + margin-top: 40px; + li { + max-height: 414px; + overflow-y: auto; + align-items: flex-start; + } + } + .type_active{ + border-color: #0d8ffd !important; + } + ::-webkit-scrollbar + { + display: none; + } +} diff --git a/src/forge/Information/Pages/JCC/Component/partnerJcc.jsx b/src/forge/Information/Pages/JCC/Component/partnerJcc.jsx new file mode 100644 index 000000000..82357539c --- /dev/null +++ b/src/forge/Information/Pages/JCC/Component/partnerJcc.jsx @@ -0,0 +1,81 @@ +import React , { useEffect } from 'react'; +import { useState } from 'react'; +import './index.scss' + +function Partner(props) { + const [ topics ,setTopics ] = useState(undefined); + const [ moreTypes ,setMoreTypes ] = useState(false); + const [ currentPartner ,setPartner] = useState(undefined); + const { id, partnerList } = props; + useEffect(()=>{ + getUnit(partnerList); + },[id]) + + function getUnit(array){ + const newArray = array + setMoreTypes(array.length > 1) + while(newArray[1] && newArray[1].length + newArray[0].length <= 5) { + newArray[0] = [...newArray[0], ...newArray.splice(1, 1)[0]] + } + setTopics(newArray) + setPartner(newArray[0][0].typeName) + } + + return( +
{ data.homepagePartnersTitle }
-