From 5d9f7190bd118fe4d44594d7a9584de98b527467 Mon Sep 17 00:00:00 2001
From: Ruben Beltran del Rio <ruben@unlimited.pizza>
Date: Sun, 19 Dec 2021 14:21:33 +0100
Subject: Port to svelte

---
 src/lib/components/rules.svelte | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)
 create mode 100644 src/lib/components/rules.svelte

(limited to 'src/lib/components/rules.svelte')

diff --git a/src/lib/components/rules.svelte b/src/lib/components/rules.svelte
new file mode 100644
index 0000000..4693579
--- /dev/null
+++ b/src/lib/components/rules.svelte
@@ -0,0 +1,20 @@
+<script>
+  import { getRules } from '$lib/stores/rules';
+
+	$: rules = getRules();
+</script>
+
+<h1>
+	New Corona Regulations Berlin
+</h1>
+<ul>
+	{#each $rules as rule}
+	<li>
+		<h2>Starting {rule.time}</h2>
+		<p>
+			<span class="emoji">{rule.rule.emoji}</span>
+			<span class="text">{rule.rule.text}</span>
+		</p>
+	</li>
+	{/each}
+</ul>
-- 
cgit 

