From 80cb4f61aefb629b66972a2ed0ebe27861fa256c Mon Sep 17 00:00:00 2001
From: Aymane Ismail <aymane.ismail.etu@univ-lille.fr>
Date: Fri, 28 Jan 2022 11:01:10 +0100
Subject: [PATCH] Debut E

---
 index.html  |  3 +++
 src/main.js | 20 +++++++++++++++++++-
 2 files changed, 22 insertions(+), 1 deletion(-)

diff --git a/index.html b/index.html
index 4ad9a84..d99bcf6 100644
--- a/index.html
+++ b/index.html
@@ -13,6 +13,9 @@
 	<link rel="stylesheet" href="css/news.css">
 	<link rel="stylesheet" href="css/pizzaList.css">
 	<link rel="stylesheet" href="css/footer.css">
+
+	<script src="src/main.js" defer></script>
+
 </head>
 <body>
 	<header>
diff --git a/src/main.js b/src/main.js
index c3edb80..d09b051 100644
--- a/src/main.js
+++ b/src/main.js
@@ -1 +1,19 @@
-console.log('Welcome to PizzaLand 🍕 !');
\ No newline at end of file
+const name = "Regina";
+const url = "images/" + name.toLowerCase() + ".jpg" ;
+//let html = '<a href=\"' + url +'\">' + url + '</a>';
+/*let html = '<a href=\"' + url +'\">\n' +
+'<img src=\"'+url+'\"/>\n'+
+'<section>Regina</section>' + '</a>';*/
+
+let html = ` <article class="pizzaThumbnail"> 
+<a href="${url}">
+<img src=${url}>
+<section>Regina</section>
+</a>
+</article>
+`
+
+
+document.querySelector('.pageContent').innerHTML = html;
+console.log(url);
+console.log(html);
\ No newline at end of file
-- 
GitLab