Reac front end for psicometric app

TestCard.jsx 1.2KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. import * as React from 'react';
  2. import {
  3. Card, CardActions, CardContent, Button, Typography,
  4. CardMedia, CardActionArea,
  5. } from '@mui/material'
  6. import QA from '../../Images/puesto.jpg'
  7. export function TestCard(props) {
  8. let { test } = props;
  9. console.log("TEST :: ", test)
  10. return (
  11. <Card className="card_test" elevation={0} sx={{ maxWidth: 500, maxHeight : 500 }}>
  12. <CardActionArea>
  13. <CardMedia
  14. component="img"
  15. height="140"
  16. image={QA}
  17. alt="green iguana"
  18. />
  19. <CardContent>
  20. <Typography gutterBottom variant="h5" component="div">
  21. {test.nombre}
  22. </Typography>
  23. <Typography variant="body2" color="text.secondary">
  24. {test.descripcion}
  25. </Typography>
  26. </CardContent>
  27. </CardActionArea>
  28. <CardActions>
  29. <Button size="small" color="primary">
  30. Realizar
  31. </Button>
  32. </CardActions>
  33. </Card>
  34. )
  35. }