Skip to content

Commit

Permalink
wip css styling nav panel
Browse files Browse the repository at this point in the history
  • Loading branch information
SirrorsMoore1975 authored and SirrorsMoore1975 committed Dec 7, 2023
1 parent ac7c5f6 commit 8069a5f
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 16 deletions.
13 changes: 8 additions & 5 deletions client/src/components/NavPanel.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import React, {useMemo} from 'react';
import { useNavigate } from "react-router-dom";
import Button from "./Button";
import providers from "../data/providers.json"
import providers from "../data/providers.json";
import '../styles/NavPanel.css'

const NavPanel = ({provider_id}) => {
const navigate = useNavigate();
Expand All @@ -27,18 +28,20 @@ const NavPanel = ({provider_id}) => {
return (
<>
<div className="nav-panel">
<div className="nav-arrows">
<span>
<Button className="button arrow" text={"<"} onClick={handleGoLeft} />

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

</span>

</div>
<div className="current-provider">
<span align="center">
<Button className="button provider_name" text={
<span>
<span >
<Button className="button" text={
<span className="provider_name">
{
`${providers[provider_data?.current].name}`
}
Expand Down
29 changes: 18 additions & 11 deletions client/src/styles/NavPanel.css
Original file line number Diff line number Diff line change
@@ -1,25 +1,32 @@
.nav-panel {
border: 2px solid black;
border-radius:12px;
align-items: center;
display: flex;

/* display: flex; */
}
.arrow {
align-items: center;
padding: 10px;
display: flex;
/* display: flex; */
flex-direction: row;
}

.nav-arrows {
padding: 20px;
}
.current-provider {
align-items:center;
padding: 15px;
display: flex;
flex-direction: row;
width: 200px;
flex-direction: column;
/* width: 200px; */
}
.provider_name {
display:flex;
align-items: center;
justify-content: center;
width: 250px;
margin: 20px;
/* display: flex; */
/* align-items: center; */
/* flex-direction: row; */
/* padding: 0px; */
/* height: 0px; */
/* width: 100%; */
/* margin: 0px; */
/* text-align: center; */
}

0 comments on commit 8069a5f

Please sign in to comment.