Files: f4d5311f0568a4e8494ef82c9a12ff9545d9f9cd / views / new.test.js
574 bytesRaw
1 | // run: |
2 | // $ npx electro views/new.test.js |
3 | |
4 | const h = require('mutant/h') |
5 | |
6 | const NewScry = require('./new') |
7 | require('../lib/styles-inject')() |
8 | |
9 | const newScry = NewScry({ |
10 | }) |
11 | |
12 | document.body.appendChild(newScry) |
13 | document.head.appendChild( |
14 | h('style', ` |
15 | body { |
16 | --gradient: linear-gradient(45deg, hsla(60, 100%, 56%, .5), hsla(280, 100%, 46%, 0.3)); |
17 | --texture: left top 0 / 3px radial-gradient(white, #de82e6) repeat ; |
18 | background: var(--texture), var(--gradient); |
19 | background-blend-mode: darken; |
20 | |
21 | height: 100vh; |
22 | padding: 2rem; |
23 | } |
24 | `) |
25 | ) |
26 |
Built with git-ssb-web