Update HTML

This commit is contained in:
Joakim Hellsén 2024-01-31 03:59:25 +01:00
commit e24413603c
4 changed files with 69 additions and 14 deletions

View file

@ -2,7 +2,7 @@
from django.urls import path
from feeds.views import APIView, FeedsView, IndexView, add_feeds
from feeds.views import APIView, DonateView, FeedsView, IndexView, add_feeds
app_name = "feeds"
@ -15,4 +15,6 @@ urlpatterns = [
path("add", add_feeds, name="add"),
# /api
path("api", APIView.as_view(), name="api"),
# /donate
path("donate", DonateView.as_view(), name="donate"),
]

View file

@ -42,7 +42,7 @@
<small>
<div class="leftright">
<div class="left">
<a href="{% url 'feeds:feeds' %}">Feeds</a> | <a href="{% url 'feeds:api' %}">API</a> | <a href="https://github.com/TheLovinator1/FeedVault">GitHub</a> | <a href="https://github.com/sponsors/TheLovinator1">Donate</a>
<a href="{% url 'feeds:feeds' %}">Feeds</a> | <a href="{% url 'feeds:api' %}">API</a> | <a href="https://github.com/TheLovinator1/FeedVault">GitHub</a> | <a href="{% url 'feeds:donate' %}">Donate</a>
</div>
<div class="right">
<a href="">Register</a> | <a href="">Login</a>

37
templates/donate.html Normal file
View file

@ -0,0 +1,37 @@
{% extends "base.html" %}
{% block title %}<title>Donate</title>{% endblock %}
{% block description %}FeedVault - A feed archive{% endblock %}
{% block keywords %}RSS, Atom, Feed, Archive, Donate{% endblock %}
{% block content %}
<h2>Donate</h2>
<p>
tl;dr: <a href="https://github.com/sponsors/TheLovinator1">GitHub Sponsors</a>
</p>
<p>
FeedVault is a free service, and will always be free. However, if you wish to support the project, you can do so by donating to the developer.
</p>
<h3>What will the money be used for?</h3>
<p>
The money will be used to pay for the server costs, domain name, and other expenses related to running the service.
</p>
<h3>How much does it cost to run FeedVault?</h3>
<p>Domain name: 12 € / 13 $ / 10 £ per year</p>
<h3>How can I donate?</h3>
<p>
The preferred method of donating is through <a href="https://github.com/sponsors/TheLovinator1">GitHub Sponsors</a> due to no fees being taken. However, you can also donate through <a href="https://www.paypal.com/donate/?hosted_button_id=9EU45BXAEUGFC">PayPal</a>.
</p>
<h3>Crypto</h3>
<p>
You can also donate through cryptocurrency. The addresses are listed below. If you wish to donate through a cryptocurrency not listed below, please <a href="mailto:hello@feedvault.se">contact me</a>.
</p>
<h4>Bitcoin</h4>
<p>
<a href="bitcoin:bc1qdgm09zzxllzh4m2edyyx7khwhw5mjrwe0d2dws?message=FeedVault">bc1qdgm09zzxllzh4m2edyyx7khwhw5mjrwe0d2dws</a>
</p>
<h4>Monero</h4>
<p>
<a href="monero:83Hft9zJKPNgMrLAZQ7hhTBeJ6v9bJFJ7P7xfWLRDCiyg4QDwstnjc79Fdn5Y8uY5Hfddj52ok9JF8uisU9UXDJjT4Msevx">83Hft9zJKPNgMrLAZQ7hhTBeJ6v9bJFJ7P7xfWLRDCiyg4QDwstnjc79Fdn5Y8uY5Hfddj52ok9JF8uisU9UXDJjT4Msevx</a>
</p>
<h3>Thank you!</h3>
<p>Thank you for supporting FeedVault!</p>
{% endblock %}

View file

