damand2061
commited on
Commit
•
a3a46fb
1
Parent(s):
0bd316f
Update app.py
Browse files
app.py
CHANGED
@@ -13,15 +13,15 @@ def load_data():
|
|
13 |
# Fungsi untuk menampilkan card
|
14 |
def display_card(article_name, journal_name, article_url):
|
15 |
return f"""
|
16 |
-
<
|
17 |
-
<
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
</
|
24 |
-
</
|
25 |
"""
|
26 |
|
27 |
# Fungsi untuk menampilkan data secara row-wise
|
|
|
13 |
# Fungsi untuk menampilkan card
|
14 |
def display_card(article_name, journal_name, article_url):
|
15 |
return f"""
|
16 |
+
<a href="{article_url}" target="_blank">
|
17 |
+
<div style="border:1px solid #ccc; padding: 20px; margin: 15px 0; border-radius: 5px; width: 100%; box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1); text-align: justify;">
|
18 |
+
<h5 style="margin: 0; font-size: 1.2em;">{article_name}</h5>
|
19 |
+
<p style="margin: 5px 0; text-align: justify;">{journal_name}</p>
|
20 |
+
<button style="background-color: #4CAF50; color: white; border: none; padding: 5px 9px; margin-top: 5px; border-radius: 5px; font-size: 0.9em;">
|
21 |
+
Kunjungi Artikel
|
22 |
+
</button>
|
23 |
+
</div>
|
24 |
+
</a>
|
25 |
"""
|
26 |
|
27 |
# Fungsi untuk menampilkan data secara row-wise
|