From f9a80024b0d5bfd2367808980a091ef29ce63c0f Mon Sep 17 00:00:00 2001
From: filippo.bertilotti <filippobertilotti@gmail.com>
Date: Thu, 06 Jun 2024 11:04:54 +0200
Subject: [PATCH] fix style mancate/non trovato

---
 views/base.mvc.php |    2 +-
 public/style.css   |   48 ++++++++++++++++++++++++++++++++++++++++++++++++
 config/routes.php  |    2 +-
 3 files changed, 50 insertions(+), 2 deletions(-)

diff --git a/config/routes.php b/config/routes.php
index 5c4ba8d..0934a1f 100644
--- a/config/routes.php
+++ b/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;
diff --git a/public/style.css b/public/style.css
new file mode 100644
index 0000000..80ed285
--- /dev/null
+++ b/public/style.css
@@ -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;
+}
+
+
+
+
diff --git a/views/base.mvc.php b/views/base.mvc.php
index 950c605..dd81e0d 100644
--- a/views/base.mvc.php
+++ b/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>

--
Gitblit v1.8.0