Skip to content

Commit

Permalink
styled views
Browse files Browse the repository at this point in the history
  • Loading branch information
darylbg committed Aug 23, 2023
1 parent 3cd685a commit 99fe7bf
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 4 deletions.
7 changes: 5 additions & 2 deletions src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ function App() {
height: "100%",
display: "flex",
alignItems: "center",
justifyContent: "center",
justifyContent: "space-between",
};

useEffect(() => {
Expand All @@ -36,7 +36,10 @@ function App() {
<div style={{ height: "100vh" }}>
<SplitPane split="vertical" sizes={sizes} onChange={setSizes}>
<Pane minSize={"50%"} maxSize={'95%'}>
<div style={{ ...layoutCSS, background: "#1A1A1A" }}>pane1</div>
<div style={{ ...layoutCSS, background: "#1A1A1A" }}>
<div className="left-view">left view</div>
<div className="right-view">right view</div>
</div>
<Footer handleChatToggle={handleChatToggle} />
</Pane>
<div style={{ ...layoutCSS, background: "#d5d7d9" }}>
Expand Down
1 change: 1 addition & 0 deletions src/icons/carretGreen.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,16 @@ body {
overflow: hidden;
}

/* views */

.left-view,
.right-view {
flex: 1;
background-color: #A0A0A0;
aspect-ratio: 16/9;
margin: 0 3px;
}

/* chat */

.close-chat-btn {
Expand Down
5 changes: 3 additions & 2 deletions src/sections/Footer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import SettingsIcon from "../icons/settings.svg";
import ShareScreenIcon from "../icons/shareScreen.svg";
import WhiteboardsIcon from "../icons/whiteboards.svg";
import CarretIcon from "../icons/carret.svg";
import CarretGreenIcon from "../icons/carretGreen.svg";

function Footer({handleChatToggle}) {
return (
Expand Down Expand Up @@ -51,8 +52,8 @@ function Footer({handleChatToggle}) {
<div>
<img src={ShareScreenIcon}></img>
</div>
<img className="footer-micOff-carretIcon" src={CarretIcon}></img>
<p>Share Screen</p>
<img className="footer-micOff-carretIcon" src={CarretGreenIcon}></img>
<p style={{color: '#28E567'}}>Share Screen</p>
</div>
<div
onClick={handleChatToggle}
Expand Down

0 comments on commit 99fe7bf

Please sign in to comment.