diff --git a/main.go b/main.go index f4ec28a..4a45f7e 100644 --- a/main.go +++ b/main.go @@ -104,7 +104,7 @@ func main() { "OriginalURL": c.OriginalURL(), "PageURL": pageURL, "LoggedIn": token != "", - "Queries": c.Queries(), + "Queries": c.Queries(), }) return c.Next() }) diff --git a/views/css/style.css b/views/css/style.css index 4f5ba40..3690d4c 100644 --- a/views/css/style.css +++ b/views/css/style.css @@ -335,6 +335,26 @@ input[type=submit][hidden] { filter: brightness(1); } +.tabs { + margin-top: 1rem; + margin-bottom: 1rem; + border: 1px solid white; + border-radius: 3px; + overflow: hidden; + display: flex; + flex-wrap: wrap; +} +.tabs input[type=radio]:checked + label + .tabs-content { + display: block; +} +.tabs .tabs-content { + order: 999; + width: 100%; + border-top: 1px solid white; + padding: 0.5rem 1rem 1rem; + display: none; +} + #loading-indicator { z-index: 2; isolation: isolate; diff --git a/views/css/style.scss b/views/css/style.scss index 9c08b21..145645c 100644 --- a/views/css/style.scss +++ b/views/css/style.scss @@ -383,6 +383,28 @@ input[type="submit"][hidden] { } } +.tabs { + margin-top: 1rem; + margin-bottom: 1rem; + border: 1px solid white; + border-radius: 3px; + overflow: hidden; + display: flex; + flex-wrap: wrap; + + input[type="radio"]:checked + label + .tabs-content { + display: block; + } + + .tabs-content { + order: 999; + width: 100%; + border-top: 1px solid white; + padding: .5rem 1rem 1rem; + display: none; + } +} + // https://stackoverflow.com/questions/63787241/css-how-to-create-an-infinitely-moving-repeating-linear-gradient/63787567#63787567 #loading-indicator { z-index: 2; diff --git a/views/pages/settings.jet.html b/views/pages/settings.jet.html index f47cc96..2c68144 100644 --- a/views/pages/settings.jet.html +++ b/views/pages/settings.jet.html @@ -4,6 +4,78 @@ PixivFE uses cookies to store your preferences, which you can change on this page to customize your experience on this instance.
+ +Supported features (for now):
++ Log in with your Pixiv account's cookie to access features above. + To learn how to obtain your cookie, please see + the guide on obtaining your PixivFE token. +
++ Keep in mind that logins will expire whenever the server is updated, so you + may need to log in again if the server has been restarted recently. +
+ ++ To securely end your session, click the 'Logout!' button. This will + immediately remove your session token. +
+ ++ Choose how images are loaded in PixivFE by selecting either the built-in + proxy or one of the provided external proxy servers. If you prefer, you can + also specify a custom proxy server by entering its URL and clicking 'Use + Custom Proxy'. +
+Supported features (for now):
-- Log in with your Pixiv account's cookie to access features above. - To learn how to obtain your cookie, please see - the guide on obtaining your PixivFE token. -
-- Keep in mind that logins will expire whenever the server is updated, so you - may need to log in again if the server has been restarted recently. -
- -- To securely end your session, click the 'Logout!' button. This will - immediately remove your session token. -
- -- Choose how images are loaded in PixivFE by selecting either the built-in - proxy or one of the provided external proxy servers. If you prefer, you can - also specify a custom proxy server by entering its URL and clicking 'Use - Custom Proxy'. -
-