!tab.requiresAuth || isLoggedIn);
const isActive = (href: string) => {
- if (href === "/reader")
- return pathname === "/reader" || pathname === "/";
+ if (href === "/reader") return pathname === "/reader" || pathname === "/";
if (
href === "/reader/hot" &&
!isLoggedIn &&
diff --git a/components/PostListing.tsx b/components/PostListing.tsx
index 6954100e..19948d7d 100644
--- a/components/PostListing.tsx
+++ b/components/PostListing.tsx
@@ -13,10 +13,9 @@ import type { Post } from "app/(home-pages)/reader/getReaderFeed";
import Link from "next/link";
import { useEffect, useRef, useState } from "react";
-import { InteractionPreview, TagPopover } from "./InteractionsPreview";
+import { TagPopover } from "./InteractionsPreview";
import { useLocalizedDate } from "src/hooks/useLocalizedDate";
import { useSmoker } from "./Toast";
-import { Separator } from "./Layout";
import { CommentTiny } from "./Icons/CommentTiny";
import { QuoteTiny } from "./Icons/QuoteTiny";
import { ShareTiny } from "./Icons/ShareTiny";
@@ -27,7 +26,7 @@ import { getDocumentURL } from "app/lish/createPub/getPublicationURL";
import { RecommendButton } from "./RecommendButton";
import { getFirstParagraph } from "src/utils/getFirstParagraph";
-export const PostListing = (props: Post) => {
+export const PostListing = (props: Post & { selected?: boolean }) => {
let pubRecord = props.publication?.pubRecord as
| NormalizedPublication
| undefined;
@@ -101,8 +100,8 @@ export const PostListing = (props: Post) => {
className={`
relative
flex flex-col overflow-hidden
- selected-outline border-border-light rounded-lg w-full hover:outline-accent-contrast
- hover:border-accent-contrast
+ selected-outline rounded-lg w-full
+ ${props.selected ? "outline-2 outline-offset-1 outline-accent-contrast border-accent-contrast" : "hover:outline-accent-contrast hover:border-accent-contrast border-border-light"}
${showPageBackground ? "bg-bg-page " : "bg-bg-leaflet"} `}
style={
hasBackgroundImage
@@ -135,12 +134,12 @@ export const PostListing = (props: Post) => {
)}
{postRecord.title && (
-
+
{postRecord.title}
)}
-
+
{postRecord.description || getFirstParagraph(postRecord)}
diff --git a/components/ThemeManager/themeDefaults.ts b/components/ThemeManager/themeDefaults.ts
index df775809..32ef966f 100644
--- a/components/ThemeManager/themeDefaults.ts
+++ b/components/ThemeManager/themeDefaults.ts
@@ -9,13 +9,13 @@ export const PubThemeDefaults = {
pageBackground: "#FDFCFA",
primary: "#272727",
accentText: "#FFFFFF",
- accentBackground: "#0000FF",
+ accentBackground: "#639431",
} as const;
// RGB color defaults (parsed from hex values above)
export const PubThemeDefaultsRGB = {
background: { r: 253, g: 252, b: 250 }, // #FDFCFA
foreground: { r: 39, g: 39, b: 39 }, // #272727
- accent: { r: 0, g: 0, b: 255 }, // #0000FF
+ accent: { r: 99, g: 148, b: 49 }, // #639431
accentForeground: { r: 255, g: 255, b: 255 }, // #FFFFFF
} as const;
diff --git a/components/ThemeManager/themeUtils.ts b/components/ThemeManager/themeUtils.ts
index a25c48b2..35151728 100644
--- a/components/ThemeManager/themeUtils.ts
+++ b/components/ThemeManager/themeUtils.ts
@@ -12,8 +12,8 @@ export const ThemeDefaults = {
//everywhere else, accent-background = accent-1 and accent-text = accent-2.
// we just need to create a migration pipeline before we can change this
"theme/accent-text": "#FFFFFF",
- "theme/accent-background": "#0000FF",
- "theme/accent-contrast": "#0000FF",
+ "theme/accent-background": "#639431",
+ "theme/accent-contrast": "#639431",
};
// used to calculate the contrast between page and accent1, accent2, and determin which is higher contrast