feat: Update favicon path and enhance Home page content; adjust CSS for improved layout
This commit is contained in:
+1
-1
@@ -2,7 +2,7 @@
|
|||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
<link rel="icon" type="image/svg+xml" href="/public/favicon.svg" />
|
<link rel="icon" type="image/svg+xml" href="src/public/favicon.svg" />
|
||||||
<meta
|
<meta
|
||||||
name="viewport"
|
name="viewport"
|
||||||
content="minimum-scale=1, initial-scale=1, width=device-width, user-scalable=no"
|
content="minimum-scale=1, initial-scale=1, width=device-width, user-scalable=no"
|
||||||
|
|||||||
@@ -29,9 +29,9 @@
|
|||||||
flex: 1;
|
flex: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Esta es la barra izquierda pequeña donde los iconos */
|
||||||
.aside {
|
.aside {
|
||||||
flex: 0 0 60px;
|
flex: 0 0 54px;
|
||||||
background-color: var(--mantine-color-body);
|
background-color: var(--mantine-color-body);
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
@@ -48,10 +48,12 @@
|
|||||||
padding-top: 12px; /* o la cantidad que desees */
|
padding-top: 12px; /* o la cantidad que desees */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Estos son los iconos */
|
||||||
.mainLink {
|
.mainLink {
|
||||||
|
|
||||||
width: 44px;
|
width: 40px;
|
||||||
height: 44px;
|
height: 40px;
|
||||||
|
margin-bottom: 4px;
|
||||||
border-radius: var(--mantine-radius-md);
|
border-radius: var(--mantine-radius-md);
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
@@ -82,9 +84,9 @@
|
|||||||
padding: 0 var(--mantine-spacing-md);
|
padding: 0 var(--mantine-spacing-md);
|
||||||
font-size: var(--mantine-font-size-sm);
|
font-size: var(--mantine-font-size-sm);
|
||||||
margin-right: var(--mantine-spacing-md);
|
margin-right: var(--mantine-spacing-md);
|
||||||
font-weight: 500;
|
font-weight: 420;
|
||||||
height: 44px;
|
height: 30px;
|
||||||
line-height: 44px;
|
line-height: 30px;
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
background-color: light-dark(var(--mantine-color-gray-1), var(--mantine-color-dark-5));
|
background-color: light-dark(var(--mantine-color-gray-1), var(--mantine-color-dark-5));
|
||||||
|
|||||||
@@ -104,7 +104,7 @@ import {
|
|||||||
<UnstyledButton
|
<UnstyledButton
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
setManualActiveTab(link.label);
|
setManualActiveTab(link.label);
|
||||||
if (isMobile) closeMobile();
|
|
||||||
}}
|
}}
|
||||||
className={classes.mainLink}
|
className={classes.mainLink}
|
||||||
data-active={link.label === active || undefined}
|
data-active={link.label === active || undefined}
|
||||||
@@ -154,7 +154,7 @@ import {
|
|||||||
<Group h="100%" px="md">
|
<Group h="100%" px="md">
|
||||||
<Burger opened={mobileOpened} onClick={toggleMobile} hiddenFrom="sm" size="sm" />
|
<Burger opened={mobileOpened} onClick={toggleMobile} hiddenFrom="sm" size="sm" />
|
||||||
<Burger opened={desktopOpened} onClick={toggleDesktop} visibleFrom="sm" size="sm" />
|
<Burger opened={desktopOpened} onClick={toggleDesktop} visibleFrom="sm" size="sm" />
|
||||||
<img src="/public/favicon.svg" alt="Logo" style={{ width: 30, height: 30 }} />
|
<img src="/src/public/favicon.svg" alt="Logo" style={{ width: 30, height: 30 }} />
|
||||||
</Group>
|
</Group>
|
||||||
</AppShell.Header>
|
</AppShell.Header>
|
||||||
|
|
||||||
|
|||||||
@@ -120,20 +120,22 @@ export function MantineCardWithShader() {
|
|||||||
<HolographicBackground color={rgb} />
|
<HolographicBackground color={rgb} />
|
||||||
|
|
||||||
<Box style={{ position: 'relative', zIndex: 1, textAlign: 'center' }}>
|
<Box style={{ position: 'relative', zIndex: 1, textAlign: 'center' }}>
|
||||||
<Title
|
<Title
|
||||||
order={1}
|
order={1}
|
||||||
style={{
|
style={{
|
||||||
fontSize: '15rem',
|
fontSize: '15rem',
|
||||||
fontWeight: 900,
|
fontWeight: 900,
|
||||||
backgroundImage: 'linear-gradient(to bottom, rgba(255,255,255,1), rgba(255,255,255,0))',
|
backgroundImage: 'linear-gradient(to bottom, rgba(255,255,255,1), rgba(255,255,255,0))',
|
||||||
WebkitBackgroundClip: 'text',
|
WebkitBackgroundClip: 'text',
|
||||||
WebkitTextFillColor: 'transparent',
|
WebkitTextFillColor: 'transparent',
|
||||||
textAlign: 'center',
|
textAlign: 'center',
|
||||||
lineHeight: 1,
|
lineHeight: 1,
|
||||||
}}
|
userSelect: 'none', // <-- evita selección
|
||||||
>
|
textDecoration: 'none', // <-- evita subrayado
|
||||||
404
|
}}
|
||||||
</Title>
|
>
|
||||||
|
404
|
||||||
|
</Title>
|
||||||
</Box>
|
</Box>
|
||||||
</Card>
|
</Card>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -1,10 +1,18 @@
|
|||||||
import { AppShellWithMenu } from '../components/Appshell/Appshell';
|
import { AppShellWithMenu } from '../components/Appshell/Appshell';
|
||||||
|
import { Welcome } from '@/components/Welcome/Welcome';
|
||||||
|
|
||||||
export function HomePage() {
|
export function HomePage() {
|
||||||
return (
|
return (
|
||||||
<AppShellWithMenu>
|
<AppShellWithMenu>
|
||||||
|
|
||||||
|
<Welcome />
|
||||||
|
|
||||||
|
<div style={{ padding: '20px' }}>
|
||||||
|
<h1>Welcome to the Home Page</h1>
|
||||||
|
<p>This is the home page content.</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
</AppShellWithMenu>
|
</AppShellWithMenu>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB |
+8
-2
@@ -55,9 +55,13 @@ class AgenteAI:
|
|||||||
|
|
||||||
herramientas = self._obtener_descripcion_tools()
|
herramientas = self._obtener_descripcion_tools()
|
||||||
if herramientas:
|
if herramientas:
|
||||||
partes.append("Estas son tus herramientas disponibles:\n")
|
partes.append("Estas son tus herramientas disponibles:")
|
||||||
partes.extend(herramientas)
|
partes.extend(herramientas)
|
||||||
partes.append("Úsalas cuando creas oportuno.\n")
|
partes.append(
|
||||||
|
"Cuando consideres necesario, utiliza las herramientas disponibles "
|
||||||
|
"para responder de manera más precisa o realizar tareas específicas. "
|
||||||
|
"Indica claramente qué herramienta estás utilizando y por qué."
|
||||||
|
)
|
||||||
|
|
||||||
partes.append(self.system_prompt)
|
partes.append(self.system_prompt)
|
||||||
|
|
||||||
@@ -146,6 +150,8 @@ class AgenteAI:
|
|||||||
"\n\nIMPORTANTE:\n"
|
"\n\nIMPORTANTE:\n"
|
||||||
"Si al revisar tu última respuesta y mi pregunta inicial consideras que has terminado, "
|
"Si al revisar tu última respuesta y mi pregunta inicial consideras que has terminado, "
|
||||||
"di alguna de estas frases: <FIN>"
|
"di alguna de estas frases: <FIN>"
|
||||||
|
"En caso contrario, responde a la pregunta original "
|
||||||
|
"y añade información relevante que no hayas mencionado antes.\n\n"
|
||||||
)
|
)
|
||||||
|
|
||||||
contexto = historial + [{"role": "user", "content": prompt_actual}]
|
contexto = historial + [{"role": "user", "content": prompt_actual}]
|
||||||
|
|||||||
Reference in New Issue
Block a user