diff --git a/carddeck1/cards.html b/carddeck1/cards.html
index 83eaea3..ce3fac6 100644
--- a/carddeck1/cards.html
+++ b/carddeck1/cards.html
@@ -11,13 +11,20 @@
Some text of this card The panopticon is a design of institutional building with an inbuilt system of control! 2. Ilkyaz agini degerlendirmek ve beslemek Genç yazarlarla iletişim kurmak ve İlkyazi tanitmak, 1.png
-
+ body
+
+ 1.png
-
+ panopticon
+
+
davet etmek.Edebiyat ve sanat çevrelerini ortaklaştirmak adina fikir verme ve oluşturma.
davet etmek.Edebiyat ve sanat çevrelerini ortaklaştirmak adina fikir verme ve oluşturma.",
+ "image": ""
}]
}
\ No newline at end of file
diff --git a/carddeck1/deck1.py b/carddeck1/deck1.py
index c9e2cc6..07c9909 100644
--- a/carddeck1/deck1.py
+++ b/carddeck1/deck1.py
@@ -1,37 +1,37 @@
-import os
+import os , json
folder = "./images/"
-#defining as a list
-images = []
-titles = []
-#shows all the images
-os.listdir(folder)
-for image in os.listdir(folder):
- print(image)
- print(folder + image)
- print("---")
- images.append(folder + image)
- titles.append(image)
-
+#load the json information
+with open ("cards.json", "r") as collage:
+ cards = json.load(collage)
#html
-counter = 0
+
all_cards = ""
-for image in images:
+for card in cards["cards"]:
+ print(card)
#html image element
- img = f""
+ img = f""
#img = ""
-
#define title
- title = titles[counter]
+ title = card['name']
#printing to inspect
print(img)
#mini template for card
- card = f"""
+ if card['image'] == "":
+ card = f"""
+
{ card['text'] }
+{ img }
+{ img }
+{ card['text'] }