Browse Source

subscribe btn added

main
Cailean Finn 3 months ago
parent
commit
fe0f589c1d
  1. 9
      app.py
  2. 16
      static/assets/styles.css
  3. 1
      templates/base.html
  4. 4
      templates/publications.html

9
app.py

@ -209,14 +209,13 @@ class WikiApp(Flask):
publication_page_list = self.fetch_all_pages(concepts) publication_page_list = self.fetch_all_pages(concepts)
updated_cat_list = self.fetch_pages_cat(publication_page_list) updated_cat_list = self.fetch_pages_cat(publication_page_list)
projects = updated_cat_list.get('Projects', []) projects = updated_cat_list.get('Projects', [])
print(projects)
sorted_prj = dict(sorted(projects.items(), key=lambda item: datetime.strptime(item[1]['date'], "%d.%m.%Y" ), reverse=True) ) sorted_prj = dict(sorted(projects.items(), key=lambda item: datetime.strptime(item[1]['date'], "%d.%m.%Y" ), reverse=True) )
newsletters = updated_cat_list.get('Newsletters', []) newsletters = updated_cat_list.get('Newsletters', [])
sorted_nl = dict(sorted(newsletters.items(), key=lambda item: datetime.strptime(item[1]['date'], "%d.%m.%Y" ), reverse=True) ) sorted_nl = dict(sorted(newsletters.items(), key=lambda item: datetime.strptime(item[1]['date'], "%d.%m.%Y" ), reverse=True) )
most_recent_newsletter = next(iter(sorted_nl.items()))
nav_elements = self.get_nav_menu() nav_elements = self.get_nav_menu()
return render_template('publications.html', projects=sorted_prj, newsletters=sorted_nl, nav_elements=nav_elements) return render_template('publications.html', latest_title=most_recent_newsletter[0], projects=sorted_prj, newsletters=sorted_nl, nav_elements=nav_elements)
def fetch_meetups(self): def fetch_meetups(self):
meetup_content, page_title = self.fetch_page('Meetups') meetup_content, page_title = self.fetch_page('Meetups')
@ -360,10 +359,6 @@ class WikiApp(Flask):
soup = self.remove_thumbnail_img(soup) soup = self.remove_thumbnail_img(soup)
print(soup)
return soup.prettify() return soup.prettify()
def remove_thumbnail_img(self, soup): def remove_thumbnail_img(self, soup):

16
static/assets/styles.css

@ -444,6 +444,22 @@ body {
margin-bottom: 5px; margin-bottom: 5px;
} }
#subscribe-button {
position: absolute;
bottom: 50px;
right:50px;
font-size: 40px;
text-transform: uppercase;
border: 1px solid red;
padding: 20px;
border-radius: 30px;
cursor: pointer;
}
.link-blank {
text-decoration: none;
color: black;
}
/* hr { /* hr {
border: 0; border: 0;
border-top: thin solid #243588; border-top: thin solid #243588;

1
templates/base.html

@ -30,6 +30,7 @@
{% endblock %} {% endblock %}
</div> </div>
</div> </div>
<a class="link-blank" href="https://conceptnull.substack.com/subscribe" target="_blank"><span id="subscribe-button">Subscribe</span></a>
</body> </body>
</html> </html>

4
templates/publications.html

@ -5,10 +5,10 @@
<div class='pub-section'> <div class='pub-section'>
<h1>Newsletter</h1> <h1>Newsletter</h1>
<p>Currently, we run a bi-weekly newsletter that aims to highlight different types of events and opportunities centered around new media and digital culture in Ireland.</p> <p>Currently, we run a bi-weekly newsletter that aims to highlight different types of events and opportunities centered around new media and digital culture in Ireland.</p>
<p>The newsletter is released on the <b>1st</b> and <b>15th</b> of every month through Substack - You can subcribe through Substack by following this link <a href="https://substack.com/redirect/6abd2991-f337-42ac-8f41-12e6223a6a7f?j=eyJ1IjoiMXJxOGc0In0.dM5dzYwXHG4nrZaQTiBPTHLz4xPM2kz2cwpsDugPHVw" target="_blank">(subscribe)</a>, and receive it directly into your inbox~</p> <p>The newsletter is released on the <b>1st</b> and <b>15th</b> of every month through Substack - You can subcribe through Substack by clicking the **SUBSCRIBE** button, and receive it directly into your inbox~</p>
<p>If you wish to sumbit any opportunities, events, residences (...) that would be a good fit for the newsletter -- please feel free to reach out to us by emailing us at <i>[email protected]</i></p> <p>If you wish to sumbit any opportunities, events, residences (...) that would be a good fit for the newsletter -- please feel free to reach out to us by emailing us at <i>[email protected]</i></p>
<p>***</p> <p>***</p>
<p><i>The future plan we have for the platform is that users will have the ability to add their own entries into the upcoming newsletter through the Concept NULL wiki - acting as more of a decentralised noticeboard than just a newsletter. As for now, you can view our work-in-progress newsletter here, as we compile it for our Substack.</i></p> <p><i>The future plan we have for the platform is that users will have the ability to add their own entries into the upcoming newsletter through the Concept NULL wiki - acting as more of a decentralised noticeboard than just a newsletter. As for now, you can view our <a href="/newsletter{{ url_for('page_content', title=latest_title) }}">work-in-progress newsletter</a>, as we compile it for our Substack.</i></p>
<p>***</p> <p>***</p>
</div> </div>

Loading…
Cancel
Save