X-Git-Url: https://git.openstreetmap.org./nominatim-ui.git/blobdiff_plain/c9687b102bb6f544a034dc4d508bf0ae4a5fc221..cb2c96641bcc89f9bf427f9a13931f98d6dec3bc:/src/components/Welcome.svelte?ds=sidebyside

diff --git a/src/components/Welcome.svelte b/src/components/Welcome.svelte
index 01d0a07..2a04c14 100644
--- a/src/components/Welcome.svelte
+++ b/src/components/Welcome.svelte
@@ -1,16 +1,10 @@
-<div id="welcome">
-  <h2>Welcome to Nominatim</h2>
+<script>
+  import { onMount } from 'svelte';
+  import { fetch_content_into_element } from '../lib/api_utils.js';
 
-  <p>
-    Nominatim is a search engine for
-    <a href="https://www.openstreetmap.org">OpenStreetMap</a> data. This
-    is the debugging interface. You may search for a name or address
-    (forward search) or look up data by its geographic coordinate (reverse
-    search). Each result comes with a link to a details page where you
-    can inspect what data about the object is saved in the database and
-    investigate how the address of the object has been computed.
-  </p>
+  onMount(() => {
+    fetch_content_into_element('theme/welcome.html', document.getElementById('welcome'));
+  });
+</script>
 
-  For more information visit the
-  <a href="https://nominatim.org">Nominatim home page</a>.
-</div>
+<div id="welcome"></div>
