migrate tab title to title csv

This commit is contained in:
Xaloc 2022-09-23 17:50:13 +02:00
parent ffdf88daae
commit cff299c8a9
3 changed files with 4 additions and 4 deletions

View File

@ -4,7 +4,7 @@ titleDF = pd.read_csv("title.csv")
linksDF = pd.read_csv("links.csv")
html = open("index.html", "w")
html.write("<!DOCTYPE html>\n<html lang='en'>\n<head>\n\t<title>Your Links</title>\n\t<meta charset='UTF-8'>\n\t<meta name='viewport' content='width=device-width, initial-scale=1'/>\n\t<link rel='stylesheet' href='styles.css'>\n</head>\n<body>\n")
html.write(f"<!DOCTYPE html>\n<html lang='en'>\n<head>\n\t<title>{titleDF['title'][0]}</title>\n\t<meta charset='UTF-8'>\n\t<meta name='viewport' content='width=device-width, initial-scale=1'/>\n\t<link rel='stylesheet' href='styles.css'>\n</head>\n<body>\n")
html.write(f"<img src='{titleDF['logo'][0]}' class='top-logo'>\n\t<h2>{titleDF['description'][0]}</h2>\n<br>\n")
for i,x in linksDF.iterrows():
html.write(f"<div>\n<button class='menu' onclick='{x['name'].replace(' ','').lower()}.show()'><img src='{x['logo']}' class='small-logo'>&emsp; {x['name']}</button>\n\t</div>\n\t<br>\n")

View File

@ -1,7 +1,7 @@
<!DOCTYPE html>
<html lang='en'>
<head>
<title>Your Links</title>
<title>Your Title</title>
<meta charset='UTF-8'>
<meta name='viewport' content='width=device-width, initial-scale=1'/>
<link rel='stylesheet' href='styles.css'>

View File

@ -1,2 +1,2 @@
description,logo
Add here a description for people using this links,logo.png
description,logo,title
Add here a description for people using this links,logo.png,Your Title

1 description logo title
2 Add here a description for people using this links logo.png Your Title