- HTML
- CSS
- JAVASCRIPT
Color | Hex |
---|---|
White | #fff |
Navy | #162938 |
- WALLPAPER
- ICONS
- CLOSE ICON
<ion-icon name="close"></ion-icon>
- USER ICON
<ion-icon name="person"></ion-icon>
- EMAIL ICON
<ion-icon name="mail"></ion-icon>
- PASSWORD ICON
<ion-icon name="lock-closed"></ion-icon>
- CLOSE ICON
- Responsive design
- Custom CSS variables
- Manipulation of CSS variables using JavaScript
- Device orientation detection
@media only screen and (max-width: 480px) {
}
@media screen and (min-width: 481px) and (max-width: 768px) and (orientation: portrait) {
}
@media screen and (min-width: 481px) and (max-width: 768px) and (orientation: landscape) {
}
:root {
--deviceWidth: 375px;
--deviceHeight: 667px;
}
const root = document.querySelector(':root');
const defaultDeviceWidth = getComputedStyle(root).getPropertyValue('--deviceWidth');
const defaultDeviceHeight = getComputedStyle(root).getPropertyValue('--deviceHeight');
console.log({defaultDeviceWidth});
console.log({defaultDeviceHeight});
:root {
--deviceWidth: 375px;
--deviceHeight: 667px;
}
const root = document.querySelector(':root');
root.style.setProperty('--deviceWidth', '480px');
root.style.setProperty('--deviceHeight', '768px');
console.log({deviceWidth});
console.log({deviceHeight});
screen.orientation.addEventListener("change", function() {
if (screen.orientation.type.includes("portrait")) {
// Portrait mode
console.log('Portrait');
} else {
// Landscape mode
console.log('Landscape');
}
});