Skip to content

Commit 412ce4a

Browse files
authored
Make subscribe page nicer (#303)
1 parent 0f8b624 commit 412ce4a

File tree

3 files changed

+39
-23
lines changed

3 files changed

+39
-23
lines changed
Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
Do you want to make it easy for your network or audience to add your podcast(s) in AntennaPod?
2+
Simply include a link like the one given below on your website or wherever you want.
3+
Make sure to replace `xyz` with the URL of your RSS feed and `abc` with the title of your podcast.
24

3-
Simply include a link to `https://antennapod.org/deeplink/subscribe?url=xyz` on your website or wherever you want. Make sure to replace `xyz` with the URL of your RSS feed. Users who have installed AntennaPod and open that link will be able to preview episodes and subscribe to your podcast directly in our app.
5+
`https://antennapod.org/deeplink/subscribe?url=xyz&title=abc`
46

7+
Users who have installed AntennaPod and open that link will be able to preview episodes and subscribe to your podcast directly in our app.
8+
You can view an example of such a page [here](/deeplink/subscribe?url=https://antennapod.org/rss.xml&title=Blog+Posts).
59
If you need our logo, please have a look at our [branding repository](https://github.com/AntennaPod/branding).

_i18n/en/general/subscribe.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1-
Press the button above to subscribe to this podcast in AntennaPod. If you don't have AntennaPod installed yet, you can [download the app here](/download).
1+
Press the button below to subscribe to this podcast in AntennaPod. Don't have AntennaPod yet? You can [download](/download) the app to enjoy free access to millions of podcasts.
22

3-
If your web browser does not support opening AntennaPod directly using the button, you can also copy the address displayed in the box below and paste it into AntennaPod's search box.
3+
<!-- mdpo-disable-next-line -->
4+
<button id="subscribeButton" class="btn btn-primary">
5+
Subscribe in AntennaPod
6+
<!-- mdpo-disable-next-line -->
7+
</button>
8+
9+
Do you use another podcast app or does your web browser not support opening AntennaPod directly?
10+
You can find the RSS address of the podcast in the box below.
11+
To subscribe, paste the address into AntennaPod's search box or into your other podcast app.

deeplink/subscribe/index.html

Lines changed: 24 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,24 @@
33
title: generic.subscribe
44
---
55

6-
<div class="container-fluid py-5">
6+
<div class="container-fluid">
77
<div class="container">
8-
<article class="post-content">
9-
<div class="row pb-4">
10-
<button id="retryButton" class="btn btn-primary">{% t generic.subscribe %}</button>
8+
<div class="row justify-content-md-center">
9+
<div class="col col-xl-6">
10+
<article class="post-content">
11+
<h2 id="podcastTitle">{% t generic.subscribe %}</h2>
12+
{% tf general/subscribe.md %}
13+
<p>
14+
<div class="card">
15+
<div class="card-body">
16+
<i class="fa fa-rss mr-1"></i>
17+
<span id="urlTextBox">JavaScript required</span>
18+
</div>
19+
</div>
20+
</p>
21+
</article>
1122
</div>
12-
<div class="row">
13-
{% tf general/subscribe.md %}
14-
</div>
15-
<div class="row pb-4">
16-
<div class="card">
17-
<div class="card-body" id="urlTextBox">
18-
JavaScript required.
19-
</div>
20-
</div>
21-
</div>
22-
</article>
23+
</div>
2324
</div>
2425
</div>
2526

@@ -33,15 +34,18 @@
3334
};
3435

3536
const urlTextBox = document.getElementById("urlTextBox");
36-
const retryButton = document.getElementById("retryButton");
37+
const subscribeButton = document.getElementById("subscribeButton");
38+
const podcastTitle = document.getElementById("podcastTitle");
3739
if (getUrlParameter("url") === false) {
3840
urlTextBox.textContent = "URL not available";
39-
retryButton.disabled = true;
40-
retryButton.textContent += " (error)";
41-
41+
subscribeButton.disabled = true;
42+
subscribeButton.textContent += " (error)";
4243
} else {
44+
if (getUrlParameter("title") !== false) {
45+
podcastTitle.textContent = getUrlParameter("title");
46+
}
4347
urlTextBox.textContent = getUrlParameter("url");
44-
retryButton.onclick = () => {
48+
subscribeButton.onclick = () => {
4549
window.open("antennapod-subscribe://" + getUrlParameter("url"));
4650
};
4751
}

0 commit comments

Comments
 (0)