Last active
March 16, 2018 07:28
-
-
Save holandes22/a64d979372752c73a2bed72b944305c5 to your computer and use it in GitHub Desktop.
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 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; |
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
// ---------------------------------------------------------------------------- | |
// 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