From b2742ed336692cecb1f9a812b85ebe710d9ee7a4 Mon Sep 17 00:00:00 2001 From: Silas Bartha Date: Sun, 16 Feb 2025 17:04:48 -0500 Subject: initial commit --- data/assets/styles.css | 88 ++++++++++++++++++++++++++++++++++++++++++++ data/templates/index.html | 22 +++++++++++ data/templates/template.html | 18 +++++++++ 3 files changed, 128 insertions(+) create mode 100644 data/assets/styles.css create mode 100644 data/templates/index.html create mode 100644 data/templates/template.html (limited to 'data') diff --git a/data/assets/styles.css b/data/assets/styles.css new file mode 100644 index 0000000..f0e8ef5 --- /dev/null +++ b/data/assets/styles.css @@ -0,0 +1,88 @@ +body { + font-family: serif; + line-height: 1.6; + background-color: #2D353B; + color: #D3C6AA; + max-width: 80rem; + margin: auto; +} + +h1 { + text-align: center; +} + +a { + color: #7FBBB3; + text-decoration: none; + background-color: transparent; +} + +a:hover, a:focus { + text-decoration: none; + background-color: #7FBBB3; + color: #2D353B; +} + +table { + width: 90%; + border-collapse: collapse; + margin: 12px auto; + font-size: 1em; +} + +tr { + margin-bottom: 10px; +} + +tr:nth-child(odd) { + background-color: #343F44; /* Light gray for odd rows */ +} + +tr:hover { + background-color: #3D484D; /* hover effect for table rows */ +} + +th, td { + padding: 10px; + border: 2px solid #475258; + text-align: left; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; +} + +th { + text-align: center; + font-size: 1.1em; +} + +.container { + max-width: 800px; + margin: auto; + padding: 12px; +} + +@media screen and (max-width: 600px) { + body { + font-size: 90%; + } + + table { + width: 100%; + display: block; + overflow-x: auto; + white-space: nowrap; + } + + th, td { + display: block; + text-align: left; + white-space: normal; + } + + tr { + display: flex; + flex-direction: column; + } + +} \ No newline at end of file diff --git a/data/templates/index.html b/data/templates/index.html new file mode 100644 index 0000000..adfac6e --- /dev/null +++ b/data/templates/index.html @@ -0,0 +1,22 @@ + + + + + + + {{ ring_name }} List + + +

{{ ring_name }} List

+

{{ ring_description }}

+

Add all sites with declared RSS feeds to your feed reader with this OPML link.

+ {{ table_of_sites | safe}} + + +
+ + + diff --git a/data/templates/template.html b/data/templates/template.html new file mode 100644 index 0000000..0ae260d --- /dev/null +++ b/data/templates/template.html @@ -0,0 +1,18 @@ + + + + + + Redirecting... + + + + +

A fairy is teleporting you to {{ url }}...!

+ + -- cgit v1.2.3