From 5f81d506095852c3f0db5322e67c862f904da3f1 Mon Sep 17 00:00:00 2001 From: Shy Date: Sun, 8 Feb 2026 10:30:41 -0500 Subject: Initial commit --- assets/chapter.html.jinja | 45 ++++++++++++ assets/favicon.ico | Bin 0 -> 67646 bytes assets/home.html.jinja | 32 ++++++++ assets/home.mp4 | Bin 0 -> 13354 bytes assets/index.html.jinja | 65 +++++++++++++++++ assets/lexend.woff2 | Bin 0 -> 71592 bytes assets/manifest.json.jinja | 16 ++++ assets/series.html.jinja | 39 ++++++++++ assets/style.css.jinja | 178 +++++++++++++++++++++++++++++++++++++++++++++ 9 files changed, 375 insertions(+) create mode 100644 assets/chapter.html.jinja create mode 100755 assets/favicon.ico create mode 100644 assets/home.html.jinja create mode 100755 assets/home.mp4 create mode 100644 assets/index.html.jinja create mode 100755 assets/lexend.woff2 create mode 100644 assets/manifest.json.jinja create mode 100644 assets/series.html.jinja create mode 100644 assets/style.css.jinja (limited to 'assets') diff --git a/assets/chapter.html.jinja b/assets/chapter.html.jinja new file mode 100644 index 0000000..972ac75 --- /dev/null +++ b/assets/chapter.html.jinja @@ -0,0 +1,45 @@ + + + + + {{ site }} - {{ series_name }} - {{ chapter_name }} + + + + + + + + Back + + {% if prev_loc or next_loc %} + + {% endif %} + +
+ {% for im in images %} + page {{ loop.index }} + {% endfor %} +
+ + {% if prev_loc or next_loc %} + + {% endif %} + + \ No newline at end of file diff --git a/assets/favicon.ico b/assets/favicon.ico new file mode 100755 index 0000000..30f46aa Binary files /dev/null and b/assets/favicon.ico differ diff --git a/assets/home.html.jinja b/assets/home.html.jinja new file mode 100644 index 0000000..fbd69c3 --- /dev/null +++ b/assets/home.html.jinja @@ -0,0 +1,32 @@ + + + + + {{ site }} + + + + + + + + +
+ +

{{ home_title }}

+ + Tags +
+ Titles + +
+
+ +
+ + + Made with <3 by Shy ♥ + +
+ + diff --git a/assets/home.mp4 b/assets/home.mp4 new file mode 100755 index 0000000..db28071 Binary files /dev/null and b/assets/home.mp4 differ diff --git a/assets/index.html.jinja b/assets/index.html.jinja new file mode 100644 index 0000000..5370ad7 --- /dev/null +++ b/assets/index.html.jinja @@ -0,0 +1,65 @@ + + + + + {{ site }} - {{ name | upper }} + + + + + + + +
+ + Back + +

Index - {{ name | upper }}

+ +
+ {% for page, page_raw, page_loc, not_empty in index_pages %} + {% if page_raw == loc %} + {{ page }} + {% elif not_empty %} + {{ page }} + {% else %} + {{ page }} + {% endif %} + {% endfor %} +
+ +
+ +
+ {% if rating == None %} + Any + {% else %} + Any + {% endif %} + + {% for r in content_ratings %} + {% if rating == r %} + {{ r }} + {% else %} + {{ r }} + {% endif %} + {% endfor %} +
+
+ + + + \ No newline at end of file diff --git a/assets/lexend.woff2 b/assets/lexend.woff2 new file mode 100755 index 0000000..89fe074 Binary files /dev/null and b/assets/lexend.woff2 differ diff --git a/assets/manifest.json.jinja b/assets/manifest.json.jinja new file mode 100644 index 0000000..49fb73e --- /dev/null +++ b/assets/manifest.json.jinja @@ -0,0 +1,16 @@ +{ + "name": "Yuri Directory", + "short_name": "Yuri", + "theme_color": "#6495ed", + "background_color": "#000000", + "display": "minimal-ui", + "orientation": "portrait", + "scope": "{{ base }}", + "start_url": "{{ base }}", + "icons": [ + { + "src": "https://yuri.directory{{ base }}favicon.ico", + "sizes": "any" + } + ] +} \ No newline at end of file diff --git a/assets/series.html.jinja b/assets/series.html.jinja new file mode 100644 index 0000000..81722ed --- /dev/null +++ b/assets/series.html.jinja @@ -0,0 +1,39 @@ + + + + + {{ site }} - {{ series_name }} + + + + + + + +
+ + Back + +

