moved to material ui

This commit is contained in:
CodeServer 2022-03-03 08:42:29 +00:00
parent 775c468548
commit e3b3256bd8
8 changed files with 135 additions and 202 deletions

View File

@ -1,18 +1,20 @@
import MeetingsPanel from "./MeetingsPanel"; import MeetingsPanel from "./MeetingsPanel";
import ShortCuts from "./ShortCuts"; import ShortCuts from "./ShortCuts";
import Container from "@mui/material/Container";
import Grid from "@mui/material/Grid";
const Home: React.FC = () => { const Home: React.FC = () => {
return ( return (
<div className="container-fluid"> <Container className="main-home">
<div className="row main-home"> <Grid container>
<div className="col-8"> <Grid item sm={8}>
<MeetingsPanel /> <MeetingsPanel />
</div> </Grid>
<div className="col-4 short-cuts"> <Grid item sm={4}>
<ShortCuts /> <ShortCuts />
</div> </Grid>
</div> </Grid>
</div> </Container>
); );
}; };

View File

@ -1,13 +1,13 @@
const Meeting: React.FC = () => { function Meeting(props: any) {
return ( return (
<div className="row meeting"> <div className="row meeting">
<div className="col-12"> <div className="col-12">
<div className="row"> <div className="row">
<label>Metting Name</label> <label>{props.meetingName}</label>
</div> </div>
<div className="row"> <div className="row">
<label>Metting time</label> <label>{props.meetingTime}</label>
</div> </div>
</div> </div>
</div> </div>

View File

@ -10,7 +10,8 @@ const MeetingsPanel: React.FC = () => {
<label>Sunday, 03 Feb 2022</label> <label>Sunday, 03 Feb 2022</label>
</div> </div>
<Meeting /> <Meeting meetingName="first meeting" meetingTime="time" />
<Meeting meetingName="second meeting" meetingTime="time" />
</div> </div>
); );
}; };

View File

@ -1,56 +1,43 @@
import people from "./images/people.png"; import PeopleIcon from '@mui/icons-material/People';
import plus from "./images/plus.png"; import AddIcon from '@mui/icons-material/Add';
import phoneCall from "./images/phone-call.png"; import PhoneEnabledIcon from '@mui/icons-material/PhoneEnabled';
import circle from "./images/circle.png"; // import phoneCall from "./images/phone-call.png";
import CircleIcon from '@mui/icons-material/Circle';
import Button from "@mui/material/Button";
import Grid from "@mui/material/Grid";
const ShortCuts: React.FC = () => { const ShortCuts: React.FC = () => {
return ( return (
<> <div className="short-cuts" >
<div className="row row-1"> <Grid className="row-1" container spacing={2}>
<div className="col-6"> <Grid item sm={6}>
<div className="row"> <Button className="tile">
<a className="tile btn"> <PeopleIcon className="icon" />
<img src={people} /> </Button>
</a> <label>New Meeting</label>
</div> </Grid>
<div className="row"> <Grid item sm={6}>
<label>New Meeting</label> <Button className="tile">
</div> <AddIcon className="icon" />
</div> </Button>
<div className="col-6"> <label>Join</label>
<div className="row"> </Grid>
<a className="tile btn"> </Grid>
<img src={plus} /> <Grid className="row-2" container spacing={2}>
</a> <Grid item sm={6}>
</div> <Button className="tile">
<div className="row"> <PhoneEnabledIcon className="icon" />
<label>Join</label> </Button>
</div> <label>Call Favourites</label>
</div> </Grid>
<Grid item sm={6}>
<Button className="tile">
<CircleIcon className="icon" />
</Button>
<label>Recordings</label>
</Grid>
</Grid>
</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>
</>
); );
}; };

View File

@ -1,116 +1,49 @@
.col-1 { .full-width {
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 * {
width: 100%; width: 100%;
} }
.container-fluid { .main-home {
width: 100%; max-width: 100% !important;
margin-right: auto;
margin-left: auto;
}
label {
display: inline-block;
} }
.main-home .meetings-panel { .main-home .meetings-panel {
display: block; margin: auto;
margin-top: 20vh; margin-top: 15vh;
margin-left: 10vw;
border-style: solid; border-style: solid;
border-color: #D3D3D3; border-color: #D3D3D3;
border-width: 2px; border-width: 2px;
width: 40vw;
height: 60vh;
border-radius: 40px; border-radius: 40px;
width: 65%;
height: 65vh;
overflow: hidden; overflow: hidden;
} }
.main-home .meetings-panel .row { .main-home .meetings-panel .row {
width: 100%; width: 100%;
margin: 0;
} }
.main-home .meetings-panel .current-time { .main-home .meetings-panel .current-time {
text-align: center; text-align: center;
background-color: grey; background-color: grey;
padding-top: 1%;
padding-bottom: 1%;
} }
.main-home .meetings-panel .current-date { .main-home .meetings-panel .current-date {
text-align: center; text-align: center;
background-color: grey; background-color: grey;
padding-bottom: 1%;
} }
.main-home .meetings-panel .meeting { .main-home .meetings-panel .meeting {
background-color: #D3D3D3; background-color: #D3D3D3;
text-align: center; text-align: center;
margin-top: 15px; margin-top: 15px;
line-height: 2;
} }
.main-home .short-cuts .row-1 { .main-home .short-cuts .row-1 {
margin-top: 25vh; margin-top: 30vh;
} }
.main-home .short-cuts .row-2 { .main-home .short-cuts .row-2 {
@ -118,21 +51,22 @@ label {
} }
.main-home .short-cuts label { .main-home .short-cuts label {
width: 10vw; display: inline-block;
width: 100px;
text-align: center; text-align: center;
} }
.main-home .short-cuts .tile { .main-home .short-cuts .tile {
margin-right: 100%;
background-color: #D3D3D3; background-color: #D3D3D3;
width: 10vw; width: 100px;
height: 10vw; height: 100px;
border-radius: 1.5vw; border-radius: 16px;
} }
.main-home .short-cuts .tile img { .main-home .short-cuts .tile .icon {
color: black;
width: 70%; width: 70%;
height: 70%; height: 70%;
margin-top: 15%;
margin-left: 15%;
} }
/*# sourceMappingURL=App.css.map */ /*# sourceMappingURL=App.css.map */

View File

@ -1,6 +1,6 @@
{ {
"version": 3, "version": 3,
"mappings": "AGAA,AA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AAK,CAAC;EACF,YAAY,EAAE,IAAI;EAClB,gBAAgB,EPzCC,OAAO;EO0CxB,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": [ "sources": [
"App.sass", "App.sass",
"_variables.sass", "_variables.sass",

View File

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

View File

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