Initial Commit
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
module.exports = class {
|
||||
onCreate(input) {
|
||||
this.state = Object.assign({}, input.chapter)
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
<div class="story-chapter">
|
||||
<a class="anchor" id=state.id />
|
||||
<div class="metadata">
|
||||
<chapter-meta kind="title" value=state.title />
|
||||
<chapter-meta kind="date" value=state.fictionalDate />
|
||||
<chapter-meta weak kind="date" value=state.createdDate />
|
||||
<chapter-meta weak kind="author" value=state.author />
|
||||
</div>
|
||||
<markdown class="chapter-content" source=state.source />
|
||||
</div>
|
||||
@@ -0,0 +1,14 @@
|
||||
.story-chapter {
|
||||
padding-bottom: 1em;
|
||||
|
||||
.metadata {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
a.anchor {
|
||||
display: block;
|
||||
position: relative;
|
||||
top: -8em;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user