+
+
+ {showAverage && listing.rating != null ? (
+ <>
+
+ {listing.rating.toFixed(1)}
+
+ >
+ ) : (
+
+ —
+
+ )}
+
+ {reviewCount > 0
+ ? formatReviewCount(reviewCount)
+ : "No reviews yet"}
+
+
+
+ {distribution.map(({ stars, count }) => (
+
+ {stars}
+
+
+
+
+
+ {count}
+
+
+ ))}
+
+ {writeButton}
+
+
+ {reviews.length > 0 ? (
+ <>
+
{
+ const [key] = keys;
+ const next = SORT_OPTIONS.find((option) => option.id === key);
+ if (next) setSort(next.id);
+ }}
+ >
+ {SORT_OPTIONS.map((option) => (
+
+ {option.label}
+
+ ))}
+
+
+
+ {sorted.map((review) => (
+
{
+ void navigate({
+ to: "/products/$productId/reviews/$reviewId/edit",
+ params: {
+ productId: productSlug,
+ reviewId: review.id,
+ },
+ });
+ }}
/>
-
-
-
+ >
+ ) : (
+
+
No reviews yet
+
+ Be the first to tell people what you think of {listing.name}.
+
+
- Write a review
-
-
-
-
-
- {reviews.map((review) => (
- {
- void navigate({
- to: "/products/$productId/reviews/$reviewId/edit",
- params: {
- productId: productSlug,
- reviewId: review.id,
- },
- });
- }}
- />
- ))}
-
-
+ Write the first review
+
+
+ )}
+
);
}
diff --git a/src/routes/_header-layout.products.$productId.reviews.write.tsx b/src/routes/_header-layout.products.$productId.reviews.write.tsx
index 332b546..ef5afa5 100644
--- a/src/routes/_header-layout.products.$productId.reviews.write.tsx
+++ b/src/routes/_header-layout.products.$productId.reviews.write.tsx
@@ -11,10 +11,12 @@ import {
notFound,
useNavigate,
} from "@tanstack/react-router";
-import { Form } from "#/design-system/form";
-import { TextArea } from "#/design-system/text-area";
import { useRef, useState } from "react";
+import {
+ ReviewFormCard,
+ ReviewNoticeCard,
+} from "../components/shelf/listing/ReviewFormCard";
import {
AlertDialog,
AlertDialogActionButton,
@@ -24,18 +26,6 @@ import {
AlertDialogHeader,
} from "../design-system/alert-dialog";
import { Button } from "../design-system/button";
-import { Card } from "../design-system/card";
-import { Flex } from "../design-system/flex";
-import { Link } from "../design-system/link";
-import { StarRatingInput } from "../design-system/star-rating";
-import {
- gap,
- horizontalSpace,
- verticalSpace,
-} from "../design-system/theme/semantic-spacing.stylex";
-import { shadow } from "../design-system/theme/shadow.stylex";
-import { Body } from "../design-system/typography";
-import { Text } from "../design-system/typography/text";
import { directoryListingApi } from "../integrations/tanstack-query/api-directory-listings.functions";
import { user } from "../integrations/tanstack-query/api-user.functions";
import { blueskyReviewShareIntentHref } from "../lib/bluesky-review-share";
@@ -77,23 +67,9 @@ export const Route = createFileRoute(
component: ProductReviewWritePage,
});
-const AppLink = createLink(Link);
+const ButtonLink = createLink(Button);
const styles = stylex.create({
- reviewCard: {
- boxShadow: shadow.sm,
- height: "100%",
- },
- reviewCardBody: {
- gap: gap["5xl"],
- display: "flex",
- flexDirection: "column",
- height: "100%",
- paddingBottom: verticalSpace["4xl"],
- paddingLeft: horizontalSpace["4xl"],
- paddingRight: horizontalSpace["4xl"],
- paddingTop: verticalSpace["4xl"],
- },
/** Inert trigger for a controlled `AlertDialog`. */
dialogTriggerPlaceholder: {
margin: -1,
@@ -178,11 +154,7 @@ function ProductReviewWritePage() {
});
return (
-
-
- Write a review
-
-
+ <>
{
@@ -210,8 +182,8 @@ function ProductReviewWritePage() {
>
Share on Bluesky?
- Open Bluesky with a draft post that links to your review, same as the
- share button on the reviews page. You can edit before you publish.
+ Open Bluesky with a draft post that links to your review. You can edit
+ it before you publish.
Not now
@@ -237,69 +209,46 @@ function ProductReviewWritePage() {
{session?.user ? (
listing.atUri ? (
-
-
-
+ submitReview.mutate()}
+ cancel={{
+ to: "/products/$productId",
+ params: { productId: productSlug },
+ }}
+ />
) : (
-
+
This listing is not linked to an AT Protocol record yet, so reviews
cannot be published.
-
+
)
) : (
-
+ Sign in to write a review
+
+ }
>
- Sign in to write a review
-
+ Reviews are saved to your own repo, so you need to sign in first.
+
)}
-
+ >
);
}
diff --git a/src/routes/_header-layout.products.create.tsx b/src/routes/_header-layout.products.create.tsx
index 85ba3a5..b4d9638 100644
--- a/src/routes/_header-layout.products.create.tsx
+++ b/src/routes/_header-layout.products.create.tsx
@@ -4,6 +4,7 @@ import * as stylex from "@stylexjs/stylex";
import { useMutation, useQueryClient } from "@tanstack/react-query";
import { createFileRoute, redirect, useNavigate } from "@tanstack/react-router";
import { ProductListingForm } from "#/components/product-listing-form";
+import { FormFooter } from "#/components/shelf/forms/FormFooter";
import { useState } from "react";
import { Alert } from "../design-system/alert";
@@ -14,33 +15,72 @@ import {
AlertDialogFooter,
} from "../design-system/alert-dialog";
import { Button } from "../design-system/button";
-import { Flex } from "../design-system/flex";
-import { Page } from "../design-system/page";
+import { uiColor } from "../design-system/theme/color.stylex";
+import { breakpoints } from "../design-system/theme/media-queries.stylex";
import {
- horizontalSpace,
- verticalSpace,
-} from "../design-system/theme/semantic-spacing.stylex";
-import { Blockquote, Heading1 } from "../design-system/typography";
-import { Text } from "../design-system/typography/text";
+ fontFamily,
+ fontWeight,
+} from "../design-system/theme/typography.stylex";
import { directoryListingApi } from "../integrations/tanstack-query/api-directory-listings.functions";
import { user } from "../integrations/tanstack-query/api-user.functions";
import { blobToBase64 } from "../lib/blob-to-base64";
import { buildRouteOgMeta } from "../lib/og-meta";
const styles = stylex.create({
- page: {
- boxSizing: "border-box",
- marginLeft: "auto",
- marginRight: "auto",
- paddingBottom: verticalSpace["8xl"],
- paddingTop: verticalSpace["4xl"],
- width: "100%",
+ gate: {
+ marginInline: "auto",
+ fontFamily: fontFamily.sans,
+ maxWidth: 740,
+ paddingTop: { default: 28, [breakpoints.md]: 40 },
},
- section: {
- paddingBottom: verticalSpace["5xl"],
- paddingLeft: horizontalSpace.xl,
- paddingRight: horizontalSpace.xl,
- paddingTop: verticalSpace["5xl"],
+ title: {
+ color: uiColor.text2,
+ fontFamily: fontFamily.title,
+ fontSize: { default: 34, [breakpoints.md]: 44 },
+ fontWeight: 750,
+ letterSpacing: "-0.025em",
+ lineHeight: 1.05,
+ textWrap: "balance",
+ marginBottom: 18,
+ marginTop: 28,
+ },
+ prose: {
+ color: uiColor.text2,
+ fontSize: { default: 16, [breakpoints.md]: 18 },
+ lineHeight: 1.65,
+ },
+ paragraph: {
+ marginBottom: 14,
+ marginTop: 0,
+ },
+ quote: {
+ marginInline: 0,
+ paddingBlock: 4,
+ color: uiColor.text2,
+ fontSize: { default: 16, [breakpoints.md]: 17 },
+ lineHeight: 1.55,
+ borderLeftColor: uiColor.text2,
+ borderLeftStyle: "solid",
+ borderLeftWidth: 3,
+ marginBottom: 24,
+ marginTop: 24,
+ paddingLeft: 20,
+ },
+ strong: {
+ fontWeight: fontWeight.semibold,
+ },
+ // wrap-reverse: when the buttons stack on narrow phones, the primary
+ // action ends up on top.
+ actions: {
+ columnGap: 10,
+ display: "flex",
+ flexWrap: "wrap-reverse",
+ justifyContent: "flex-end",
+ rowGap: 10,
+ },
+ // Phones: the two buttons share the row (or stack) at full width.
+ grow: {
+ flexGrow: { default: 1, [breakpoints.sm]: 0 },
},
});
@@ -131,47 +171,47 @@ function CreateProductListingPage() {
if (!hasAcknowledgedOwnership) {
return (
-
-
-
- We review submissions and remove any listing that wasn’t
- created by the product’s owner.
-
- Are you the owner of this product?
-
-
- The at-store directory is built for the people who actually make
- the products it lists. Before you continue, please confirm that
- you represent this product — as a founder, team member, or someone
- officially authorized to speak for it.
-
-
- If you’re a fan, user, or third party: thank you for wanting
- to help, but please don’t submit a listing on someone
- else’s behalf. Ask the product’s owner to submit it
- themselves.
-
-
- To make this process easier create the listing with the same
- handle as the product. Example: if the product is "ATStore" create
- the listing with the handle "@atstore.fyi".
-
-
-
- If your product is already listed, you can claim it by clicking
- the "Claim" button on the listing page.
-
-
-
-
-
-
+
+
+ We review submissions and remove any listing that wasn’t created
+ by the product’s owner.
+
+
+ Are you the owner of this product?
+
+
+
+ The at-store directory is built for the people who actually make the
+ products it lists. Before you continue, please confirm that you
+ represent this product — as a founder, team member, or someone
+ officially authorized to speak for it.
+
+
+ If you’re a fan, user, or third party: thank you for wanting
+ to help, but please don’t submit a listing on someone
+ else’s behalf. Ask the product’s owner to submit it
+ themselves.
+
+
+ To make this easier, create the listing while signed in as the
+ product’s own account. If the product is
+ “ATStore”, sign in as{" "}
+ @atstore.fyi .
+
+
+
+ If your product is already listed, you can claim it with the
+ “Claim” button on its listing page.
+
+
+
{
void navigate({ to: "/home" });
}}
@@ -181,23 +221,26 @@ function CreateProductListingPage() {
{
setHasAcknowledgedOwnership(true);
}}
>
I own this product — continue
-
-
-
+
+
+
);
}
return (
<>
(
rows: Array,
@@ -172,6 +326,7 @@ function ManageListingsPage() {
const { data: listings } = useSuspenseQuery(
directoryListingApi.getMyProductListingsQueryOptions(),
);
+ const secondaryButton = useButtonStyles({ variant: "secondary", size: "sm" });
const { live: liveListings, pendingOrRejected: pendingListings } = useMemo(
() => splitListingsByVerification(listings),
@@ -206,20 +361,18 @@ function ManageListingsPage() {
type MyListingRow = (typeof listings)[number];
- function renderListingCard(listing: MyListingRow) {
- const history = listing.rejectionHistory;
+ function renderActionsMenu(listing: MyListingRow) {
const isLive = listing.verificationStatus === "verified";
-
- const actions = (
+ return (
-
+
}
>
@@ -248,6 +401,7 @@ function ManageListingsPage() {
>
Edit
+
}
@@ -259,161 +413,214 @@ function ManageListingsPage() {
);
+ }
- if (isLive) {
- return (
-
-
-
-
- {listing.iconUrl ? (
-
- ) : null}
-
- {listing.name}
-
-
- {actions}
-
-
-
- );
- }
+ function renderEditButton(listing: MyListingRow) {
+ return (
+
+
+ Edit
+
+ );
+ }
+ function renderLiveRow(listing: MyListingRow) {
return (
-
-
-
-
-
- {listing.iconUrl ? (
-
- ) : null}
-
-
-
- {listing.name}
-
-
-
- {verificationLabel(listing.verificationStatus)}
-
-
-
- {actions}
-
+
+
+
+
+ {listing.name}
+
+ {listing.tagline ? (
+
{listing.tagline}
+ ) : null}
+
+
+
+
+
+ Reviews
+
+ {listing.reviewCount > 0 ? (
+
+ ) : (
+ None yet
+ )}
+
+
+
+ Updated
+
+ {formatTimeAgo(listing.updatedAt)}
+
+
+
+
+
+
+ {renderEditButton(listing)}
+
+ View
+
+ {renderActionsMenu(listing)}
+
+
+ );
+ }
- {history.length > 0 ? (
-
-
- Rejection history
-
-
- {history.map((entry, hi) => (
-
-
- {Intl.DateTimeFormat("en-US", {
- dateStyle: "short",
- timeStyle: "short",
- }).format(new Date(entry.createdAt))}
- {" — "}
- {entry.reason}
-
-
- ))}
-
-
- ) : null}
-
-
-
+ function renderPendingRow(listing: MyListingRow) {
+ const history = listing.rejectionHistory;
+ return (
+
+
+
+
+ Updated
+
+ {formatTimeAgo(listing.updatedAt)}
+
+
+
+
+
+
+ {renderEditButton(listing)}
+ {renderActionsMenu(listing)}
+
+ {history.length > 0 ? (
+
+
Rejection history
+
+ {history.map((entry, hi) => (
+
+
+ {historyDateFormat.format(new Date(entry.createdAt))}
+
+ {entry.reason}
+
+ ))}
+
+
+ ) : null}
+
);
}
return (
<>
-
-
-
-
- Your listings
- {
- void navigate({ to: "/products/create" });
- }}
- >
-
-
- Create
-
-
-
-
- Create listings, track review status, and see feedback from
- moderation.
-
-
+
+
+
+ Submit an app
+
+ }
+ />
- {listings.length === 0 ? (
-
- Nothing is published from your repository yet. Create a listing to
- get started.
-
- ) : (
-
+ {listings.length === 0 ? (
+
+
+
+ Nothing is published from your repository yet. Create a listing
+ to get started.
+
+
+
+ Submit an app
+
+
+
+ ) : (
+ <>
+
+
{pendingListings.length > 0 ? (
-
-
-
- Pending
-
-
- Not shown in the public directory until approved.
- Rejection notes are kept so you can revise and resubmit.
-
-
-
- {pendingListings.map((listing) =>
- renderListingCard(listing),
- )}
-
-
- ) : null}
+
+ {pendingListings.map((listing) => renderPendingRow(listing))}
+
+ ) : (
+
+ Nothing waiting for review.
+
+ )}
+
+
+ {liveListings.length > 0 ? (
+
+
+ Live
+
+ {liveListings.length}
+
+ >
+ }
+ />
+
+ {liveListings.map((listing) => renderLiveRow(listing))}
+
+
+ ) : null}
+ >
+ )}
- {liveListings.length > 0 ? (
-
-
- Approved
-
-
- {liveListings.map((listing) => renderListingCard(listing))}
-
-
- ) : null}
-
- )}
-
-
+
+
+
+
+
+ Already listed by at-store?
+
+
+ If we added your app before you did, claim it to move the record
+ into your own repo.
+
+
+
+ Claim a listing
+
+
+
+
28 ? `${did.slice(0, 18)}…` : did);
const subtitle =
page.displayName?.trim() && handleDisplay ? handleDisplay : null;
- const buttonStyles = useButtonStyles({ variant: "secondary", size: "lg" });
const blueskyProfileId = page.handle?.trim()
? page.handle.replace(/^@+/, "")
: did;
const blueskyProfileUrl = `https://bsky.app/profile/${blueskyProfileId}`;
- const [showAllFavorites, setShowAllFavorites] = useState(false);
+ const isViewer = session?.user?.did === did;
+ const owned = ownedProducts ?? [];
const hasMoreFavorites = favoriteProducts.length > FAVORITES_PREVIEW_LIMIT;
const visibleFavoriteProducts =
showAllFavorites || !hasMoreFavorites
? favoriteProducts
: favoriteProducts.slice(0, FAVORITES_PREVIEW_LIMIT);
+ const reviewCount = page.reviews.length;
return (
-
-
-
-
+
+ {page.bannerUrl ? (
+
-
-
- {mainTitle}
- {page.germDmHref ? (
-
- ) : null}
-
- {subtitle ? (
-
- {subtitle}
-
- ) : null}
-
+ ) : null}
+
+
+
+
+
+
{mainTitle}
+ {page.germDmHref ? (
+
+ ) : null}
+
+ {subtitle ? (
+
{subtitle}
+ ) : null}
+
+
-
+
+ Bluesky
-
-
+ {isViewer ? (
+
+
+ Manage listings
+
+ ) : null}
+
+
+
+
+ {page.description ? (
+
{page.description}
+ ) : null}
+
+
+ {reviewCount} {" "}
+ {reviewCount === 1 ? "review" : "reviews"}
+
+ {favoriteProducts.length > 0 ? (
+
+
+ {favoriteProducts.length}
+ {" "}
+ {favoriteProducts.length === 1 ? "favorite" : "favorites"}
+
+ ) : null}
+ {owned.length > 0 ? (
+
+ {owned.length} {" "}
+ {owned.length === 1 ? "product" : "products"}
+
+ ) : null}
+
+
{favoriteProducts.length > 0 ? (
-
-
- Favorites
- {hasMoreFavorites ? (
- {
- setShowAllFavorites((current) => !current);
- }}
- >
- {showAllFavorites ? "Show less" : "Show more"}
-
- ) : null}
-
-
+
+ {
+ setShowAllFavorites((current) => !current);
+ }}
+ >
+ {showAllFavorites ? "Show less" : "Show more"}
+
+ ) : null
+ }
+ />
+
{visibleFavoriteProducts.map((favorite) => (
-
- {favorite.iconUrl ? (
-
- ) : null}
-
-
- {favorite.name}
-
- {favorite.tagline ? (
-
- {favorite.tagline}
-
- ) : null}
-
-
+ />
))}
-
+
) : null}
- {ownedProducts && ownedProducts.length > 0 ? (
-
- Products
-
- {ownedProducts.map((p) => (
-
- {p.iconUrl ? (
-
- ) : null}
-
-
-
- {p.name}
-
-
- {p.reviewCount === 0
- ? "No reviews"
- : `${p.reviewCount} review${p.reviewCount === 1 ? "" : "s"}`}
- {p.averageRating != null && p.reviewCount > 0
- ? ` · ${Number(p.averageRating).toFixed(1)} ★`
- : ""}
-
-
- {p.tagline ? (
-
- {p.tagline}
-
- ) : null}
-
-
+ {owned.length > 0 ? (
+
+
+
+ {owned.map((product) => (
+
))}
-
+
) : null}
-
- Reviews
+
+
{page.reviews.length > 0 ? (
-
+
{page.reviews.map((review) => (
{
void navigate({
to: "/products/$productId/reviews/$reviewId/edit",
@@ -383,19 +435,11 @@ function UserProfilePage() {
}}
/>
))}
-
+
) : (
-
- No reviews yet.
-
+ No reviews yet.
)}
-
-
+
+
);
}
diff --git a/src/routes/_header-layout.tsx b/src/routes/_header-layout.tsx
index 2f3fbd0..d406f3d 100644
--- a/src/routes/_header-layout.tsx
+++ b/src/routes/_header-layout.tsx
@@ -19,7 +19,7 @@ function HeaderLayoutOutletFallback() {
function HeaderLayoutRoute() {
return (
-
+
diff --git a/src/routes/login.tsx b/src/routes/login.tsx
index 6b6778c..68c55fc 100644
--- a/src/routes/login.tsx
+++ b/src/routes/login.tsx
@@ -7,38 +7,31 @@ import { auth } from "#/integrations/tanstack-query/api-auth.functions";
import { buildRouteOgMeta } from "#/lib/og-meta";
import { unauthMiddleware } from "#/middleware/auth";
import { getSavedHandles, saveHandle } from "#/utils/saved-handles";
-import { ChevronRight, InfoIcon } from "lucide-react";
+import { ChevronRight, Minus, Plus } from "lucide-react";
import { useEffect, useState } from "react";
-import { Link as AriaLink } from "react-aria-components";
+import {
+ Button as AriaButton,
+ Disclosure as AriaDisclosure,
+ DisclosurePanel as AriaDisclosurePanel,
+ Link as AriaLink,
+} from "react-aria-components";
import { z } from "zod";
import { AtStoreLogo } from "../components/AtStoreLogo";
+import { SiteFooter } from "../components/SiteFooter";
+import { SiteHeader } from "../components/SiteHeader";
import { UserHandleAutocomplete } from "../components/user-handle-autocomplete";
import { Avatar } from "../design-system/avatar";
import { Button } from "../design-system/button";
-import {
- Dialog,
- DialogBody,
- DialogDescription,
- DialogHeader,
-} from "../design-system/dialog";
-import { Flex } from "../design-system/flex";
import { Form } from "../design-system/form";
-import { IconButton } from "../design-system/icon-button";
-import { Link } from "../design-system/link";
-import { LinkContext } from "../design-system/link/link-context";
-import { Separator } from "../design-system/separator";
-import { primaryColor, uiColor } from "../design-system/theme/color.stylex";
+import { HeaderLayout } from "../design-system/header-layout";
+import { animationDuration } from "../design-system/theme/animations.stylex";
+import { criticalColor, uiColor } from "../design-system/theme/color.stylex";
import { breakpoints } from "../design-system/theme/media-queries.stylex";
-import { radius } from "../design-system/theme/radius.stylex";
-import { primary } from "../design-system/theme/semantic-color.stylex";
import {
- gap as gapSpace,
- size as sizeSpace,
- verticalSpace,
-} from "../design-system/theme/semantic-spacing.stylex";
-import { Body, InlineCode } from "../design-system/typography";
-import { Text } from "../design-system/typography/text";
+ fontFamily,
+ fontWeight,
+} from "../design-system/theme/typography.stylex";
const searchSchema = z.object({
redirect: z.string().optional(),
@@ -49,79 +42,201 @@ const searchSchema = z.object({
});
const styles = stylex.create({
- dialogDescription: {
- paddingBottom: verticalSpace["3xl"],
- paddingTop: verticalSpace["3xl"],
- },
- buttonContainer: {
- width: "100%",
- },
- main: {
- backgroundColor: primaryColor.bgSubtle,
- display: "flex",
- flexDirection: "column",
- position: "relative",
- minHeight: "100vh",
- },
- container: {
- padding: sizeSpace["4xl"],
+ page: {
+ paddingBlock: { default: 32, [breakpoints.md]: 48 },
alignItems: "center",
boxSizing: "border-box",
display: "flex",
flexDirection: "column",
- flexGrow: 1,
+ fontFamily: fontFamily.sans,
justifyContent: "center",
- height: "100%",
+ rowGap: 24,
+ minHeight: "calc(100vh - 160px)",
},
- content: {
- padding: sizeSpace["3xl"],
- gap: gapSpace["5xl"],
- alignItems: "center",
+ logo: {
+ color: uiColor.text2,
+ fontSize: 26,
+ },
+ card: {
+ padding: { default: 20, [breakpoints.md]: 28 },
+ borderColor: uiColor.border1,
+ borderRadius: 20,
+ borderStyle: "solid",
+ borderWidth: 1,
+ backgroundColor: uiColor.bg,
+ boxSizing: "border-box",
+ display: "block",
+ width: "min(420px, 100%)",
+ },
+ title: {
+ color: uiColor.text2,
+ fontFamily: fontFamily.title,
+ fontSize: 32,
+ fontWeight: 750,
+ letterSpacing: "-0.025em",
+ lineHeight: 1.1,
+ marginBottom: 8,
+ marginTop: 0,
+ },
+ intro: {
+ color: uiColor.text1,
+ lineHeight: 1.45,
+ marginBottom: 22,
+ marginTop: 0,
+ },
+ error: {
+ borderColor: criticalColor.border1,
+ borderRadius: 12,
+ borderStyle: "solid",
+ borderWidth: 1,
+ paddingBlock: 10,
+ paddingInline: 14,
+ backgroundColor: criticalColor.bgSubtle,
+ color: criticalColor.text2,
+ fontSize: 14,
+ marginBottom: 18,
+ marginTop: 0,
+ },
+ savedList: {
display: "flex",
flexDirection: "column",
+ rowGap: 8,
},
- form: {
- width: {
- default: "100%",
- [breakpoints.sm]: "min(80vw, 420px)",
- },
- },
- savedHandlesContainer: {
- width: {
- default: "100%",
- [breakpoints.sm]: "min(80vw, 420px)",
+ saved: {
+ padding: 12,
+ borderColor: {
+ default: uiColor.border2,
+ ":hover": uiColor.text2,
},
- },
- savedHandleButton: {
- padding: sizeSpace.xxs,
- borderRadius: radius["lg"],
- cornerShape: "squircle",
- gap: gapSpace.xl,
+ borderRadius: 14,
+ borderStyle: "solid",
+ borderWidth: 1,
textDecoration: "none",
alignItems: "center",
+ backgroundColor: uiColor.bgSubtle,
boxSizing: "border-box",
- cursor: "pointer",
+ color: uiColor.text2,
+ columnGap: 12,
display: "flex",
- flexDirection: "row",
- justifyContent: "flex-start",
- textAlign: "left",
+ outlineOffset: 2,
+ transitionDuration: animationDuration.default,
+ transitionProperty: "border-color",
width: "100%",
},
- savedHandleText: {
+ savedText: {
+ display: "flex",
+ flexDirection: "column",
flexGrow: 1,
+ fontSize: 14,
minWidth: 0,
},
- savedHandleIcon: {
+ savedHandle: {
+ overflow: "hidden",
+ fontWeight: fontWeight.semibold,
+ textOverflow: "ellipsis",
+ whiteSpace: "nowrap",
+ },
+ savedHint: {
+ color: uiColor.text1,
+ },
+ savedChevron: {
+ color: uiColor.text1,
+ flexShrink: 0,
+ },
+ or: {
+ marginBlock: 20,
+ alignItems: "center",
+ color: uiColor.text1,
+ columnGap: 12,
+ display: "flex",
+ fontSize: 13,
+ "::after": {
+ backgroundColor: uiColor.border1,
+ content: "''",
+ flexGrow: 1,
+ height: 1,
+ },
+ "::before": {
+ backgroundColor: uiColor.border1,
+ content: "''",
+ flexGrow: 1,
+ height: 1,
+ },
+ },
+ submit: {
+ marginTop: 18,
+ width: "100%",
+ },
+ guide: {
color: uiColor.text1,
+ fontSize: 13,
+ marginTop: 20,
},
- loginButton: {
+ guideTrigger: {
+ padding: 0,
+ borderRadius: 6,
+ borderWidth: 0,
+ alignItems: "center",
+ backgroundColor: "transparent",
+ color: {
+ default: uiColor.text1,
+ ":hover": uiColor.text2,
+ },
+ columnGap: 6,
cursor: "pointer",
+ display: "inline-flex",
+ fontFamily: "inherit",
+ fontSize: 13,
+ },
+ guideList: {
+ color: uiColor.text1,
+ lineHeight: 1.6,
+ marginBottom: 0,
+ marginTop: 10,
+ paddingLeft: 18,
+ },
+ guideItem: {
+ marginBottom: 6,
+ },
+ guideStrong: {
+ color: uiColor.text2,
+ fontWeight: fontWeight.semibold,
+ },
+ code: {
+ fontFamily: fontFamily.mono,
+ fontSize: "0.92em",
+ },
+ inlineLink: {
+ textDecoration: "underline",
+ color: uiColor.text2,
+ textDecorationColor: {
+ default: uiColor.border2,
+ ":hover": "currentColor",
+ },
+ textUnderlineOffset: 3,
+ },
+ signup: {
+ margin: 0,
+ color: uiColor.text1,
+ textAlign: "center",
},
signupButton: {
+ padding: 0,
+ borderWidth: 0,
+ textDecoration: "underline",
+ backgroundColor: "transparent",
+ color: {
+ default: uiColor.text2,
+ ":disabled": uiColor.text1,
+ },
cursor: "pointer",
- },
- logoContainer: {
- paddingBottom: verticalSpace["lg"],
+ fontFamily: "inherit",
+ fontSize: "inherit",
+ textDecorationColor: {
+ default: uiColor.border2,
+ ":hover": "currentColor",
+ },
+ textUnderlineOffset: 3,
},
});
@@ -214,218 +329,181 @@ function AuthPage() {
},
});
- const [view, setView] = useState<"saved-handles" | "login">(
- savedHandles.length > 0 ? "saved-handles" : "login",
- );
+ const [isGuideOpen, setIsGuideOpen] = useState(false);
+ const hasSavedHandles = savedHandles.length > 0;
return (
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+ Log in
+
+ Use your Atmosphere account, the same one you use for Bluesky.
+
{error === "oauth_failed" ? (
-
+
Sign-in failed. Try again.
-
+
) : null}
- {view === "saved-handles" && (
+ {hasSavedHandles ? (
<>
-
+
{savedHandles.map((saved, index) => (
-
- {saved.handle}
-
-
+
+
+ @{saved.handle}
+
+
+ Continue with this account
+
+
+
))}
-
-
-
+
+
+ or another account
+
>
- )}
+ ) : null}
- {view === "login" && (
-
-
- Atmosphere Account
- e.preventDefault()}
- >
-
-
- }
- size="md"
- >
- How login works
-
- Sign in with your AT Protocol account.
-
-
-
-
-
- What is a handle?
-
-
- A handle is your unique identifier on the
- ATmosphere network (e.g.{" "}
- user.bsky.social
- ). It is how others find and mention you.
-
-
+ {
+ setInputValue(value);
+ setHandle(value);
+ }}
+ onSelect={(selectedHandle) => {
+ const trimmed = selectedHandle.trim().replace(/^@/, "");
+ if (trimmed === "") return;
+ setInputValue(trimmed);
+ setHandle(trimmed);
+ loginMutation.mutate(trimmed);
+ }}
+ />
-
-
- Authentication
-
-
- You sign in with your Personal Data Server
- (PDS). at-store does not store your
- password—authorization happens with your PDS
- host.
-
-
+ {
+ const trimmed = handle.trim().replace(/^@/, "");
+ if (trimmed === "") return;
+ loginMutation.mutate(trimmed);
+ }}
+ style={styles.submit}
+ >
+ Log in
+
-
-
- Privacy
-
-
- Your handle can be saved in this browser for
- convenience. at-store does not have access to
- your account credentials beyond what you
- authorize via OAuth.
-
-
+
+
+ {isGuideOpen ? (
+
+ ) : (
+
+ )}
+ How login works
+
+
+
+
+
+ Handle.
+ {" "}
+ Your unique identifier on the Atmosphere network (e.g.{" "}
+ user.bsky.social
+ ). It is how others find and mention you.
+
+
+
+ Authentication.
+ {" "}
+ You sign in with your Personal Data Server (PDS). at-store
+ does not store your password; authorization happens with
+ your PDS host.
+
+
+
+ Privacy.
+ {" "}
+ Your handle can be saved in this browser for convenience.
+ at-store does not have access to your account credentials
+ beyond what you authorize via OAuth.
+
+
+
+ Need an account?
+ {" "}
+ Use "Create an account" below to sign up on a PDS
+ host (e.g.{" "}
+
+ selfhosted.social
+
+ ).
+
+
+
+
+
-
-
- Need an account?
-
-
- Use "Create Account" to sign up on a
- PDS host (e.g.{" "}
-
-
- selfhosted.social
-
-
- ).
-
-
-
-
-
-
- }
- value={inputValue}
- onValueChange={(value) => {
- setInputValue(value);
- setHandle(value);
- }}
- onSelect={(selectedHandle) => {
- const trimmed = selectedHandle.trim().replace(/^@/, "");
- if (trimmed === "") return;
- setInputValue(trimmed);
- setHandle(trimmed);
- loginMutation.mutate(trimmed);
- }}
- />
-
- )}
+
+ New to the Atmosphere?{" "}
+ handleSignup.mutate()}
+ isDisabled={handleSignup.isPending || loginMutation.isPending}
+ {...stylex.props(styles.signupButton)}
+ >
+ {handleSignup.isPending
+ ? "Opening sign-up…"
+ : "Create an account"}
+
+
+
+
-
- {view === "saved-handles" && (
- setView("login")}
- isPending={handleSignup.isPending}
- isDisabled={loginMutation.isPending}
- style={styles.signupButton}
- >
- Switch account
-
- )}
- {view === "login" && (
- {
- const trimmed = handle.trim().replace(/^@/, "");
- if (trimmed === "") return;
- loginMutation.mutate(trimmed);
- }}
- style={styles.loginButton}
- >
- Log in
-
- )}
- handleSignup.mutate()}
- isPending={handleSignup.isPending}
- isDisabled={loginMutation.isPending}
- style={styles.signupButton}
- >
- Create account
-
-
-
-
-
-
+
+
+
+
);
}
diff --git a/src/styles.css b/src/styles.css
index 293d3b1..e6f287f 100644
--- a/src/styles.css
+++ b/src/styles.css
@@ -1,3 +1,157 @@
+/*
+ * Shelf fonts, self-hosted (SIL Open Font License; see public/fonts/README.md).
+ * Variable Latin subsets: one file per family covering the weights we use.
+ */
+@font-face {
+ font-family: "Bricolage Grotesque";
+ src: url("/fonts/bricolage-grotesque-500-800.woff2") format("woff2");
+ font-weight: 500 800;
+ font-style: normal;
+ font-display: swap;
+}
+@font-face {
+ font-family: "Mona Sans";
+ src: url("/fonts/mona-sans-400-700.woff2") format("woff2");
+ font-weight: 400 700;
+ font-style: normal;
+ font-display: swap;
+}
+@font-face {
+ font-family: "Geist Mono";
+ src: url("/fonts/geist-mono-400-600.woff2") format("woff2");
+ font-weight: 400 600;
+ font-style: normal;
+ font-display: swap;
+}
+
body {
margin: 0;
+ /* Shelf paper; matches uiColor.bgSubtle so overscroll never flashes white. */
+ background-color: light-dark(#f6f4ef, #12110f);
+ -webkit-font-smoothing: antialiased;
+ -moz-osx-font-smoothing: grayscale;
+ text-rendering: optimizeLegibility;
+}
+
+::selection {
+ background-color: light-dark(#1c4ef5, #7b97ff);
+ color: light-dark(#fff, #12110f);
+}
+
+/* Base font for anything that doesn't set its own (matches fontFamily.sans). */
+body {
+ font-family:
+ "SF Pro Text",
+ -apple-system,
+ BlinkMacSystemFont,
+ "Inter",
+ "Segoe UI",
+ Roboto,
+ system-ui,
+ sans-serif;
+ color: light-dark(#191816, #f2efe8);
+}
+
+/*
+ * Page transitions (View Transitions API; the router starts them, see
+ * src/lib/view-transitions.ts). Subtle on purpose: a quick fade out, a short
+ * lift-and-fade in, a fixed header, a sliding nav underline, and a listing's
+ * icon and hero that settle into place where they are (nothing travels
+ * across the page).
+ */
+[data-site-header] {
+ view-transition-name: site-header;
+}
+[data-nav-underline] {
+ view-transition-name: nav-underline;
+}
+
+::view-transition-old(root) {
+ animation: vt-fade-out 120ms ease-in both;
+}
+::view-transition-new(root) {
+ animation: vt-lift-in 260ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
+}
+
+/* The header is identical across pages; never animate it. */
+::view-transition-group(site-header),
+::view-transition-old(site-header),
+::view-transition-new(site-header) {
+ animation: none;
+}
+
+::view-transition-group(nav-underline) {
+ animation-duration: 280ms;
+ animation-timing-function: cubic-bezier(0.2, 0.7, 0.2, 1);
+}
+
+/*
+ * Listing icon and hero. Arriving on a listing they settle in place, a beat
+ * after the page; leaving, they fade with it. Between two listings (or a
+ * listing and itself) the pair just crossfades in place.
+ */
+::view-transition-new(listing-icon):only-child {
+ animation: vt-settle 380ms cubic-bezier(0.2, 0.7, 0.2, 1) 40ms both;
+}
+::view-transition-new(listing-hero):only-child {
+ animation: vt-settle-soft 420ms cubic-bezier(0.2, 0.7, 0.2, 1) 80ms both;
+}
+::view-transition-old(listing-icon):only-child,
+::view-transition-old(listing-hero):only-child {
+ animation: vt-fade-out 120ms ease-in both;
+}
+::view-transition-group(listing-icon),
+::view-transition-group(listing-hero) {
+ animation-duration: 260ms;
+}
+
+@keyframes vt-fade-out {
+ to {
+ opacity: 0;
+ }
+}
+@keyframes vt-lift-in {
+ from {
+ opacity: 0;
+ transform: translateY(8px);
+ }
+}
+@keyframes vt-settle {
+ from {
+ opacity: 0;
+ transform: translateY(8px) scale(0.92);
+ }
+}
+@keyframes vt-settle-soft {
+ from {
+ opacity: 0;
+ transform: translateY(10px) scale(0.985);
+ }
+}
+
+@media (prefers-reduced-motion: reduce) {
+ /* The router doesn't start view transitions under reduced motion
+ (src/lib/view-transitions.ts); this covers any started elsewhere. */
+ ::view-transition-group(*),
+ ::view-transition-old(*),
+ ::view-transition-new(*) {
+ animation: none !important;
+ }
+
+ /*
+ * Site-wide safety net: hover lifts, chevron nudges, dialog zooms, drawer
+ * slides, popover scales, loading shimmers and smooth scrolling all become
+ * instant. Durations are 1ms rather than 0 so code waiting for
+ * animationend/transitionend (e.g. react-aria exit animations) still runs.
+ */
+ *,
+ *::before,
+ *::after {
+ animation-delay: 0s !important;
+ animation-duration: 1ms !important;
+ animation-iteration-count: 1 !important;
+ scroll-behavior: auto !important;
+ transition-delay: 0s !important;
+ transition-duration: 1ms !important;
+ }
}