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

View File

@@ -8,6 +8,7 @@
&__footer { &__footer {
text-align: center; text-align: center;
margin-bottom: 2rem;
} }
&__source-link { &__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>
<div class="editor__content" slot="content" slot-scope="props"> <div class="editor__content" slot="content" slot-scope="props">
<h1> <h2>
A renderless rich-text editor for Vue.js Menu Bar
</h1> </h2>
<p> <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> </p>
<pre><code>body { display: none; }</code></pre> <pre><code>body { display: none; }</code></pre>
<ul> <ul>

View File

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