Allow custom site title + description, and refactored

This commit is contained in:
Alicia Sykes
2021-04-01 13:06:16 +01:00
parent 1965513096
commit 221324b41e
5 changed files with 36 additions and 18 deletions

View File

@@ -14,7 +14,10 @@
title="Clear search"
@click="clearFilterInput"></i>
</form>
<div class="space-filler"></div>
<div class="space-filler">
<span>hello</span>
<span>world</span>
</div>
<KeyboardShortcutInfo />
</section>
</template>

View File

@@ -1,6 +1,6 @@
<template>
<header>
<PageTitle />
<PageTitle :title="pageInfo.title" :description="pageInfo.description" />
<Nav class="nav"/>
</header>
</template>
@@ -15,6 +15,9 @@ export default {
PageTitle,
Nav,
},
props: {
pageInfo: Object,
},
};
</script>

View File

@@ -1,13 +1,17 @@
<template>
<div class="page-titles">
<h1>Networking Services</h1>
<span class="subtitle">Local network management and moniroting</span>
<h1>{{ title }}</h1>
<span class="subtitle">{{ description }}</span>
</div>
</template>
<script>
export default {
name: 'PageTitle',
props: {
title: String,
description: String,
},
};
</script>