fix: root /downloads button fix, subdomain footer fix
This commit is contained in:
@@ -200,12 +200,13 @@ function AppLayout(props: { children: any }) {
|
|||||||
</Show>
|
</Show>
|
||||||
|
|
||||||
<Show when={!isMainSite()}>
|
<Show when={!isMainSite()}>
|
||||||
<div class="bg-base min-h-screen w-full overflow-x-hidden">
|
<div class="bg-base flex min-h-screen w-full flex-col overflow-x-hidden">
|
||||||
<noscript>
|
<noscript>
|
||||||
<div class="bg-yellow text-crust border-text fixed top-0 z-150 w-full border-b-2 p-4 text-center font-semibold">
|
<div class="bg-yellow text-crust border-text fixed top-0 z-150 w-full border-b-2 p-4 text-center font-semibold">
|
||||||
JavaScript is disabled. Features will be limited.
|
JavaScript is disabled. Features will be limited.
|
||||||
</div>
|
</div>
|
||||||
</noscript>
|
</noscript>
|
||||||
|
<div class="flex-1">
|
||||||
<ErrorBoundary
|
<ErrorBoundary
|
||||||
fallback={(error, reset) => (
|
fallback={(error, reset) => (
|
||||||
<ErrorBoundaryFallback error={error} reset={reset} />
|
<ErrorBoundaryFallback error={error} reset={reset} />
|
||||||
@@ -215,6 +216,7 @@ function AppLayout(props: { children: any }) {
|
|||||||
{props.children}
|
{props.children}
|
||||||
</Suspense>
|
</Suspense>
|
||||||
</ErrorBoundary>
|
</ErrorBoundary>
|
||||||
|
</div>
|
||||||
<SubdomainFooter />
|
<SubdomainFooter />
|
||||||
</div>
|
</div>
|
||||||
</Show>
|
</Show>
|
||||||
|
|||||||
@@ -1,31 +1,19 @@
|
|||||||
/**
|
|
||||||
* Minimal footer for product subdomains — "made with <3 by Mike Freno"
|
|
||||||
* linking back to the root domain.
|
|
||||||
*
|
|
||||||
* Placed in the shared subdomain layout (app.tsx) so every subdomain page
|
|
||||||
* gets it automatically. Uses `buildMainSiteUrl()` so the cross-domain link
|
|
||||||
* resolves correctly in both dev (path-based localhost) and prod (host-based
|
|
||||||
* freno.me).
|
|
||||||
*/
|
|
||||||
import { A } from "@solidjs/router";
|
import { A } from "@solidjs/router";
|
||||||
import { buildMainSiteUrl } from "~/lib/site-context";
|
import { buildMainSiteUrl } from "~/lib/site-context";
|
||||||
|
|
||||||
export default function SubdomainFooter() {
|
export default function SubdomainFooter() {
|
||||||
return (
|
return (
|
||||||
<footer class="border-surface0 border-t py-8">
|
<footer class="border-surface0 bg-surface0 relative z-10 border-t py-8">
|
||||||
<div class="flex items-center justify-between text-sm">
|
<div class="relative flex items-center text-sm">
|
||||||
<span class="text-text/60">
|
|
||||||
made with <span class="text-red-400"><3</span> by{" "}
|
|
||||||
<A
|
<A
|
||||||
href={buildMainSiteUrl()}
|
href={buildMainSiteUrl()}
|
||||||
class="text-text/80 hover:text-text underline underline-offset-4 transition-colors"
|
class="text-text/60 hover:text-text/80 mx-auto text-center underline underline-offset-4 transition-colors"
|
||||||
>
|
>
|
||||||
Mike Freno
|
made with <span class="text-red-400"><3</span>
|
||||||
</A>
|
</A>
|
||||||
</span>
|
|
||||||
<A
|
<A
|
||||||
href={buildMainSiteUrl("/downloads")}
|
href={buildMainSiteUrl("/downloads")}
|
||||||
class="text-text/80 hover:text-text underline underline-offset-4 transition-colors"
|
class="text-text/80 hover:text-text absolute right-4 underline underline-offset-4 transition-colors"
|
||||||
>
|
>
|
||||||
see more products
|
see more products
|
||||||
</A>
|
</A>
|
||||||
|
|||||||
@@ -177,7 +177,12 @@ export default function Button(props: ButtonProps) {
|
|||||||
if (isDisabledOrLoading) {
|
if (isDisabledOrLoading) {
|
||||||
return { bg: "var(--color-base)", text: "#ffffff" };
|
return { bg: "var(--color-base)", text: "#ffffff" };
|
||||||
}
|
}
|
||||||
return adjustForContrast(local.color || "var(--color-blue)");
|
// When no explicit color is given, fall back to the theme blue
|
||||||
|
// (a dark color whose contrast with white is already fine). Only
|
||||||
|
// pass a hex string to adjustForContrast — CSS variable values can't
|
||||||
|
// be parsed numerically.
|
||||||
|
if (!local.color) return { bg: "var(--color-blue)", text: "#ffffff" };
|
||||||
|
return adjustForContrast(local.color);
|
||||||
};
|
};
|
||||||
|
|
||||||
const sizeClasses = () => {
|
const sizeClasses = () => {
|
||||||
|
|||||||
@@ -107,7 +107,7 @@ function MainDownloadsPage() {
|
|||||||
</A>
|
</A>
|
||||||
</h2>
|
</h2>
|
||||||
|
|
||||||
<div class="flex flex-col gap-8 lg:flex-row lg:justify-around">
|
<div class="flex flex-col gap-8 lg:flex-row lg:flex-wrap lg:justify-around">
|
||||||
<div class="flex flex-col items-center gap-3">
|
<div class="flex flex-col items-center gap-3">
|
||||||
<span class="text-subtext0 font-mono text-sm">
|
<span class="text-subtext0 font-mono text-sm">
|
||||||
platform: macOS (14.6+)
|
platform: macOS (14.6+)
|
||||||
@@ -159,7 +159,7 @@ function MainDownloadsPage() {
|
|||||||
</A>
|
</A>
|
||||||
</h2>
|
</h2>
|
||||||
|
|
||||||
<div class="flex flex-col gap-8 lg:flex-row lg:justify-around">
|
<div class="flex flex-col gap-8 lg:flex-row lg:flex-wrap lg:justify-around">
|
||||||
<div class="flex flex-col items-center gap-3">
|
<div class="flex flex-col items-center gap-3">
|
||||||
<span class="text-subtext0 font-mono text-sm">
|
<span class="text-subtext0 font-mono text-sm">
|
||||||
platform: macOS (14.6+)
|
platform: macOS (14.6+)
|
||||||
@@ -209,7 +209,7 @@ function MainDownloadsPage() {
|
|||||||
</A>
|
</A>
|
||||||
</h2>
|
</h2>
|
||||||
|
|
||||||
<div class="flex flex-col gap-8 lg:flex-row lg:justify-around">
|
<div class="flex flex-col gap-8 lg:flex-row lg:flex-wrap lg:justify-around">
|
||||||
<div class="flex flex-col items-center gap-3">
|
<div class="flex flex-col items-center gap-3">
|
||||||
<span class="text-subtext0 font-mono text-sm">
|
<span class="text-subtext0 font-mono text-sm">
|
||||||
platform: android
|
platform: android
|
||||||
@@ -270,7 +270,7 @@ function MainDownloadsPage() {
|
|||||||
<span class="text-yellow">{">"}</span> {SwAText()}
|
<span class="text-yellow">{">"}</span> {SwAText()}
|
||||||
</h2>
|
</h2>
|
||||||
|
|
||||||
<div class="flex flex-col gap-8 lg:flex-row lg:justify-around">
|
<div class="flex flex-col gap-8 lg:flex-row lg:flex-wrap lg:justify-around">
|
||||||
<div class="flex flex-col items-center gap-3">
|
<div class="flex flex-col items-center gap-3">
|
||||||
<span class="text-subtext0 font-mono text-sm">
|
<span class="text-subtext0 font-mono text-sm">
|
||||||
platform: android
|
platform: android
|
||||||
|
|||||||
Reference in New Issue
Block a user