migrate tab title to title csv
This commit is contained in:
parent
ffdf88daae
commit
cff299c8a9
|
@ -4,7 +4,7 @@ titleDF = pd.read_csv("title.csv")
|
||||||
linksDF = pd.read_csv("links.csv")
|
linksDF = pd.read_csv("links.csv")
|
||||||
|
|
||||||
html = open("index.html", "w")
|
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")
|
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():
|
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'>  {x['name']}</button>\n\t</div>\n\t<br>\n")
|
html.write(f"<div>\n<button class='menu' onclick='{x['name'].replace(' ','').lower()}.show()'><img src='{x['logo']}' class='small-logo'>  {x['name']}</button>\n\t</div>\n\t<br>\n")
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang='en'>
|
<html lang='en'>
|
||||||
<head>
|
<head>
|
||||||
<title>Your Links</title>
|
<title>Your Title</title>
|
||||||
<meta charset='UTF-8'>
|
<meta charset='UTF-8'>
|
||||||
<meta name='viewport' content='width=device-width, initial-scale=1'/>
|
<meta name='viewport' content='width=device-width, initial-scale=1'/>
|
||||||
<link rel='stylesheet' href='styles.css'>
|
<link rel='stylesheet' href='styles.css'>
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
description,logo
|
description,logo,title
|
||||||
Add here a description for people using this links,logo.png
|
Add here a description for people using this links,logo.png,Your Title
|
||||||
|
|
|
Loading…
Reference in New Issue
Block a user