add hero component to examples
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
|
||||
&__footer {
|
||||
text-align: center;
|
||||
margin-bottom: 2rem;
|
||||
}
|
||||
|
||||
&__source-link {
|
||||
|
||||
14
examples/Components/Hero/index.vue
Normal file
14
examples/Components/Hero/index.vue
Normal 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>
|
||||
15
examples/Components/Hero/style.scss
Normal file
15
examples/Components/Hero/style.scss
Normal 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;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user