feat: Update favicon path and enhance Home page content; adjust CSS for improved layout

This commit is contained in:
2025-05-07 00:22:43 +02:00
parent b4ca0cf600
commit 24fa4ada61
7 changed files with 45 additions and 27 deletions
+1 -1
View File
@@ -2,7 +2,7 @@
<html lang="en">
<head>
<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
name="viewport"
content="minimum-scale=1, initial-scale=1, width=device-width, user-scalable=no"
@@ -29,9 +29,9 @@
flex: 1;
}
/* Esta es la barra izquierda pequeña donde los iconos */
.aside {
flex: 0 0 60px;
flex: 0 0 54px;
background-color: var(--mantine-color-body);
display: flex;
flex-direction: column;
@@ -48,10 +48,12 @@
padding-top: 12px; /* o la cantidad que desees */
}
/* Estos son los iconos */
.mainLink {
width: 44px;
height: 44px;
width: 40px;
height: 40px;
margin-bottom: 4px;
border-radius: var(--mantine-radius-md);
display: flex;
align-items: center;
@@ -82,9 +84,9 @@
padding: 0 var(--mantine-spacing-md);
font-size: var(--mantine-font-size-sm);
margin-right: var(--mantine-spacing-md);
font-weight: 500;
height: 44px;
line-height: 44px;
font-weight: 420;
height: 30px;
line-height: 30px;
&:hover {
background-color: light-dark(var(--mantine-color-gray-1), var(--mantine-color-dark-5));
@@ -104,7 +104,7 @@ import {
<UnstyledButton
onClick={() => {
setManualActiveTab(link.label);
if (isMobile) closeMobile();
}}
className={classes.mainLink}
data-active={link.label === active || undefined}
@@ -154,7 +154,7 @@ import {
<Group h="100%" px="md">
<Burger opened={mobileOpened} onClick={toggleMobile} hiddenFrom="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>
</AppShell.Header>
+16 -14
View File
@@ -120,20 +120,22 @@ export function MantineCardWithShader() {
<HolographicBackground color={rgb} />
<Box style={{ position: 'relative', zIndex: 1, textAlign: 'center' }}>
<Title
order={1}
style={{
fontSize: '15rem',
fontWeight: 900,
backgroundImage: 'linear-gradient(to bottom, rgba(255,255,255,1), rgba(255,255,255,0))',
WebkitBackgroundClip: 'text',
WebkitTextFillColor: 'transparent',
textAlign: 'center',
lineHeight: 1,
}}
>
404
</Title>
<Title
order={1}
style={{
fontSize: '15rem',
fontWeight: 900,
backgroundImage: 'linear-gradient(to bottom, rgba(255,255,255,1), rgba(255,255,255,0))',
WebkitBackgroundClip: 'text',
WebkitTextFillColor: 'transparent',
textAlign: 'center',
lineHeight: 1,
userSelect: 'none', // <-- evita selección
textDecoration: 'none', // <-- evita subrayado
}}
>
404
</Title>
</Box>
</Card>
);
+9 -1
View File
@@ -1,10 +1,18 @@
import { AppShellWithMenu } from '../components/Appshell/Appshell';
import { Welcome } from '@/components/Welcome/Welcome';
export function HomePage() {
return (
<AppShellWithMenu>
<Welcome />
<div style={{ padding: '20px' }}>
<h1>Welcome to the Home Page</h1>
<p>This is the home page content.</p>
</div>
</AppShellWithMenu>
);
}

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

+8 -2
View File
@@ -55,9 +55,13 @@ class AgenteAI:
herramientas = self._obtener_descripcion_tools()
if herramientas:
partes.append("Estas son tus herramientas disponibles:\n")
partes.append("Estas son tus herramientas disponibles:")
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)
@@ -146,6 +150,8 @@ class AgenteAI:
"\n\nIMPORTANTE:\n"
"Si al revisar tu última respuesta y mi pregunta inicial consideras que has terminado, "
"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}]