add hero component to examples

This commit is contained in:
Philipp Kühn
2018-08-23 08:03:42 +02:00
parent 47909e5890
commit daa2776ced
6 changed files with 46 additions and 4 deletions

View File

@@ -2,6 +2,9 @@
<div class="page" spellcheck="false">
<navigation />
<hero />
<subnavigation />
<div class="page__content">
@@ -24,6 +27,7 @@
<script>
import Navigation from 'Components/Navigation'
import Hero from 'Components/Hero'
import Subnavigation from 'Components/Subnavigation'
import Icon from 'Components/Icon'
import Ad from 'Components/Ad'
@@ -31,6 +35,7 @@ import Ad from 'Components/Ad'
export default {
components: {
Navigation,
Hero,
Subnavigation,
Icon,
Ad,

View File

@@ -8,6 +8,7 @@
&__footer {
text-align: center;
margin-bottom: 2rem;
}
&__source-link {

View File

@@ -0,0 +1,14 @@
<template>
<div class="hero">
<div class="hero__inner">
<h1>
tiptap a renderless rich-text editor toolkit for Vue.js
</h1>
<p>
This editor is based on <a href="https://prosemirror.net">Prosemirror</a>, <em>fully extendable</em> and renderless. There is a plugin system that lets you render each node as <strong>a vue component</strong>.
</p>
</div>
</div>
</template>
<style lang="scss" src="./style.scss" scoped></style>

View File

@@ -0,0 +1,15 @@
@import "~variables";
.hero {
background-color: $color-black;
color: $color-white;
text-align: center;
padding: 3rem 1rem;
&__inner {
margin: 0 auto;
max-width: 30rem;
}
}

View File

@@ -89,11 +89,11 @@
</div>
<div class="editor__content" slot="content" slot-scope="props">
<h1>
A renderless rich-text editor for Vue.js
</h1>
<h2>
Menu Bar
</h2>
<p>
This editor is based on <a href="https://prosemirror.net">Prosemirror</a>, <em>fully extendable</em> and renderless. There is a plugin system that lets you render each node as <strong>a vue component</strong>.
This is a very <em>basic</em> example of tiptap.
</p>
<pre><code>body { display: none; }</code></pre>
<ul>

View File

@@ -38,6 +38,7 @@ a {
h1,
h2,
h3,
p,
ul,
ol,
@@ -53,3 +54,9 @@ blockquote {
margin-bottom: 0;
}
}
h1,
h2,
h3 {
line-height: 1.3;
}