progetto fatto precedentemente adattato al framework creato con il corso
effd6a73291031fd0ab48cc331294b20279f0840..d40d8b5f91da41809d56408916f25b8e239b0acf
2024-06-06 filippo.bertilotti
aggiunta view della fiat panda
d40d8b diff | tree
2024-06-06 filippo.bertilotti
fix style mancate/non trovato
f9a800 diff | tree
2 files added
2 files modified
71 ■■■■■ changed files
config/routes.php 2 ●●● patch | view | raw | blame | history
public/style.css 48 ●●●●● patch | view | raw | blame | history
views/Fiat/panda.mvc.php 19 ●●●●● patch | view | raw | blame | history
views/base.mvc.php 2 ●●● patch | view | raw | blame | history
config/routes.php
@@ -16,7 +16,7 @@
$router->add("/home/index", ["controller" => "home", "action" => "index"]);
$router->add("/products", ["controller" => "products", "action" => "index"]);
$router->add("/", ["controller" => "home", "action" => "index"]);
//$router->add("/", ["controller" => "home", "action" => "index"]);
$router->add("/{controller}/{action}");
return $router;
public/style.css
New file
@@ -0,0 +1,48 @@
body {
    margin: 0;
    box-sizing: border-box;
    font:caption;
}
header {
    background-color: red;
    text-align: center;
    padding: 10px;
}
header a {
    padding: 5px;
}
main {
    padding:50px;
    padding-bottom: 20%;
}
main h2 {
    text-align: center;
}
main img {
    width: 20%;
    float: left;
}
main article {
    width: 80%;
    float: left;
}
main input {
    margin: 15px;
}
footer {
    background-color: red;
    text-align: center;
    padding: 15px;
}
views/Fiat/panda.mvc.php
New file
@@ -0,0 +1,19 @@
{% extends "base.mvc.php" %}
{% block title %} Home {% endblock %}
{% block body %}
{% include "../views/Fiat/header.mvc.php" %}
<main>
    <h2>Fiat Panda</h2>
    <img src="files_comuni/images/panda.jpg">
    <article>
        Lorem ipsum dolor sit amet consectetur adipisicing elit. Perspiciatis dicta fugiat molestiae ex, illo dolorem mollitia soluta molestias laborum rerum et voluptas facere sapiente animi neque dolorum rem. Quis, modi!
    </article>
</main>
{% include "../views/Fiat/footer.mvc.php" %}
{% endblock %}
views/base.mvc.php
@@ -4,7 +4,7 @@
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>{% yield title %}</title>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/water.css@2/out/water.css">
    <link rel="stylesheet" href="/style.css">
</head>
<body>