@@ -47,6 +47,8 @@ module.exports = class Render {
47
47
48
48
generate ( format ) {
49
49
let props = {
50
+ borderSize : '0px' ,
51
+ shadow : false ,
50
52
zoom : `0.9` ,
51
53
size : {
52
54
width : 880 ,
@@ -86,29 +88,30 @@ module.exports = class Render {
86
88
height : 66 * 20
87
89
} ;
88
90
89
- props . backgroundColor = `#FFFFE8` ;
91
+ props . shadow = true ;
92
+ props . borderSize = `3px` ;
93
+ props . backgroundColor = `#fffdf0` ;
90
94
props . textColor = colors . BLK ;
91
95
break ;
92
96
}
93
97
94
98
let css = [
95
99
`#container {` ,
100
+ ` margin-top: 10px;` ,
96
101
` font-family: monospace;` ,
97
102
` font-size: 18px;` ,
98
- ` border: solid black 1px ;` ,
103
+ ` border: solid black ${ props . borderSize } ;` ,
99
104
` width: ${ props . size . width } px;` ,
100
105
` height: ${ props . size . height } px;` ,
101
106
` position: absolute;` ,
102
107
` --g: transparent calc(100% - 1px), #ebebeb 0;` ,
103
108
` letter-spacing: 0.15px;` ,
104
109
` color: ${ props . textColor } ;` ,
105
- ` background:` ,
106
- // ` linear-gradient(to right, var(--g)),`,
107
- // ` linear-gradient(to bottom, var(--g)), `,
108
- ` ${ props . backgroundColor } ;` ,
110
+ ` background: ${ props . backgroundColor } ;` ,
109
111
` background-size:` ,
110
112
` 11px 100%,` ,
111
113
` 100% 20px;` ,
114
+ ( props . shadow ? `box-shadow: 5px 5px 5px grey;` : `` ) ,
112
115
`}` ,
113
116
`@keyframes blinker {` ,
114
117
` 50% {` ,
0 commit comments