parent
112f9b0163
commit
20f1379fbb
@ -0,0 +1,32 @@
|
||||
.triangle-right {
|
||||
width: 0;
|
||||
height: 0;
|
||||
border-top: 8px solid transparent;
|
||||
border-left: 16px solid grey;
|
||||
border-bottom: 8px solid transparent;
|
||||
margin: 0px 0px 0px -8px;
|
||||
opacity: 0;
|
||||
}
|
||||
.triangle-right:hover {
|
||||
cursor: pointer;
|
||||
opacity: 1;
|
||||
}
|
||||
.triangle-right.active {
|
||||
cursor: pointer;
|
||||
border-left-color: yellow;
|
||||
opacity: 1;
|
||||
}
|
||||
.break-line {
|
||||
display: none;
|
||||
width: 175px;
|
||||
float: left;
|
||||
margin-top: -9px;
|
||||
border: 1px solid yellow;
|
||||
}
|
||||
.break-line.active {
|
||||
display:inline;
|
||||
width: 175px;
|
||||
float: left;
|
||||
margin-top: -9px;
|
||||
border: 1px solid yellow;
|
||||
}
|
||||
@ -0,0 +1,16 @@
|
||||
import { useState } from 'react';
|
||||
import './Css/TierBreak.css'
|
||||
|
||||
export default function TierBreak() {
|
||||
const [isActive, setActive] = useState(false);
|
||||
return (
|
||||
<div className='tier-break'>
|
||||
<div
|
||||
className={'triangle-right' + (isActive ? ' active' : '')}
|
||||
onClick={() => setActive(!isActive)}
|
||||
>
|
||||
</div>
|
||||
<hr className={'break-line' + (isActive ? ' active' : '')}/>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
@ -0,0 +1,12 @@
|
||||
import Nav from "../Components/Nav";
|
||||
|
||||
export default function CommunityRanking() {
|
||||
return (
|
||||
<div className="page-content">
|
||||
<div className="left-menus">
|
||||
</div>
|
||||
<h2>Community Rankings</h2>
|
||||
<Nav current='community'/>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
Loading…
Reference in new issue