Skip to content

Commit

Permalink
wip: css NavPanel.jsx second attempt
Browse files Browse the repository at this point in the history
  • Loading branch information
SirrorsMoore1975 authored and SirrorsMoore1975 committed Dec 7, 2023
1 parent c61d9a6 commit ac7c5f6
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 7 deletions.
18 changes: 17 additions & 1 deletion client/src/components/NavPanel.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,26 @@ const NavPanel = ({provider_id}) => {
return (
<>
<div className="nav-panel">
<span>
<Button className="button arrow" text={"<"} onClick={handleGoLeft} />

</span>
<span>
<Button className="button arrow" text={">"} onClick={handleGoRight} />

</span>
<div className="current-provider">
<Button className="button provider_name" text={`${providers[provider_data?.current].name}`}/>
<span align="center">
<Button className="button provider_name" text={
<span>
{
`${providers[provider_data?.current].name}`
}
</span>
}
></Button>

</span>
</div>
</div>
</>
Expand Down
27 changes: 21 additions & 6 deletions client/src/styles/NavPanel.css
Original file line number Diff line number Diff line change
@@ -1,10 +1,25 @@
.nav-panel {
border: 10px solid black;
border-radius: 12px;
padding: 10px;
color:aqua;
text-align: center;
align-items: center;
display: flex;
}
.arrow {
width: 50px;
align-items: center;
padding: 10px;
display: flex;
flex-direction: row;
}

.current-provider {
align-items:center;
padding: 15px;
display: flex;
flex-direction: row;
width: 200px;
}
.provider_name {
display:flex;
align-items: center;
justify-content: center;
width: 250px;
margin: 20px;
}

0 comments on commit ac7c5f6

Please sign in to comment.