63 lines
1.0 KiB
PHP
63 lines
1.0 KiB
PHP
<!doctype html>
|
|
<html lang="es">
|
|
<head>
|
|
<title>Practicas Taller - personas</title>
|
|
</head>
|
|
<body>
|
|
<style>
|
|
body {
|
|
font-family: Arial, sans-serif;
|
|
background-color: #347142;
|
|
margin: 20px;
|
|
}
|
|
|
|
.lista {
|
|
max-width: 600px;
|
|
margin: auto;
|
|
}
|
|
|
|
h1 {
|
|
text-align: center;
|
|
color: #e3e0e0;
|
|
}
|
|
|
|
ul {
|
|
list-style: none; /* saca los puntitos */
|
|
padding: 0;
|
|
}
|
|
|
|
li {
|
|
background: #b1d2ac;
|
|
margin-bottom: 10px;
|
|
padding: 12px;
|
|
border-radius: 8px;
|
|
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
|
|
}
|
|
|
|
strong {
|
|
color: #161d24;
|
|
}
|
|
|
|
li:hover {
|
|
background-color: #eaf2ff;
|
|
cursor: pointer;
|
|
transform: scale(1.01);
|
|
transition: 0.2s;
|
|
}
|
|
</style>
|
|
<div class="lista">
|
|
<h1>LISTA DE PERSONAS</h1>
|
|
<ul>
|
|
@foreach($persona as $p)
|
|
<li>
|
|
<strong>{{ $p->apellido }},</strong>
|
|
{{ $p->nombre }}
|
|
(DNI: {{ $p->dni}})
|
|
</li>
|
|
@endforeach
|
|
</ul>
|
|
</div>
|
|
|
|
|
|
</body>
|
|
</html> |