mirror of
https://github.com/fleetdm/fleet
synced 2026-04-21 21:47:20 +00:00
* LoginPage component and route * animated SVG background image utility * Kolide text, User, Lock, & Kolide logo SVG icons * styleguide * Adds global footer * Adds InputFieldWithIcon component * Adds LoginForm component * Render LoginForm from the LoginPage
48 lines
964 B
JavaScript
48 lines
964 B
JavaScript
import styles from '../../../../styles';
|
|
|
|
const { color, font, padding } = styles;
|
|
|
|
export default {
|
|
containerStyles: {
|
|
marginTop: padding.base,
|
|
position: 'relative',
|
|
},
|
|
iconStyles: {
|
|
position: 'absolute',
|
|
right: '6px',
|
|
top: '29px',
|
|
},
|
|
inputStyles: (value) => {
|
|
const baseStyles = {
|
|
borderLeft: 'none',
|
|
borderRight: 'none',
|
|
borderTop: 'none',
|
|
borderBottomWidth: '1px',
|
|
borderBottomStyle: 'solid',
|
|
borderBottomColor: color.brightPurple,
|
|
color: color.purple,
|
|
width: '378px',
|
|
':focus': {
|
|
outline: 'none',
|
|
},
|
|
};
|
|
|
|
if (value) {
|
|
return {
|
|
...baseStyles,
|
|
color: color.grey,
|
|
};
|
|
}
|
|
|
|
return baseStyles;
|
|
},
|
|
placeholderStyles: (value) => {
|
|
if (!value) return { visibility: 'hidden', height: '22px' };
|
|
|
|
return {
|
|
color: color.brightPurple,
|
|
fontSize: font.small,
|
|
textTransform: 'lowercase',
|
|
};
|
|
},
|
|
};
|