Merge pull request #5 from CPSC319-Winter-term-2/cochrane

Cochrane
This commit is contained in:
cth0604 2022-03-07 14:32:04 -08:00 committed by GitHub
commit ff53f91a62
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
11 changed files with 196 additions and 229 deletions

View File

@ -1,89 +1,20 @@
import people from "./images/people.png";
import plus from "./images/plus.png";
import phoneCall from "./images/phone-call.png";
import circle from "./images/circle.png";
import MeetingsPanel from "./MeetingsPanel";
import ShortCuts from "./ShortCuts";
import Container from "@mui/material/Container";
import Grid from "@mui/material/Grid";
const Home: React.FC = () => {
return (
<html lang="en">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Digital Walk-Around</title>
</head>
<body>
<div className="container-fluid">
<div className="row main-home">
<div className="col-8">
<div className="meetings-panel">
<div className="row current-time">
<label>10:34 AM</label>
</div>
<div className="row current-date">
<label>Sunday, 03 Feb 2022</label>
</div>
<div className="row meeting">
<div className="col-12">
<div className="row">
<label>Metting Name</label>
</div>
<div className="row">
<label>Metting time</label>
</div>
</div>
</div>
</div>
</div>
<div className="col-4 short-cuts">
<div className="row row-1">
<div className="col-6">
<div className="row">
<a className="tile btn">
<img src={people} />
</a>
</div>
<div className="row">
<label>New Meeting</label>
</div>
</div>
<div className="col-6">
<div className="row">
<a className="tile btn">
<img src={plus} />
</a>
</div>
<div className="row">
<label>Join</label>
</div>
</div>
</div>
<div className="row row-2">
<div className="col-6">
<div className="row">
<a className="tile btn">
<img src={phoneCall} />
</a>
</div>
<div className="row">
<label>Call Favourites</label>
</div>
</div>
<div className="col-6">
<div className="row">
<a className="tile btn">
<img src={circle} />
</a>
</div>
<div className="row">
<label>Recordings</label>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>
<Container className="main-home">
<Grid container>
<Grid item sm={8}>
<MeetingsPanel />
</Grid>
<Grid item sm={4}>
<ShortCuts />
</Grid>
</Grid>
</Container>
);
};

View File

@ -0,0 +1,17 @@
function Meeting(props: any) {
return (
<div className="row meeting">
<div className="col-12">
<div className="row">
<label>{props.meetingName}</label>
</div>
<div className="row">
<label>{props.meetingTime}</label>
</div>
</div>
</div>
);
};
export default Meeting;

View File

@ -0,0 +1,19 @@
import Meeting from "./Meeting";
const MeetingsPanel: React.FC = () => {
return (
<div className="meetings-panel">
<div className="row current-time">
<label>10:34 AM</label>
</div>
<div className="row current-date">
<label>Sunday, 03 Feb 2022</label>
</div>
<Meeting meetingName="first meeting" meetingTime="time" />
<Meeting meetingName="second meeting" meetingTime="time" />
</div>
);
};
export default MeetingsPanel;

View File

@ -0,0 +1,43 @@
import PeopleIcon from '@mui/icons-material/People';
import AddIcon from '@mui/icons-material/Add';
import PhoneEnabledIcon from '@mui/icons-material/PhoneEnabled';
import CircleIcon from '@mui/icons-material/Circle';
import Button from "@mui/material/Button";
import Grid from "@mui/material/Grid";
const ShortCuts: React.FC = () => {
return (
<div className="short-cuts" >
<Grid className="row-1" container spacing={1}>
<Grid item sm={6}>
<Button className="tile">
<PeopleIcon className="icon" />
</Button>
<label>New Meeting</label>
</Grid>
<Grid item sm={6}>
<Button className="tile">
<AddIcon className="icon" />
</Button>
<label>Join</label>
</Grid>
</Grid>
<Grid className="row-2" container spacing={1}>
<Grid item sm={6}>
<Button className="tile">
<PhoneEnabledIcon className="icon" />
</Button>
<label>Call Favourites</label>
</Grid>
<Grid item sm={6}>
<Button className="tile">
<CircleIcon className="icon" />
</Button>
<label>Recordings</label>
</Grid>
</Grid>
</div>
);
};
export default ShortCuts;

View File

@ -0,0 +1,11 @@
import Container from "@mui/material/Container";
const Login: React.FC = () => {
return (
<Container className="login">
Login
</Container>
);
};
export default Login;

View File

