feat: Add Consulta_API page and routing, implement API request functionality
- Introduced a new page for API consultation (`Consulta_API`) with a form to send requests. - Added routing for the new page and a 404 error page. - Created a `MetodoSelect` component for selecting HTTP methods. - Implemented a `MiBoton` component for a customizable button. - Updated the `HomePage` layout to include a sidebar (`DoubleNavbar`) and main content area. - Enhanced the `Welcome` component with a new greeting and description. - Added a holographic shader background to the 404 error page. - Updated dependencies in `yarn.lock` for new components and features. - Styled the sidebar and main content for better user experience.
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
// src/components/MiBoton.tsx
|
||||
|
||||
import { Button } from '@mantine/core';
|
||||
import { MouseEventHandler } from 'react';
|
||||
|
||||
type MiBotonProps = {
|
||||
onClick: MouseEventHandler<HTMLButtonElement>;
|
||||
label?: string;
|
||||
color?: string;
|
||||
};
|
||||
|
||||
function MiBoton({ onClick, label = 'Hola que tal!', color = 'teal' }: MiBotonProps) {
|
||||
return <Button color={color} onClick={onClick}>{label}</Button>;
|
||||
}
|
||||
|
||||
export default MiBoton;
|
||||
Reference in New Issue
Block a user