Fix 8-pieces
[vchess.git] / client / src / views / About.vue
index 3fa2807..9a12c82 100644 (file)
@@ -1,5 +1,33 @@
-<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";
+import afterRawLoad from "@/utils/afterRawLoad";
+export default {
+  name: "my-about",
+  computed: {
+    content: function() {
+      return (
+        afterRawLoad(
+          require(
+            "raw-loader!@/translations/about/" + store.state.lang + ".pug"
+          ).default
+        )
+      );
+    }
+  }
+};
+</script>
+
+<!-- Not scoped, because code is injected -->
+<style lang="sass">
+#links
+  margin: var(--universal-margin)
+  & > a
+    display: block
+</style>