team page + donate + query for homepage
This commit is contained in:
parent
ba9d7219f0
commit
6bffdb774a
@ -65,7 +65,7 @@ def home():
|
||||
wdt:P87 ?dateadded.
|
||||
FILTER(?work != wd:Q57)
|
||||
}
|
||||
ORDER BY (?dateadded)
|
||||
ORDER BY DESC (?dateadded)
|
||||
LIMIT 12
|
||||
''')
|
||||
sparql.setReturnFormat(JSON)
|
||||
@ -1047,6 +1047,20 @@ def upload():
|
||||
|
||||
return render_template('upload.html', text=text)
|
||||
|
||||
# #################### TEAM
|
||||
@app.route("/team")
|
||||
def team():
|
||||
url="https://daap.bannerrepeater.org/w/index.php?title=Team&action=render"
|
||||
# Make a GET request to fetch the raw HTML content
|
||||
html_content = requests.get(url).text
|
||||
# Parse the html content
|
||||
soup = BeautifulSoup(html_content, "lxml")
|
||||
# print(soup.prettify()) # print the parsed data of html
|
||||
|
||||
text=soup.find("html")
|
||||
|
||||
text=Markup(text)
|
||||
return render_template('team.html', text=text)
|
||||
|
||||
# #################### CASE STUDY
|
||||
@app.route("/casestudy")
|
||||
|
@ -1994,6 +1994,7 @@ div#tutorials-intro h3, div#tutorials-intro p {
|
||||
|
||||
#link-search{
|
||||
padding-right: 26px;
|
||||
text-decoration: none;
|
||||
}
|
||||
#navigation {
|
||||
display: none !important;
|
||||
|
@ -105,8 +105,8 @@
|
||||
</div>
|
||||
</div>
|
||||
<div id="footer-contact-form">
|
||||
<div id="footer-title-contact"><p>EXPRESSION OF INTEREST</p></div>
|
||||
<div id="secondary-button"><a class="footer-contact" href="https://docs.google.com/forms/d/e/1FAIpQLSdee1kiy1rDLONW7KNp-a3iRbPlxbCSlF2cDohXOh2SU8oW1A/viewformnope"><div class="secondary-button bluebutton" id="contactform"><span>CONTACT FORM</span></div></a></div>
|
||||
<div id="footer-title-contact"><p>SUPPORT THE DEVELOPMENT OF THE DAAP</p></div>
|
||||
<div id="secondary-button"><a class="footer-contact" href="https://localgiving.org/charity/banner-repeater/"><div class="secondary-button bluebutton" id="contactform"><span>DONATE</span></div></a></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
12
templates/team.html
Normal file
12
templates/team.html
Normal file
@ -0,0 +1,12 @@
|
||||
{% extends "layout.html" %}
|
||||
{% block content %}
|
||||
|
||||
{{ text }}
|
||||
|
||||
|
||||
<style type="text/css">
|
||||
div#toc{
|
||||
display: none
|
||||
}
|
||||
</style>
|
||||
{% endblock content %}
|
Loading…
Reference in New Issue
Block a user