This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React, { Component } from 'react' | |
| import ReactDOM from 'react-dom' | |
| const Blur = (radius) = ` | |
| filter: url(#svgBlur); | |
| filter: blur(${radius || 5}px); | |
| ` | |
| const SVGBlur = ({ radius }) = ( | |
| <svg style={{ position: 'absolute', top: '-99999px' }} xmlns="http://www.w3.org/2000/svg"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const phantom = require('phantom') | |
| const clientRenderedHtml = (url, callback) => { | |
| let _ph, _page, _content | |
| phantom.create().then(ph => { | |
| _ph = ph | |
| return _ph.createPage() | |
| }).then(page => { | |
| _page = page | |
| return _page.property('viewportSize', { width: 1920 }) |