diff --git a/src/views/bookmark.ts b/src/views/bookmark.ts index 8bf51e9..e1e83a6 100644 --- a/src/views/bookmark.ts +++ b/src/views/bookmark.ts @@ -29,7 +29,7 @@ export function bookmarkButton( diff --git a/src/views/explore.ts b/src/views/explore.ts index 3dd0902..d31e519 100644 --- a/src/views/explore.ts +++ b/src/views/explore.ts @@ -34,7 +34,7 @@ export function explorePage( msg.home.explorePublicWikis, ` - ${msg.home.explorePublicWikis} + ${msg.home.explorePublicWikis} ${toolbar} ${gridHtml} diff --git a/src/views/home.ts b/src/views/home.ts index d1b29de..ffaef85 100644 --- a/src/views/home.ts +++ b/src/views/home.ts @@ -26,7 +26,7 @@ export function homePage( "Lichen", ` - ${msg.home.tagline} + ${msg.home.tagline} ${msg.home.heroDescription} 1. ${msg.home.step1} diff --git a/src/views/layout.ts b/src/views/layout.ts index e24c756..7243471 100644 --- a/src/views/layout.ts +++ b/src/views/layout.ts @@ -54,7 +54,7 @@ function renderWithSidebar(body: string, options: LayoutOptions): string { const noteLinks = notes .map((n) => { const isCurrent = n.slug === options.currentNoteSlug; - return `${escapeHtml(n.title)}`; + return `${escapeHtml(n.title)}`; }) .join("\n"); @@ -69,7 +69,7 @@ function renderWithSidebar(body: string, options: LayoutOptions): string { ? `${msg.wiki.newNote}` : ""; - const dropdownItemClass = `block px-3 py-1.5 text-sm ${THEME.textSecondary} ${THEME.accentLightHoverBg} rounded`; + const dropdownItemClass = `block px-3 py-1.5 text-sm ${THEME.textSecondary} ${THEME.accentSoft} rounded`; const noteExportItem = options.currentNoteSlug ? `${msg.wiki.exportNote}` : ""; @@ -80,7 +80,7 @@ function renderWithSidebar(body: string, options: LayoutOptions): string { ${ICONS.download} ${msg.wiki.export} - + ${noteExportItem} ${wikiExportItem} @@ -136,13 +136,13 @@ export function layout( const session = options?.session; - const navBtnClass = `flex items-center justify-center gap-2 h-9 px-2.5 border ${THEME.borderDefault} rounded-lg ${THEME.bgSurface} ${THEME.textSecondary} ${THEME.textSecondaryHover} ${THEME.accentLightHoverBg} cursor-pointer text-sm`; - const dropdownClass = `hidden absolute right-0 mt-1 ${THEME.bgSurface} border ${THEME.borderDefault} rounded-lg shadow-lg py-1.5 z-20 w-max`; - const dropdownItemClass = `flex items-center gap-2.5 px-4 py-2 text-sm ${THEME.textSecondary} ${THEME.accentLightHoverBg} rounded`; + const navBtnClass = `flex items-center justify-center gap-2 h-9 px-2.5 border ${THEME.border} rounded-lg ${THEME.bgSurface} ${THEME.textSecondary} hover:text-stone-700 ${THEME.accentSoft} cursor-pointer text-sm`; + const dropdownClass = `hidden absolute right-0 mt-1 ${THEME.bgSurface} border ${THEME.border} rounded-lg shadow-lg py-1.5 z-20 w-max`; + const dropdownItemClass = `flex items-center gap-2.5 px-4 py-2 text-sm ${THEME.textSecondary} ${THEME.accentSoft} rounded`; const localeItems = SUPPORTED_LOCALES.map( (l) => - `${LOCALE_LABELS[l] ?? l.toUpperCase()}`, + `${LOCALE_LABELS[l] ?? l.toUpperCase()}`, ).join("\n"); const localePicker = ` @@ -196,8 +196,8 @@ ${extraStyles} ${extraScripts} - - + + @@ -212,7 +212,7 @@ ${extraScripts} /> Lichen - ${options?.wikiName ? `/${escapeHtml(options.wikiName)}` : ""} + ${options?.wikiName ? `/${escapeHtml(options.wikiName)}` : ""} ${profileOrLogin} @@ -226,7 +226,7 @@ ${extraScripts} ${escapeHtml(options.pageTitle)}` : ""}${body}`, + `${options?.pageTitle ? `${escapeHtml(options.pageTitle)}` : ""}${body}`, options, ) - : `${options?.pageTitle ? `${escapeHtml(options.pageTitle)}` : ""}${body}` + : `${options?.pageTitle ? `${escapeHtml(options.pageTitle)}` : ""}${body}` } -
${msg.home.tagline}
${msg.home.heroDescription}