Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[Chore] Nav Cleanup & Design Stub #16

Merged
merged 2 commits into from
Nov 23, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions components/Nav/src/Nav.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,6 @@ export default {
text: "Components",
route: "/components",
},
{
text: "Patterns",
route: "/patterns",
},
],
};
},
Expand Down
9 changes: 9 additions & 0 deletions pages/design.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<template>
<nuxt-child :key="$route.fullPath" />
</template>

<script>
export default {
layout: "documentation",
};
</script>
26 changes: 26 additions & 0 deletions pages/design/_design.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<template>
<h1 class="my-x3 text-d3 font-medium">{{ pageName }}</h1>
</template>

<script>
export default {
computed: {
pageName() {
let pageName = this.$route.params.design;
pageName = this.kebabToPascal(pageName);
return pageName;
},
},

methods: {
kebabToPascal(string) {
let spiltString = string.split("-");
for (var i = 0; i < spiltString.length; i++) {
spiltString[i] =
spiltString[i].charAt(0).toUpperCase() + spiltString[i].slice(1);
}
return spiltString.join("");
},
},
};
</script>
5 changes: 5 additions & 0 deletions pages/design/index.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<template>
<div>
<h1 class="my-x3 text-d3 font-medium">Design Main page</h1>
</div>
</template>