-
-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* new build; * add build * another build * new build * correct build * assets update about fix the toolbar details * build * build * change the logo * add abstracted logo * added 3D theme * new build * add the icons * update icons * pass tests * tst description * delete icons * fix mising icons + format
- Loading branch information
OlegMoshkovich
committed
Feb 11, 2022
1 parent
35675ab
commit bc52fc5
Showing
70 changed files
with
1,554 additions
and
1,702 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,110 +1,117 @@ | ||
import React from 'react' | ||
import {makeStyles} from '@mui/styles' | ||
import Paper from '@mui/material/Paper' | ||
import IconButton from '@mui/material/IconButton' | ||
import Close from '../assets/Close.svg' | ||
import Info from '../assets/Info.svg' | ||
import InfoOn from '../assets/InfoOn.svg' | ||
import Typography from '@mui/material/Typography' | ||
import { makeStyles } from '@mui/styles' | ||
import About from '../assets/3D/attention.svg' | ||
|
||
|
||
export function AboutControl ({offsetTop}) { | ||
const [open, setOpen]=React.useState(true); | ||
const classes = useStyles(); | ||
return ( | ||
<div > | ||
<Typography className = {classes.about} onClick={() => {setOpen(!open)}}>About</Typography> | ||
{open && <AboutPanel openToggle={()=>{setOpen(!open)}} offsetTop={offsetTop}/>} | ||
</div>); | ||
}; | ||
|
||
function AboutPanel ({openToggle, offsetTop}) { | ||
const classes = useStyles({offsetTop:offsetTop}); | ||
|
||
return ( | ||
<div className = {classes.container} onClick = {openToggle}> | ||
<Paper elevation={3} className={classes.panel}> | ||
<h1 style = {{width:'100%', display:'flex', justifyContent:'center', paddingTop:'10px'}}><About/></h1> | ||
<p><strong>BLDRS</strong> is a collaborative integration environment for IFCs 🙂</p> | ||
<p> We are open source 🌱 Please visit our repository: | ||
<a href = {'https://github.com/buildrs/Share'} target="_new">github.com/buildrs/Share</a></p> | ||
<p>We are just getting started, stay tuned for the upcoming MVP release 🚀</p> | ||
<h2 >Features:</h2> | ||
<ul> | ||
<li>Upload IFC file</li> | ||
<li>Share IFC model with the URL address</li> | ||
<li>Select IFC element</li> | ||
<li>Obtain IFC element properties </li> | ||
</ul> | ||
</Paper> | ||
</div> | ||
); | ||
}; | ||
|
||
const useStyles = makeStyles({ | ||
container: { | ||
container:{ | ||
position: 'absolute', | ||
top: '0px', | ||
left: '0px', | ||
width: '100%', | ||
height: '100vh', | ||
display: 'flex', | ||
justifyContent: 'center', | ||
top:'0px', | ||
left:'0px', | ||
width:'100%', | ||
height:'100vh', | ||
display:'flex', | ||
justifyContent:'center', | ||
}, | ||
panel: { | ||
'position': 'relative', | ||
'top': (props) => props.offsetTop, | ||
'width': '460px', | ||
'height': '320px', | ||
'fontFamily': 'Helvetica', | ||
'padding': '1em 1em', | ||
position:'relative', | ||
top: (props) => props.offsetTop, | ||
width: '320px', | ||
height:'380px', | ||
fontFamily: 'Helvetica', | ||
padding: '1em 1em', | ||
'@media (max-width: 900px)': { | ||
width: '86%', | ||
height: '360px', | ||
width: '84%', | ||
height:'400px', | ||
}, | ||
'& h1, & h2': { | ||
"& h1, & h2": { | ||
color: '#696969', | ||
fontWeight: 200, | ||
fontWeight:200 | ||
}, | ||
'& h1': { | ||
"& h1": { | ||
marginTop: 0, | ||
fontWeight: 200, | ||
fontWeight:200 | ||
}, | ||
"& h2": { | ||
textAlign:'center', | ||
fontSize:'20px' | ||
}, | ||
"& p": { | ||
fontWeight:200, | ||
textAlign:'center', | ||
lineHeight:'19px', | ||
'@media (max-width: 900px)': { | ||
lineHeight:'22px' | ||
}, | ||
}, | ||
"& li": { | ||
fontWeight:200, | ||
}, | ||
'& p, & li': { | ||
fontWeight: 200, | ||
"& a": { | ||
color:'lime', | ||
backgroundColor:'#848484', | ||
paddingLeft:'4px', | ||
paddingRight:'4px', | ||
paddingBottom:'2px', | ||
cornerRadius:'2px' | ||
}, | ||
|
||
}, | ||
icon: { | ||
width: '30px', | ||
height: '30px', | ||
cursor: 'pointer', | ||
|
||
about:{ | ||
cursor:'pointer', | ||
paddingRight:'10px', | ||
}, | ||
icon:{ | ||
width:'30px', | ||
height:'30px', | ||
cursor:'pointer' | ||
}, | ||
closeButton: { | ||
'float': 'right', | ||
'cursor': 'pointer', | ||
'marginTop': '8px', | ||
'& svg': { | ||
width: '24px', | ||
height: '20px', | ||
float:'right', | ||
cursor:'pointer', | ||
marginTop:'8px', | ||
"& svg": { | ||
width:'24px', | ||
height:'20px', | ||
}, | ||
}, | ||
}) | ||
} | ||
}); | ||
|
||
|
||
const AboutIcon = ({offsetTop}) => { | ||
const [open, setOpen]=React.useState(true) | ||
const classes = useStyles() | ||
return ( | ||
<div > | ||
<IconButton | ||
className={classes.iconButton} | ||
aria-label='About' | ||
onClick={() => { | ||
setOpen(!open) | ||
}} | ||
> | ||
{open ? <InfoOn className = {classes.icon}/> : <Info className = {classes.icon}/> } | ||
</IconButton> | ||
{open && <AboutPanel openToggle={()=>{ | ||
setOpen(!open) | ||
}} offsetTop={offsetTop}/>} | ||
</div>) | ||
} | ||
|
||
|
||
const AboutPanel = ({openToggle, offsetTop}) => { | ||
const classes = useStyles({offsetTop: offsetTop}) | ||
|
||
return ( | ||
<div className = {classes.container}> | ||
<Paper elevation={3} className={classes.panel}> | ||
<div className = {classes.closeButton} onClick = {openToggle}><Close/></div> | ||
<h1>About</h1> | ||
<p><strong>BLDRS</strong> is a collaborative integration environment for IFC files. | ||
We are just getting started! Stay tuned for the upcoming MVP release.</p> | ||
<p>BLDRS is an open source project. Please visit our repository: | ||
<a | ||
href = {'https://github.com/buildrs/Share'} | ||
target="_new">github.com/buildrs/Share</a></p> | ||
<h2>Features</h2> | ||
<ul> | ||
<li>Upload IFC file</li> | ||
<li>Select IFC element</li> | ||
<li>Get IFC element properties </li> | ||
<li>Share IFC element with the URL address</li> | ||
</ul> | ||
</Paper> | ||
</div> | ||
) | ||
} | ||
|
||
export { | ||
AboutIcon, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.