frontend/smart-hut/src/components/dashboard/devices/SensorStyle.js

109 lines
2.0 KiB
JavaScript
Raw Normal View History

2020-03-23 20:24:17 +00:00
export const style = {
2020-05-12 13:18:33 +00:00
width: '10rem',
height: '10rem',
position: 'absolute',
top: '0',
left: '0',
2020-03-23 20:24:17 +00:00
};
2020-03-25 15:04:02 +00:00
export const container = {
2020-05-12 13:18:33 +00:00
width: '10rem',
height: '10rem',
borderRadius: '100%',
border: 'none',
position: 'relative',
2020-03-25 16:20:53 +00:00
};
2020-03-25 15:04:02 +00:00
export const sensorText = {
2020-05-12 13:18:33 +00:00
fill: '#3e99ff',
fontSize: '1.2rem',
fontFamily: 'Lato',
overflow: 'hidden',
whiteSpace: 'nowrap',
textOverflow: 'ellipsis',
userSelect: 'none',
2020-03-23 20:24:17 +00:00
};
export const valueStyle = {
2020-05-12 13:18:33 +00:00
fill: '#3e99ff',
fontSize: '2.4rem',
fontFamily: 'Lato',
userSelect: 'none',
};
export const errorStyle = {
2020-05-12 13:18:33 +00:00
fill: '#ff4050',
fontSize: '1.5rem',
fontFamily: 'Lato',
textShadow: '1px 1px 0.5px rgba(0, 0, 0, .2)',
userSelect: 'none',
2020-03-23 20:24:17 +00:00
};
2020-03-25 15:04:02 +00:00
export const motionSensorInnerCircle = {
2020-05-12 13:18:33 +00:00
position: 'absolute',
top: '50%',
left: '50%',
transform: 'translate(-50%, -50%)',
width: '8rem',
height: '8rem',
borderRadius: '100%',
border: 'none',
2020-03-25 16:20:53 +00:00
};
2020-03-25 15:04:02 +00:00
export const motionSensorOuterCircle = {
2020-05-12 13:18:33 +00:00
textAlign: 'center',
cursor: 'pointer',
position: 'relative',
width: '10rem',
height: '10rem',
borderRadius: '100%',
border: 'none',
/* boxShadow: "3px 2px 10px 5px #ccc", */
2020-03-25 16:20:53 +00:00
};
2020-03-25 15:04:02 +00:00
export const nameMotionStyle = {
2020-05-12 13:18:33 +00:00
position: 'absolute',
top: '50%',
left: '50%',
transform: 'translateX(-50%)',
fontSize: '1.2rem',
overflow: 'hidden',
whiteSpace: 'nowrap',
textOverflow: 'ellipsis',
2020-03-25 16:20:53 +00:00
};
2020-03-25 15:04:02 +00:00
export const motionSensorIcon = {
2020-05-12 13:18:33 +00:00
width: '2rem',
height: '2rem',
position: 'absolute',
top: '15%',
left: '50%',
transform: 'translateX(-50%)',
2020-03-25 16:20:53 +00:00
};
2020-03-25 15:04:02 +00:00
export const temperatureSensorColors = {
2020-05-12 13:18:33 +00:00
circle: '#323232',
progress: '#ff1e56',
text: 'white',
2020-03-25 16:20:53 +00:00
};
2020-03-25 15:04:02 +00:00
export const lightSensorColors = {
2020-05-12 13:18:33 +00:00
circle: '#000839',
progress: '#ffa41b',
text: 'white',
2020-03-25 16:20:53 +00:00
};
2020-03-25 15:04:02 +00:00
export const humiditySensorColors = {
2020-05-12 13:18:33 +00:00
circle: '#005082',
progress: '#00a8cc',
text: 'white',
2020-03-25 16:20:53 +00:00
};
2020-03-25 15:04:02 +00:00
export const iconSensorStyle = {
2020-05-12 13:18:33 +00:00
position: 'absolute',
top: '20%',
left: '50%',
transform: 'translateX(-50%)',
width: '2rem',
height: '2rem',
2020-03-25 16:20:53 +00:00
};