Started code review + some fixes (unfinished)
[vchess.git] / client / src / views / About.vue
index 3fa2807..711cc0b 100644 (file)
@@ -1,5 +1,31 @@
-<template>
-  <div class="about">
-    <h1>This is an about page</h1>
-  </div>
+<template lang="pug">
+main
+  .row
+    .col-sm-12.col-md-10.col-md-offset-1.col-lg-8.col-lg-offset-2
+      div(v-html="content")
 </template>
+
+<script>
+import { store } from "@/store";
+export default {
+  name: "my-about",
+  computed: {
+    content: function() {
+      return (
+        require("raw-loader!@/translations/about/" + store.state.lang + ".pug")
+          // Next two lines fix a weird issue after last update (2019-11)
+          .replace(/\\[n"]/g, " ")
+          .replace('module.exports = "', "")
+          .replace(/"$/, "")
+      );
+    }
+  }
+};
+</script>
+
+<style lang="sass">
+#links
+  margin: var(--universal-margin);
+  & > a
+    display: block
+</style>