@@ -41,25 +41,34 @@ function showAddToHomeScreen() {
41
41
42
42
pwaInstallPrompt . id = 'pwa-install-prompt' ;
43
43
pwaInstallPrompt . style . position = 'absolute' ;
44
- pwaInstallPrompt . style . bottom = '0' ;
44
+ pwaInstallPrompt . style . bottom = '1rem' ;
45
+ pwaInstallPrompt . style . left = '1rem' ;
46
+ pwaInstallPrompt . style . right = '1rem' ;
47
+ pwaInstallPrompt . style . padding = '0.3rem' ;
45
48
pwaInstallPrompt . style . display = 'flex' ;
46
- pwaInstallPrompt . style . width = '100vw' ;
47
- pwaInstallPrompt . style . backgroundColor = 'darkslategrey' ;
48
- pwaInstallPrompt . style . color = 'white' ;
49
- pwaInstallPrompt . style . fontSize = '2rem' ;
49
+ pwaInstallPrompt . style . backgroundColor = 'lightslategray' ;
50
+ pwaInstallPrompt . style . color = 'white' ;
51
+ pwaInstallPrompt . style . fontFamily = 'sans-serif' ;
52
+ pwaInstallPrompt . style . fontSize = '1.2rem' ;
53
+ pwaInstallPrompt . style . borderRadius = '4px' ;
50
54
51
- pwaInstallButton . style . marginLeft = 'auto' ;
52
- pwaInstallButton . style . width = '4em' ;
53
- pwaInstallButton . style . backgroundColor = 'green' ;
54
- pwaInstallButton . style . color = 'white' ;
55
+ pwaInstallButton . style . marginLeft = 'auto' ;
56
+ pwaInstallButton . style . width = '4em' ;
57
+ pwaInstallButton . style . backgroundColor = '#00796B' ;
58
+ pwaInstallButton . style . color = 'white' ;
59
+ pwaInstallButton . style . border = 'none' ;
60
+ pwaInstallButton . style . borderRadius = '25px' ;
55
61
56
- pwaCancelButton . style . marginLeft = '0.3rem' ;
57
- pwaCancelButton . style . backgroundColor = 'darkslategray' ;
58
- pwaCancelButton . style . color = 'white' ;
62
+ pwaCancelButton . style . marginLeft = '0.3rem' ;
63
+ pwaCancelButton . style . width = '4em' ;
64
+ pwaCancelButton . style . backgroundColor = '#9d0d0d' ;
65
+ pwaCancelButton . style . color = 'white' ;
66
+ pwaCancelButton . style . border = 'none' ;
67
+ pwaCancelButton . style . borderRadius = '25px' ;
59
68
60
- pwaInstallPrompt . innerText = 'Add to your homescreen! ' ;
61
- pwaInstallButton . innerText = 'OK ' ;
62
- pwaCancelButton . innerText = 'Ignore ' ;
69
+ pwaInstallPrompt . innerText = 'Add to your homescreen? ' ;
70
+ pwaInstallButton . innerText = 'ok ' ;
71
+ pwaCancelButton . innerText = 'no ' ;
63
72
64
73
pwaInstallPrompt . appendChild ( pwaInstallButton ) ;
65
74
pwaInstallPrompt . appendChild ( pwaCancelButton ) ;
0 commit comments