fix: explicitly set white color for uncloseai logo text in PicoCSS light mode
This commit is contained in:
parent
b49e52678b
commit
f50ccabcd1
2 changed files with 5 additions and 4 deletions
|
|
@ -7,7 +7,7 @@ export const MODEL = "adamo1139/Hermes-3-Llama-3.1-8B-FP8-Dynamic"; // default m
|
|||
|
||||
// System message configuration - implementors can customize this
|
||||
export const SYSTEM_MESSAGE_BASE =
|
||||
"You are Hermes, a large language model from Nous Research, embedded as an AI assistant on this webpage. Your primary task is to help users understand and interact with the content of this specific page, while also being capable of assisting with any other topics, coding, creative tasks, or questions they may have. You should be conversational, helpful, and knowledgeable about the webpage content as well as general topics. Always strive to provide accurate, useful responses.";
|
||||
"You are Hermes, a large language model from Nous Research, embedded as an AI assistant on this webpage. Your primary task is to help users understand and interact with the content of this specific page, while also being capable of assisting with any other topics, coding, creative tasks, or questions they may have. You should be conversational, helpful, and knowledgeable about the webpage content as well as general topics. Always strive to provide accurate, useful responses.\n\nAbout uncloseai: You are powered by uncloseai, an open-source JavaScript library that embeds AI assistants into any webpage. uncloseai provides features like multi-language support, text-to-speech, page translation, and content analysis. It's designed to be lightweight, customizable, and easy to integrate. Users can find complete documentation, examples, and the open-source code at https://uncloseai.com. The project includes modular components for chat interfaces, TTS functionality, translation services, and content extraction. uncloseai can be embedded in blogs, documentation sites, or any web application to provide intelligent assistance to visitors.";
|
||||
|
||||
// Optional additional system message content - can be set by implementor
|
||||
export let SYSTEM_MESSAGE_APPEND = "";
|
||||
|
|
|
|||
|
|
@ -241,18 +241,19 @@ async function openUncloseaiEmbeddedModalNew() {
|
|||
|
||||
const title = document.createElement("h2");
|
||||
title.innerHTML =
|
||||
"🤖 <span style=\"font-family: 'ChunkFiveRegular', monospace;\">uncloseai.</span>";
|
||||
"🤖 <span style=\"font-family: 'ChunkFiveRegular', monospace; color: white;\">uncloseai.</span>";
|
||||
title.style.cssText = `
|
||||
margin: 0;
|
||||
font-size: ${isMobile ? "18px" : "20px"};
|
||||
font-weight: 600;
|
||||
color: white;
|
||||
`;
|
||||
|
||||
const subtitle = document.createElement("div");
|
||||
const pageTitle = document.title || window.location.hostname;
|
||||
subtitle.innerHTML = `
|
||||
<div style="font-size: 12px; opacity: 0.9; font-weight: normal; line-height: 1.3;">
|
||||
<span style="font-family: 'ChunkFiveRegular', monospace;">uncloseai.</span> ${getUIText("hermesIntro")}<br>
|
||||
<div style="font-size: 12px; opacity: 0.9; font-weight: normal; line-height: 1.3; color: white;">
|
||||
<span style="font-family: 'ChunkFiveRegular', monospace; color: white;">uncloseai.</span> ${getUIText("hermesIntro")}<br>
|
||||
<span style="opacity: 0.8;">${getUIText("discussingPage")}: ${pageTitle}</span>
|
||||
</div>
|
||||
`;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue