diff --git a/index.html b/index.php similarity index 85% rename from index.html rename to index.php index 0810899f981690b928fbebc612c6c88a76cc285c..98737535083d86baae91633a881f898a9eb49323 100644 --- a/index.html +++ b/index.php @@ -10,7 +10,17 @@ <body> <section class="memory-game"> <div class="memory-card" data-framework="aurelia"> - <img class="front-face" src="img/aurelia.svg" alt="Aurelia" style="background-color: #FFCCCB"/> + + <?php + $text = "Beispieltext"; + $svg = "<svg xmlns='http://www.w3.org/2000/svg' width='100' height='50'><text x='10' y='30'>$text</text></svg>"; + $svgData = base64_encode($svg); + $src = "data:image/svg+xml;base64,$svgData"; + $imgTag = "<img class="front-face" src="$src" alt="Aurelia" style="background-color: #FFCCCB"/>"; + echo $imgTag; + ?> + + <!-- <img class="front-face" src="img/aurelia.svg" alt="Aurelia" style="background-color: #FFCCCB"/> --> <img class="back-face" src="img/js-badge.svg" alt="JS Badge" /> </div> <div class="memory-card" data-framework="aurelia">