{{ series_name }}

+ + cover + +

Content rating: {{ rating }}

+ +

Tags

+ + +

Chapters

+ +
+ + + \ No newline at end of file diff --git a/assets/style.css.jinja b/assets/style.css.jinja new file mode 100644 index 0000000..0265333 --- /dev/null +++ b/assets/style.css.jinja @@ -0,0 +1,178 @@ +@font-face { + font-family: lexend; + src: url("{{ base }}lexend.woff2"); +} + +.container { + display: flex; + flex-direction: column; + margin-left: auto; + margin-right: auto; + overflow-x: hidden; +} + +img { + margin: 0; + width: 100%; +} + +.cover { + width: 100%; +} + +body { + background-color: black; + color: white; + font-family: lexend, arial, serif; +} + +a { + color: white; +} + +.index { + font-size: 24px; + display: flex; + flex-wrap: wrap; + justify-content: space-between; + gap: 20px; +} + +.index-tags { + font-size: 18px; + gap: 3px; +} + +.index-rating { + gap: 5px; + flex-wrap: nowrap; + max-width: 400px; + margin-top: 15px; +} + +.index span { + color: rgb(255, 255, 255, 0.5); +} + +.nav { + display: flex; + justify-content: space-between; + gap: 10px; + margin-bottom: 20px; + margin-top: 20px; +} + +.nav-vertical { + flex-direction: column; +} + +.nav-link { + width: 100%; + border: 1px solid white; + line-height: 2; + padding: 0 5px; +} + +.nav-vertical .nav-link:visited { + border: 1px solid pink; +} + +.home-link { + border: 1px solid white; + line-height: 2; + font-size: 26px; + padding: 5px; + margin-bottom: 20px; +} + +.right { + text-align: right; +} + +.gallery { + display: flex; + flex-direction: row; + flex-wrap: wrap; + justify-content: space-around; + gap: 3px; +} + +a:has(> figure) { + margin: 0; + font-size: 12px; + font-weight: bold; + text-align: center; +} + +figure { + margin: 0; +} + +@media screen and (min-width: 1000px) { + + .cover { + width: 360px; + } + + .container { + max-width: 720px; + } + + .gallery { + margin-left: 5%; + margin-right: 5%; + justify-content: left; + gap: 16px; + } + + .index { + font-size: 18px; + margin-left: 5%; + margin-right: 5%; + } + a:has(> figure):hover { + text-decoration: underline; + } +} + +a:has(> figure):visited { + color: pink; +} + +a { + text-decoration: none; +} + +a:not(:has(> figure)):hover { + text-decoration: underline; +} + +.sheet { + margin-left: 10%; + margin-right: 10%; +} + +.li-link { + font-size: 24px; + line-height: 1.5; +} + +.back { + font-size: 20px; +} + +figure { + width: {{ thumbnail_width }}px; +} + +.t { + width: {{ thumbnail_width}}px; + height: {{thumbnail_height}}px; + object-fit: none; +} + +{% for class_name, offset in offsets %} +.{{ class_name }} { + object-position: {{ -offset }}px 0 +} +{% endfor %} \ No newline at end of file -- cgit v1.2.3