Documentation Index
Fetch the complete documentation index at: https://mintlify.com/JFVela/SchoolScience/llms.txt
Use this file to discover all available pages before exploring further.
Overview
The DescripcionDetalle component is a styled Material-UI card that displays project descriptions on detail pages. It features a distinctive purple background that contrasts with other page elements.Props
The project description text to display
Usage
Used below the project title to provide a brief overview:src/pages/ProyectoDetalle.jsx
Component Structure
src/components/DescripcionDetalle.jsx
Styling Details
Card Styling
| Property | Value | Purpose |
|---|---|---|
| backgroundColor | #836FFF (purple) | Brand accent color |
| mb (margin-bottom) | 4 (32px) | Spacing from next element |
Text Styling
| Property | Value | Purpose |
|---|---|---|
| color | #F0F3FF (light) | High contrast on purple |
| fontSize | 1.1rem (17.6px) | Slightly larger than body text |
| textAlign | center | Centered for emphasis |
| margin | 0 | Removes default p margins |
Material-UI Components
Card
Provides elevation, rounded corners, and container structure:CardContent
Adds consistent padding inside the card:Color Contrast
The purple background (#836FFF) with light text (#F0F3FF) provides:- Contrast ratio: ~8.5:1 (exceeds WCAG AAA standard)
- Accessibility: Excellent readability
Customization Examples
Different Background Color
Gradient Background
Left-Aligned Text
Larger Text
Add Icon
Responsive Behavior
The card automatically adjusts to container width. For better mobile experience:Usage in Context
Typical placement on detail pages:Material-UI Theme Integration
If using a custom Material-UI theme:Best Practices
The purple background (#836FFF) matches the secondary accent color used throughout the application, maintaining visual consistency.
Material-UI’s Card component includes subtle shadows and rounded corners by default, enhancing the depth and polish of the design.
Accessibility
Screen Readers
The component uses semantic HTML (<p> tag) that screen readers handle correctly.
Color Contrast
- Current: 8.5:1 contrast ratio (✅ WCAG AAA)
- Minimum required: 4.5:1 for normal text
- Minimum required: 3:1 for large text
Keyboard Navigation
No interactive elements, so no keyboard navigation needed.Related Components
TituloDetalle
Title component used above description
TarjetasContenido
Content cards used below description