${source.name}
+Last updated: ${lastUpdated.toISOString().split("T")[0]}
diff --git a/common/modules/main.js b/common/modules/main.js index c7877a6..bee1c1a 100644 --- a/common/modules/main.js +++ b/common/modules/main.js @@ -37,12 +37,12 @@ export function main(callback, fallbackURL = "../../") { const tintColor = json.tintColor?.replaceAll("#", ""); if (tintColor) setTintColor(tintColor); - insertAltStoreBanner(json.name); + // insertAltStoreBanner(json.name); setApps(json.apps); // main(json); callback(json); - waitForAllImagesToLoad(); + // waitForAllImagesToLoad(); }) .catch(error => { alert(error); diff --git a/common/style.css b/common/style.css index 510c45e..0214396 100644 --- a/common/style.css +++ b/common/style.css @@ -107,13 +107,8 @@ body.loading { opacity: 0.35; } -/* h1#title { - padding-left: 1rem; -} */ - body { width: 100%; - padding-bottom: 20px; } @media screen and (min-device-width: 767px) { @@ -135,17 +130,12 @@ body { right: 0; } -#title { - margin-bottom: 0.25em; -} - #main>p:first-of-type { text-transform: uppercase; font-weight: 500; - font-size: 0.9em; + font-size: 0.8em; opacity: 0.5; padding-left: 1rem; - margin-top: 1rem; } /* Navigation bar */ @@ -159,13 +149,17 @@ body { background-color: var(--color-transparent); -webkit-backdrop-filter: saturate(100%) blur(30px); backdrop-filter: saturate(100%) blur(20px); - max-width: 414px; + max-width: 382px; min-width: 0; margin: 0 auto; - padding: 0.25em 0.75em; + padding: 0.25em 16px 0.25em 16px; z-index: 2; } +#nav-bar.hide-border { + border-bottom: none; +} + #nav-bar #title { display: flex; flex-direction: row; @@ -174,6 +168,7 @@ body { min-height: 2.5em; margin: 0; overflow: hidden; + transition: opacity 0.25s ease-in-out; } #nav-bar #title>p { @@ -204,11 +199,19 @@ body { margin-left: 6px; } +.nav-bar-buttons { + display: flex; + flex-direction: row; + align-items: center; + gap: 1rem; +} + /* Main */ #main { /* padding: 1em; */ - padding-top: 3.55rem; + padding-top: 3rem; + padding-bottom: 3rem; } .item { @@ -235,6 +238,7 @@ body { grid-auto-flow: column; overflow-x: scroll; padding: 1rem; + padding-bottom: 0; } #news-items.one { @@ -273,6 +277,10 @@ body { display: block; } +.section { + margin-top: 1rem; +} + /* App header */ #apps.section .item { @@ -430,6 +438,65 @@ a>button { color: var(--accent-color); } +.source { + display: flex; + margin: 0 1rem 0 1rem; + margin-top: 0.75rem; + padding: 1rem; + border-radius: 1.5rem; + gap: 0.8rem; + background-color: var(--app-tint-color); +} + +.source>img { + max-width: 42px; + border-radius: 256px; +} + +.source>.right { + display: flex; + flex-direction: row; + align-items: center; + justify-content: space-between; + width: 100%; + color: white; +} + +.source>.right>.text { + display: flex; + flex-direction: column; + justify-content: center; +} + +.source>.right>.text>.title { + font-weight: 600; + font-size: 1rem !important; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; +} + +.source>.right>.text>.subtitle { + opacity: 0.5; + font-size: 0.85em; + white-space: break-spaces; +} + +.source>.right>.app-count { + display: block; + width: 1.5rem; + height: 1.5rem; + display: flex; + justify-content: center; + align-items: center; + padding: 2px; + background-color: rgba(255, 255, 255, 0.25); + border-radius: 64px; + font-size: 0.85rem; + font-weight: 600; +} + + /* Badges */ .badge { diff --git a/index.css b/index.css index 9b137d8..4795ee7 100644 --- a/index.css +++ b/index.css @@ -6,11 +6,11 @@ MIT License. */ -#main { - padding-top: 2rem; +#nav-bar.hide-border { + border-bottom: none; } -#main #title { +#main h1 { margin-bottom: 0.35rem; padding: 0 1rem; } @@ -28,6 +28,10 @@ outline: none; } */ +.section a { + color: white; +} + .suggestion { padding: 1rem 1rem 1rem 0; margin-left: 1rem; diff --git a/index.html b/index.html index 8a1df1a..f1b68df 100644 --- a/index.html +++ b/index.html @@ -17,6 +17,19 @@
${source.name}
+Last updated: ${lastUpdated.toISOString().split("T")[0]}
- Loading
-
- Loading
+ +
- Loading
-
- Loading
-AltSource Viewer
- Loading
-