Skip to content

Instantly share code, notes, and snippets.

@holandes22
Last active March 16, 2018 07:28
Show Gist options
  • Save holandes22/a64d979372752c73a2bed72b944305c5 to your computer and use it in GitHub Desktop.
Save holandes22/a64d979372752c73a2bed72b944305c5 to your computer and use it in GitHub Desktop.
import React from 'react';
import {Widget} from 'kitto';
import './iframe.scss';
class Iframe extends Widget {
iframe() {
return `<iframe src="https://www.w3schools.com"></iframe>`
}
render() {
return (
<div>
aaa
<div dangerouslySetInnerHTML={ this.iframe() } />
</div>
);
}
};
Widget.mount(Iframe);
export default Iframe;
// ----------------------------------------------------------------------------
// Sass declarations
// ----------------------------------------------------------------------------
$background-color: #ec663c;
$title-color: rgba(255, 255, 255, 0.7);
$moreinfo-color: rgba(255, 255, 255, 0.7);
$updated-at-color: rgba(0, 0, 0, 0.3);
// ----------------------------------------------------------------------------
// Widget-text styles
// ----------------------------------------------------------------------------
.widget-text {
background-color: $background-color;
.title {
color: $title-color;
}
.more-info {
color: $moreinfo-color;
}
.updated-at {
color: $updated-at-color;
}
& h3 {
font-size: 25px;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment