about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorAndinus <andinus@nand.sh>2021-10-12 15:00:56 +0530
committerAndinus <andinus@nand.sh>2021-10-12 15:00:56 +0530
commit89299f7508cc5ce1f88c1629f6c7ab6d4e5b4a77 (patch)
tree6ece01a2e6f3c386c0dff3611cb3503dd3b093fe /src
parent5a3346900ef7d54859740caf57678e79f1d6ce7c (diff)
downloaddorado-89299f7508cc5ce1f88c1629f6c7ab6d4e5b4a77.tar.gz
Add Translation to navbar
Diffstat (limited to 'src')
-rw-r--r--src/Home.svelte6
-rw-r--r--src/Navbar.svelte3
2 files changed, 8 insertions, 1 deletions
diff --git a/src/Home.svelte b/src/Home.svelte
index 552e7ee..1a81465 100644
--- a/src/Home.svelte
+++ b/src/Home.svelte
@@ -7,3 +7,9 @@
   Checkout my other
   <a href="https://andinus.unfla.me/projects">projects</a>.
 </p>
+<p>
+  Inspired by Karishma's work:
+  <a href="https://karishmarajput.github.io/cg-algo">
+    karishmarajput.github.io/cg-algo
+  </a>.
+</p>
diff --git a/src/Navbar.svelte b/src/Navbar.svelte
index 04b63dd..4b0bba1 100644
--- a/src/Navbar.svelte
+++ b/src/Navbar.svelte
@@ -5,6 +5,7 @@
   import DDA from './algorithms/line-drawing/DDA.svelte';
   import Bresenham from './algorithms/line-drawing/Bresenham.svelte';
   import Scaling from './algorithms/2d-transformations/Scaling.svelte';
+  import Translation from './algorithms/2d-transformations/Translation.svelte';
 
   const dispatch = createEventDispatcher();
   const changePage = (p) => dispatch('message', { page: p });
@@ -31,7 +32,7 @@
       <button on:click={() => changePage(Scaling)}>
         Scaling
       </button>
-      <button on:click={() => alert("Not Implemented.")}>
+      <button on:click={() => changePage(Translation)}>
         Translation
       </button>
     </div>