瀏覽代碼

started to customize

Bachir Soussi Chiadmi 5 年之前
父節點
當前提交
1017ecdc95
共有 5 個文件被更改,包括 19 次插入23 次删除
  1. 2 0
      README.md
  2. 8 2
      src/App.vue
  3. 5 0
      src/components/Home/PresentationMessage.vue
  4. 0 16
      src/components/Home/WelcomeMessage.vue
  5. 4 5
      src/pages/Home.vue

+ 2 - 0
README.md

@@ -10,9 +10,11 @@ npm install
 ```
 npm run dev
 ```
+open http://localhost:8080 in your browser
 ## run prod
 ```
 npm run prod
 ```
+then deploy the dist folder
 
 Based on VueJs template using Webpack 4 from the 'Vue.js and Webpack 4 From Scratch' article series on [itnext.io](https://itnext.io) from Daniel Cook.

+ 8 - 2
src/App.vue

@@ -1,6 +1,12 @@
 <template>
-  <div class="container center-content">
-    <RouterView />
+  <div id="root">
+    <header role="banner">
+      <h1>Les Guides de Paris</h1>
+    </header>
+    <section class="container center-content">
+      <RouterView />
+    </section>
+    <footer role="search-bar" />
   </div>
 </template>
 

+ 5 - 0
src/components/Home/PresentationMessage.vue

@@ -0,0 +1,5 @@
+<template>
+  <section>
+    <p>Post hoc impie perpetratum quod in aliis quoque iam timebatur, tamquam licentia crudelitati indulta per suspicionum nebulas aestimati quidam noxii damnabantur. quorum pars necati, alii puniti bonorum multatione actique laribus suis extorres nullo sibi relicto praeter querelas et lacrimas, stipe conlaticia victitabant, et civili iustoque imperio ad voluntatem converso cruentam, claudebantur opulentae domus et clarae.</p>
+  </section>
+</template>

+ 0 - 16
src/components/Home/WelcomeMessage.vue

@@ -1,16 +0,0 @@
-<template>
-  <div>
-    <h3>Hello {{ name }} from my Vue.js page, built with Webpack 4!</h3>
-  </div>
-</template>
-
-<script>
-export default {
-  props: {
-    name: {
-      type: String,
-      required: true
-    }
-  }
-}
-</script>

+ 4 - 5
src/pages/Home.vue

@@ -1,16 +1,15 @@
 <template>
-  <div class="full-width center-content">
-    <img src="static/img/logo.png">
-    <WelcomeMessage name="GDP" />
+  <div class="full-width">
+    <PresentationMessage />
   </div>
 </template>
 
 <script>
-import WelcomeMessage from 'components/Home/WelcomeMessage'
+import PresentationMessage from 'components/Home/PresentationMessage'
 
 export default {
   components: {
-    WelcomeMessage
+    PresentationMessage
   }
 }
 </script>