From 30edfe434cd1c265d20e12698e2a07e9b2865a80 Mon Sep 17 00:00:00 2001 From: RochoElLocho Date: Thu, 26 Sep 2024 19:25:24 +0200 Subject: [PATCH] =?UTF-8?q?Logo=20hinzugef=C3=BCgt=20Logo=20wurde=20als=20?= =?UTF-8?q?svg=20Datei=20eingef=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.html | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/index.html b/index.html index 01925a2..f140807 100644 --- a/index.html +++ b/index.html @@ -25,6 +25,14 @@ padding: 1rem; } + .logo { + position: absolute; + top: 10px; /* Abstand vom oberen Rand */ + right: -70px; /* Abstand vom rechten Rand */ + width: auto; /* Breite des Logos */ + height: auto; /* Automatische Höhe, um das Seitenverhältnis beizubehalten */ + } + .search-container { display: flex; flex-direction: column; @@ -163,6 +171,9 @@

Einkauf Suche

+
@@ -482,6 +493,18 @@ checkbox.checked = masterCheckbox.checked; }); } + + + + + fetch('logo.svg') + .then(response => response.text()) + .then(svg => { + document.getElementById('logo').innerHTML = svg; + }) + .catch(error => console.error('Error loading SVG:', error)); + +