From ff51b6a867f540f9eac88538d3deb2bbdfb86f42 Mon Sep 17 00:00:00 2001 From: Dmitry Borisenko <49808844+DmitryBorisenko33@users.noreply.github.com> Date: Fri, 13 Aug 2021 19:48:51 +0800 Subject: [PATCH] add first svelte component --- src/App.svelte | 191 +++++++++++++++++++++--------------------------- src/Card.svelte | 15 ++++ 2 files changed, 97 insertions(+), 109 deletions(-) create mode 100644 src/Card.svelte diff --git a/src/App.svelte b/src/App.svelte index 39e1e38..edec3ec 100644 --- a/src/App.svelte +++ b/src/App.svelte @@ -3,6 +3,7 @@ import { Route, router, active } from "tinro"; router.mode.hash(); // enables hash navigation method //router.mode.memory(); // enables in-memory navigation method + import Card from "./Card.svelte";
@@ -41,127 +42,99 @@ diff --git a/src/Card.svelte b/src/Card.svelte new file mode 100644 index 0000000..1d2e98b --- /dev/null +++ b/src/Card.svelte @@ -0,0 +1,15 @@ + + +
+ +
+ +
+ +

{title}

+ +
+
+