diff options
| author | Jan Tuomi <jans.tuomi@gmail.com> | 2017-12-28 15:07:01 +0200 |
|---|---|---|
| committer | Jan Tuomi <jans.tuomi@gmail.com> | 2017-12-28 15:07:01 +0200 |
| commit | 04a05206ff197fef47a985a24dfde7ae9c405520 (patch) | |
| tree | d347c13c024d2a8f140e8054a6fc54e9785fca4e /src/components/post | |
| parent | a1c33b51cef94bdec1484aefa3196f733fff123d (diff) | |
Remake a lot of stuff
Diffstat (limited to 'src/components/post')
| -rw-r--r-- | src/components/post/index.js | 2 | ||||
| -rw-r--r-- | src/components/post/post.scss | 9 | ||||
| -rw-r--r-- | src/components/post/post.tag | 12 |
3 files changed, 23 insertions, 0 deletions
diff --git a/src/components/post/index.js b/src/components/post/index.js new file mode 100644 index 0000000..a3fac5e --- /dev/null +++ b/src/components/post/index.js @@ -0,0 +1,2 @@ +import post from './post.tag'; +export default post;
\ No newline at end of file diff --git a/src/components/post/post.scss b/src/components/post/post.scss new file mode 100644 index 0000000..8732257 --- /dev/null +++ b/src/components/post/post.scss @@ -0,0 +1,9 @@ +.post { + margin: 1rem 0 1rem; + padding: 1rem; + border-style: solid; +} + +.post:hover { + background-color: rgb(158, 222, 238); +}
\ No newline at end of file diff --git a/src/components/post/post.tag b/src/components/post/post.tag new file mode 100644 index 0000000..ca6040e --- /dev/null +++ b/src/components/post/post.tag @@ -0,0 +1,12 @@ +<post> + <div class="post"> + <h2>{ opts.title }</h2> + <small>Author: { opts.author }</small> + </div> + + <script type="es6"> + import style from './post.scss'; + + + </script> +</post> |
