From 048e3fcde7c2536f9eb54fac9e15647b02e4f455 Mon Sep 17 00:00:00 2001
From: Carter McBride <18412686+carterworks@users.noreply.github.com>
Date: Wed, 19 Jun 2024 14:43:01 -0600
Subject: [PATCH] Enhance mobile view (#6)
* Add SVG favicon and webapp manifest
* Word wrap the urls
* Add id and start url in webapp manifest
* Shrink feed url size
* Remove emoji from page title
---
config/template.html | 6 ++++--
public/manifest.json | 15 +++++++++++++++
public/news-emoji.svg | 8 ++++++++
public/style.css | 13 ++++++++++++-
4 files changed, 39 insertions(+), 3 deletions(-)
create mode 100644 public/manifest.json
create mode 100644 public/news-emoji.svg
diff --git a/config/template.html b/config/template.html
index d9e624f..021f6cc 100644
--- a/config/template.html
+++ b/config/template.html
@@ -6,11 +6,13 @@
📰 Carter's RSS Feeds
+
+
- 📰 Carter's RSS Feeds
+ Carter's RSS Feeds
{% for group, feeds in data %}
{{ group }}
@@ -33,7 +35,7 @@
{% endfor %} {% endfor %} {% if errors | length > 0 %}
Errors
There were errors trying to parse these feeds:
-
+
{% for error in errors %}
- {{ error }}
{% endfor %}
diff --git a/public/manifest.json b/public/manifest.json
new file mode 100644
index 0000000..a76f469
--- /dev/null
+++ b/public/manifest.json
@@ -0,0 +1,15 @@
+{
+ "name": "Carter's RSS Feeds",
+ "short_name": "Carter's RSS Feeds",
+ "start_url": "/",
+ "display": "standalone",
+ "background_color": "#FCF5E4",
+ "theme_color": "#FCF5E4",
+ "description": "Updates from RSS feeds that Carter likes",
+ "id": "/",
+ "icons": [{
+ "sizes": "any",
+ "src": "news-emoji.svg",
+ "type": "image/svg+xml"
+ }]
+}
diff --git a/public/news-emoji.svg b/public/news-emoji.svg
new file mode 100644
index 0000000..1746fc4
--- /dev/null
+++ b/public/news-emoji.svg
@@ -0,0 +1,8 @@
+
+
+
diff --git a/public/style.css b/public/style.css
index 9ea2d7e..20982a2 100644
--- a/public/style.css
+++ b/public/style.css
@@ -12,6 +12,11 @@ body {
color: var(--color-text);
}
+.inline-icon {
+ height: 1em;
+ vertical-align: text-bottom;
+}
+
summary {
cursor: pointer;
}
@@ -37,11 +42,17 @@ details:has(li.has-recent) {
}
}
+details,
+.errors li {
+ word-break: break-all;
+}
+
.feed-url {
color: #aaa;
}
-.article-timestamp {
+.article-timestamp,
+.feed-url {
font-size: 0.75em;
}