@ -5,7 +5,7 @@
{% block content %}
<h2>Feeds to archive</h2>
<p>
Enter the URLs of the feeds you want to archive below. You can enter as many as you want. The feeds will be added to the archive and you will be able to access them through the website or the API.
Input the URLs of the feeds you wish to archive below. You can add as many as needed, and access them through the website or API. Alternatively, include links to .opml files, and the feeds within will be archived.
</p>
<form action="/add" method="post">
{% csrf_token %}
@ -17,22 +17,21 @@
<details>
<summary>What are web feeds?</summary>
<p>
Web feeds are a way for you to "subscribe" to content on a website. When you subscribe to a feed, you will be notified when new content is published. You can then read the content in a feed reader.
Feeds are usually available in the RSS or Atom format. You can recognize a feed by the following icon:
Web feeds let you "subscribe" to website content, notifying you of new updates. Feeds are typically in RSS or Atom formats, recognizable by this icon:
<img src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMjgiIGhlaWdodD0iMTI4IiB2aWV3Qm94PSIwIDAgMjU2IDI1NiIgY3Vyc29yPSJkZWZhdWx0Ij48ZGVmcz48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MTE3NSAxNzV6IiBmaWxsPSIjRkZGIi8+PC9zdmc+"
alt="Feed icon"
width="16"
height="16">
<br>
<br>
You can read more about web feeds on <a href="https://en.wikipedia.org/wiki/Web_feed">Wikipedia</a>.
Learn more about web feeds on <a href="https://en.wikipedia.org/wiki/Web_feed">Wikipedia</a>.
</p>
<hr>
</details>
<details>
<summary>What is FeedVault?</summary>
<p>
FeedVault is designed to collect, organize, and store information from RSS feeds. It parses XML data using the <a href="https://github.com/kurtmckee/feedparser">feedparser by Kurt McKee</a> library and stores the relevant information in a PostgreSQL database managed by Django.
FeedVault is a platform crafted to gather, arrange, and preserve information sourced from RSS feeds. It utilizes the <a href="https://github.com/kurtmckee/feedparser">feedparser library by Kurt McKee</a> to parse XML data, storing pertinent details in a Django-managed PostgreSQL database.
</p>
<hr>
</details>
@ -51,11 +50,11 @@
Parse XML data using the <a href="https://github.com/kurtmckee/feedparser">feedparser</a> library.
</li>
<li>
Before saving the parsed data to the database, HTML content is <a href="https://feedparser.readthedocs.io/en/latest/html-sanitization.html">sanitized</a>.
Sanitize HTML content <a href="https://feedparser.readthedocs.io/en/latest/html-sanitization.html">before</a> saving parsed data to the database.
</li>
<li>The sanitized data is then stored in a PostgreSQL database using Django's ORM.</li>
<li>Store the sanitized data in a PostgreSQL database using Django's ORM.</li>
<li>
The data is then made available through the website and the <a href="/api">API</a>.
Data is made available through the website and the <a href="/api">API</a>.
</li>
</ul>
</p>
@ -65,15 +64,32 @@
<summary>How can I access the archived feeds?</summary>
<p>
<ul>
<li>You can search for feeds through the search bar at the top of the page.</li>
<li>Search for feeds using the top-page search bar.</li>
<li>
You can access the archived feeds through the <a href="/feeds">website</a>.
Access the archived feeds on the <a href="/feeds">website</a>.
</li>
<li>
You can access the archived feeds through the <a href="/api">API</a>.
Access the archived feeds via the <a href="/api">API</a>.
</li>
<li>
You can download database dumps from <a href="">here</a>.
Download database dumps from <a href="">here</a>.
</li>
</ul>
</p>
</details>
<details>
<summary>How can I contribute?</summary>
<p>
<ul>
<li>Add feeds to the archive.</li>
<li>
<a href="https://github.com/TheLovinator1/FeedVault/issues">Report bugs</a> and <a href="https://github.com/TheLovinator1/FeedVault/issues">suggest features</a>.
</li>
<li>
<a href="">Donate</a> to support the project.
</li>
<li>
<a href="">Contribute</a> to the project on GitHub.
</li>
</ul>
</p>