- Time: {{ new Date() }}
+ Time: {{ time }}
-s
\ No newline at end of file
+
+
+
\ No newline at end of file
diff --git a/src/demos/Time/style.css b/src/demos/Time/style.css
index e69de29b..15ed3449 100644
--- a/src/demos/Time/style.css
+++ b/src/demos/Time/style.css
@@ -0,0 +1,6 @@
+div {
+ background-color: black;
+ border-radius: 5px;
+ color: white;
+ padding: 20px;
+}
\ No newline at end of file
diff --git a/src/main.js b/src/main.js
index cb736857..eac059ed 100644
--- a/src/main.js
+++ b/src/main.js
@@ -1,18 +1,16 @@
// This is the main.js file. Import global CSS and scripts here.
// The Client API can be used here. Learn more: gridsome.org/docs/client-api
+import Prism from 'prismjs'
import 'prismjs/themes/prism-okaidia.css'
import DefaultLayout from '~/layouts/Default.vue'
-
-import Prism from 'prismjs'
-
+import Demo from '~/components/Demo.vue'
export default function (Vue, { router, head, isClient }) {
-
+ Vue.component('Layout', DefaultLayout)
+ Vue.component('Demo', Demo)
Vue.filter('highlight', (code, lang = 'javascript') => {
return Prism.highlight(code, Prism.languages[lang], lang)
})
-
- Vue.component('Layout', DefaultLayout)
}