@ -1,116 +1,49 @@
.col-1 {
width: 8.33% !important;
}
.col-2 {
width: 16.66% !important;
}
.col-3 {
width: 25% !important;
}
.col-4 {
width: 33.33% !important;
}
.col-5 {
width: 41.66% !important;
}
.col-6 {
width: 50% !important;
}
.col-7 {
width: 58.33% !important;
}
.col-8 {
width: 66.66% !important;
}
.col-9 {
width: 75% !important;
}
.col-10 {
width: 83.33% !important;
}
.col-11 {
width: 91.66% !important;
}
.col-12 {
width: 100% !important;
}
[class*="col-"] {
-webkit-box-flex: 0;
-ms-flex: 0 0 auto;
flex: 0 0 auto;
}
.row {
-webkit-box-sizing: border-box;
box-sizing: border-box;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
max-width: 100%;
}
.row * {
.full-width {
width: 100%;
}
.container-fluid {
width: 100%;
margin-right: auto;
margin-left: auto;
}
label {
display: inline-block;
.main-home {
max-width: 85% !important;
}
.main-home .meetings-panel {
display: block;
margin-top: 20vh;
margin-left: 10vw;
margin: auto;
margin-top: 15vh;
border-style: solid;
border-color: #D3D3D3;
border-width: 2px;
width: 40vw;
height: 60vh;
border-radius: 40px;
width: 65%;
height: 65vh;
overflow: hidden;
}
.main-home .meetings-panel .row {
width: 100%;
margin: 0;
}
.main-home .meetings-panel .current-time {
text-align: center;
background-color: grey;
padding-top: 1%;
padding-bottom: 1%;
}
.main-home .meetings-panel .current-date {
text-align: center;
background-color: grey;
padding-bottom: 1%;
}
.main-home .meetings-panel .meeting {
background-color: #D3D3D3;
text-align: center;
margin-top: 15px;
line-height: 2;
}
.main-home .short-cuts .row-1 {
margin-top: 25vh;
margin-top: 30vh;
}
.main-home .short-cuts .row-2 {
@ -118,21 +51,22 @@ label {
}
.main-home .short-cuts label {
width: 10vw;
display: inline-block;
width: 100px;
text-align: center;
}
.main-home .short-cuts .tile {
margin-right: 100%;
background-color: #D3D3D3;
width: 10vw;
height: 10vw;
border-radius: 1.5vw;
width: 100px;
height: 100px;
border-radius: 16px;
}
.main-home .short-cuts .tile img {
.main-home .short-cuts .tile .icon {
color: black;
width: 70%;
height: 70%;
margin-top: 15%;
margin-left: 15%;
}
/*# sourceMappingURL=style.css.map */
/*# sourceMappingURL=App.css.map */

View File

@ -1,8 +1,8 @@
{
"version": 3,
"mappings": "AGAA,AAAA,MAAM,CAAC;EACH,KAAK,EAAE,gBAAgB;CAAG;;AAC9B,AAAA,MA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O0CxB,KAAK,EAAE,KAAK;EACZ,MAAM,EAAE,KAAK;EACb,aAAa,EAAE,IAAI;CAIC;;AAhDhC,AA6CY,UA7CF,CA8BN,WAAW,CASP,KAAK,CAMD,KAAK,CAAC;EACF,KAAK,EAAE,KAAK;EACZ,KAAK,EAAE,GAAG;EACV,MAAM,EAAE,GAAG;CAAG",
"sources": [
"style.sass",
"App.sass",
"_variables.sass",
"base/_base-dir.sass",
"base/_base.sass",
@ -10,8 +10,9 @@
"layouts/_header.sass",
"layouts/_footer.sass",
"modules/_modules-dir.sass",
"modules/_mainHome.sass"
"modules/_mainHome.sass",
"modules/_login.sass"
],
"names": [],
"file": "style.css"
"file": "App.css"
}

View File

@ -1,42 +1,46 @@
.col-1
width: 8.33% !important
.col-2
width: 16.66% !important
.col-3
width: 25% !important
.col-4
width: 33.33% !important
.col-5
width: 41.66% !important
.col-6
width: 50% !important
.col-7
width: 58.33% !important
.col-8
width: 66.66% !important
.col-9
width: 75% !important
.col-10
width: 83.33% !important
.col-11
width: 91.66% !important
.col-12
width: 100% !important
// .col-1
// width: 8.33% !important
// .col-2
// width: 16.66% !important
// .col-3
// width: 25% !important
// .col-4
// width: 33.33% !important
// .col-5
// width: 41.66% !important
// .col-6
// width: 50% !important
// .col-7
// width: 58.33% !important
// .col-8
// width: 66.66% !important
// .col-9
// width: 75% !important
// .col-10
// width: 83.33% !important
// .col-11
// width: 91.66% !important
// .col-12
// width: 100% !important
[class*="col-"]
flex: 0 0 auto
// [class*="col-"]
// flex: 0 0 auto
.row
box-sizing: border-box
display: flex
max-width: 100%
*
width: 100%
// .row
// box-sizing: border-box
// display: flex
// max-width: 100%
// *
// width: 100%
.container-fluid
width: 100%
margin-right: auto
margin-left: auto
// .container-fluid
// width: 100%
// margin-right: auto
// margin-left: auto
label
display: inline-block
// label
// display: inline-block
.full-width
width: 100%

View File

@ -0,0 +1 @@
.login

View File

@ -1,44 +1,49 @@
.main-home
// margin: 0 !important
// width: 100% !important
max-width: 85% !important
.meetings-panel
display: block
margin-top: 20vh
margin-left: 10vw
margin: auto
margin-top: 15vh
border-style: solid
border-color: $main-home-background-color
border-width: 2px
width: 40vw
height: 60vh
border-radius: 40px
width: 65%
height: 65vh
overflow: hidden
.row
width: 100%
margin: 0
.current-time
text-align: center
background-color: grey
padding-top: 1%
padding-bottom: 1%
.current-date
text-align: center
background-color: grey
padding-bottom: 1%
.meeting
background-color: $main-home-background-color
text-align: center
margin-top: 15px
line-height: 2
.short-cuts
.row-1
margin-top: 25vh
margin-top: 30vh
.row-2
margin-top: 5vh
label
width: 10vw
display: inline-block
width: 100px
text-align: center
.tile
margin-right: 100%
background-color: $main-home-background-color
width: 10vw
height: 10vw
border-radius: 1.5vw
img
width: 100px
height: 100px
border-radius: 16px
.icon
color: black
width: 70%
height: 70%
margin-top: 15%
margin-left: 15%
height: 70%

View File

@ -1 +1,2 @@
@import "mainHome"
@import "mainHome"
@import "login"