Commit e8b701ce authored by Fedrico Otaran's avatar Fedrico Otaran

Estilos básicos para el ejemplo

parent 86943ce7
......@@ -2,17 +2,12 @@
abstract class BaseRepository
{
const USERNAME = "user";
const PASSWORD = "pass";
const HOST = "db";
const DB = "base";
private function conn()
{
$username = self::USERNAME;
$password = self::PASSWORD;
$db = self::DB;
$host = self::HOST;
$username = getenv('DB_USER')?: "user";
$password = getenv('DB_PASSWORD')?: "pass";
$host = getenv('DB_HOST')?: "db";
$db = getenv('DB_NAME')?: "base";
$connection = new PDO("mysql:dbname=$db;host=$host", $username, $password);
return $connection;
......
body {
background-color: #4B7399;
font-family: Ubuntu, Verdana, Helvetica, Arial;
font-size: 14px;
}
a img {
border: none;
}
a {
color: #0000FF;
}
.clear {
clear: both;
height: 0;
overflow: hidden;
}
#footer {
width: 75%;
margin: 0 auto;
text-align: center;
}
#container {
width: 75%;
margin: 0 auto;
background-color: #FFF;
padding: 20px 40px;
border: solid 1px black;
margin-top: 20px;
min-height: 400px;
}
......@@ -2,16 +2,19 @@
<html>
<head>
{% block head %}
<link rel="stylesheet" href="style.css" />
<link rel="stylesheet" href="public/assets/stylesheets/base.css" />
<title>{% block title %}{% endblock %}</title>
{% endblock %}
</head>
<body>
<div id="content">{% block content %}{% endblock %}</div>
<div id="footer">
{% block footer %}
Proyecto de Software
{% endblock %}
<div id="container">
{% block content %}{% endblock %}
<div class="clear"></div>
</div>
<div id="footer">
{% block footer %}
Proyecto de Software
{% endblock %}
</div>
</body>
</html>
......@@ -16,4 +16,7 @@
<li><a href="{{ user.id }}">{{ user.fullName }}</a></li>
{% endfor %}
</ul>
<p><a href="/"><- Volver<a></p>
{% endblock %}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment