]> Repos - mime-chat/commitdiff
splash and login screens
authorAndrew Gundersen <gundersena@xavier.edu>
Thu, 4 Feb 2021 17:29:35 +0000 (11:29 -0600)
committerAndrew Gundersen <gundersena@xavier.edu>
Thu, 4 Feb 2021 17:29:35 +0000 (11:29 -0600)
src/background.ts
src/components/splash/index.vue [new file with mode: 0644]
src/router.ts
src/views/splash.vue [new file with mode: 0644]

index e2d0712f8a2f0a86f9958ce231b40a4558e23e98..3e36280d7884c8af1890631438310e0492a2a260 100644 (file)
@@ -27,7 +27,7 @@ function createWindow() {
   win = new BrowserWindow({
     width: 350,
     height: 520,
-    resizable: false,
+    resizable: true,
     maximizable: false,
 
     // Postition at launch
@@ -35,7 +35,13 @@ function createWindow() {
     y: 10,
 
     webPreferences: {
-      devTools: false,
+      devTools: true,
+
+      nodeIntegration: 
+        (process.env.ELECTRON_NODE_INTEGRATION as unknown) as boolean,
+
+      preload: path.join(__dirname, "preload.js")
+
     }
 
   });
diff --git a/src/components/splash/index.vue b/src/components/splash/index.vue
new file mode 100644 (file)
index 0000000..33afe3f
--- /dev/null
@@ -0,0 +1,46 @@
+<template>
+  <svg 
+    id="splash"
+    xmlns="http://www.w3.org/2000/svg" 
+    width="57.046" 
+    height="52.759" 
+    viewBox="0 0 57.046 52.759"
+  >
+    <g transform="translate(-4127 -507)">
+      <g transform="translate(3949 332.206)">
+        <g transform="translate(178 174.794)">
+          <g transform="translate(0 27.405)">
+            <circle id="Ellipse_50" data-name="Ellipse 50" cx="12.677" cy="12.677" r="12.677" transform="translate(0 0)" fill="#383838"/>
+            <circle id="Ellipse_51" data-name="Ellipse 51" cx="12.677" cy="12.677" r="12.677" transform="translate(31.692 0)" fill="#383838"/>
+          </g>
+          <circle id="Ellipse_52" data-name="Ellipse 52" cx="12.677" cy="12.677" r="12.677" transform="translate(15.822 0)" fill="#383838"/>
+          <path id="Path_150" data-name="Path 150" d="M36.27,83.67" transform="translate(-23.569 -43.588)" fill="#ff0"/>
+        </g>
+      </g>
+    </g>
+  </svg>
+</template>
+
+<script lang="ts">
+
+import { defineComponent } from "vue";
+
+export default defineComponent({
+
+  name: "Splash",
+
+});
+
+</script>
+
+<style lang="scss" scoped>
+
+  #splash {
+    width: 350px;
+    height: 500px;
+    background-color: #FF52CA;
+    box-shadow: 0px 3px 10px 0px rgba(0, 0, 0, 0.3);
+    // border-radius: 20px;
+  }
+
+</style>
\ No newline at end of file
index 07537f32eecf873c2417e9d44fd66d0b4efdfad4..bc2a7edeb59cdc2ee4611efe7d00d87dff48f1b4 100644 (file)
@@ -7,12 +7,19 @@ import {
 
 import Home from "./views/home.vue";
 import Login from "./views/login.vue";
+import Splash from "./views/splash.vue";
 
 // Define the routes (/*) for the app here.
 const routes: Array<RouteRecordRaw> = [
 
   {
     path: "/",
+    name: "Splash",
+    component: Splash
+  },
+
+  {
+    path: "/home",
     name: "Home",
     component: Home
   },
diff --git a/src/views/splash.vue b/src/views/splash.vue
new file mode 100644 (file)
index 0000000..4615508
--- /dev/null
@@ -0,0 +1,17 @@
+<template>
+    <Splash />
+</template>
+
+<script lang="ts">
+    
+import { defineComponent } from "vue";
+import Splash from "@/components/splash/index.vue"
+
+export default defineComponent({
+
+    name: "Splash",
+    componants: { Splash },
+
+});
+
+</script>
\ No newline at end of file