]> _ Git - eif-extranet.git/commitdiff
wip #5480 @1
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 26 Sep 2022 14:50:58 +0000 (16:50 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 26 Sep 2022 14:50:58 +0000 (16:50 +0200)
15 files changed:
.gitignore
inc/foot.php [new file with mode: 0644]
inc/head.html [deleted file]
inc/head.php [new file with mode: 0644]
inc/menu.html [deleted file]
inc/menu.php [new file with mode: 0644]
inc/scripts.html [deleted file]
inc/scripts.php [new file with mode: 0644]
js/script.js
style/inc/menu.sass [new file with mode: 0644]
style/inc/reset.sass [new file with mode: 0644]
style/inc/variables.sass [new file with mode: 0644]
style/style.sass
style/variables.sass [deleted file]
tableau-de-bord.php

index fd0c2856883379f9dce3517f56619a93fb5123a9..3f0e80348eb561be22ce30b1838b07fb660202d7 100644 (file)
@@ -1,3 +1,5 @@
 .idea
 style/*.css
-style/*.map
\ No newline at end of file
+style/*.map
+style/inc/*.css
+style/inc/*.map
\ No newline at end of file
diff --git a/inc/foot.php b/inc/foot.php
new file mode 100644 (file)
index 0000000..3e2a4e0
--- /dev/null
@@ -0,0 +1,3 @@
+<?php include "inc/scripts.php" ?>
+</body>
+</html>
\ No newline at end of file
diff --git a/inc/head.html b/inc/head.html
deleted file mode 100644 (file)
index b951d33..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-<!DOCTYPE html>
-<html lang="fr">
-<head>
-    <meta charset="UTF-8">
-    <title>Title</title>
-    <link rel="stylesheet" href="style/style.css">
-    <link rel="preconnect" href="https://fonts.googleapis.com">
-    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
-    <link href="https://fonts.googleapis.com/css2?family=Lato:wght@400;700&display=swap" rel="stylesheet">
-</head>
\ No newline at end of file
diff --git a/inc/head.php b/inc/head.php
new file mode 100644 (file)
index 0000000..0d29366
--- /dev/null
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<html lang="fr">
+<head>
+    <meta charset="UTF-8">
+    <title>EIF - Unibail Rodamco Westfield</title>
+    <link rel="preconnect" href="https://fonts.googleapis.com">
+    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
+    <link href="https://fonts.googleapis.com/css2?family=Lato:wght@400;700&display=swap" rel="stylesheet">
+    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/tippy.js/6.3.7/tippy.min.css" integrity="sha512-HbPh+j4V7pXprvQMt2dtmK/zCEsUeZWYXRln4sOwmoyHPQAPqy/k9lIquKUyKNpNbDGAY06UdiDHcEkBc72yCQ==" crossorigin="anonymous" referrerpolicy="no-referrer" />
+    <link rel="stylesheet" href="style/style.css">
+</head>
+<body>
+<?php include "inc/menu.php" ?>
\ No newline at end of file
diff --git a/inc/menu.html b/inc/menu.html
deleted file mode 100644 (file)
index 602c175..0000000
+++ /dev/null
@@ -1,65 +0,0 @@
-<header>
-    <div>
-        <div id="logo-client">
-            <div class="icon" data-icon="logo-client"></div>
-            <div class="icon" data-icon="logo-client-small"></div>
-        </div>
-        <nav>
-            <ul>
-                <li>
-                    <a href="#" class="open-submenu">
-                        <div class="icon" data-icon="portefeuille"></div>
-                        <span>Mon portefeuille</span>
-                    </a>
-                    <ul>
-                        <li><a href="patrimoine.html">Patrimoine</a></li>
-                        <li><a href="projections.html">Projections</a></li>
-                        <li><a href="simulations.html">Simulations</a></li>
-                    </ul>
-                </li>
-                <li>
-                    <a href="#" class="open-submenu">
-                        <div class="icon" data-icon="missions"></div>
-                        <span>Mes missions</span>
-                    </a>
-                    <ul>
-                        <li><a href="tableau-de-bord.html">Tableau de bord</a></li>
-                        <li><a href="audits.html">Audits</a></li>
-                        <li><a href="rapport.html">Rapport</a></li>
-                    </ul>
-                </li>
-                <li>
-                    <a href="#" class="open-submenu">
-                        <div class="icon" data-icon="outils"></div>
-                        <span>Outils experts</span>
-                    </a>
-                    <ul>
-                        <li><a href="prevision.html">Prévision projet</a></li>
-                        <li><a href="refacturation.html">Refacturation</a></li>
-                    </ul>
-                </li>
-                <li>
-                    <a href="#">
-                        <div class="icon" data-icon="veille"></div>
-                        <span>Veille EIF</span>
-                    </a>
-                </li>
-                <li>
-                    <a href="#" class="open-submenu">
-                        <div class="icon" data-icon="compte"></div>
-                        <span>Mon compte</span>
-                    </a>
-                    <ul>
-                        <li><a href="interlocuteur.html">Interlocuteur EIF</a></li>
-                        <li><a href="deconnexion.html">Déconnexion</a></li>
-                    </ul>
-                </li>
-            </ul>
-        </nav>
-        <div id="logo-eif">
-            <div class="icon" data-icon="logo-eif"></div>
-            <span>Powered by EIF</span>
-        </div>
-    </div>
-    <a href="#" class="toggle-menu"></a>
-</header>
\ No newline at end of file
diff --git a/inc/menu.php b/inc/menu.php
new file mode 100644 (file)
index 0000000..a72ddc4
--- /dev/null
@@ -0,0 +1,65 @@
+<header id="menu">
+    <div>
+        <div id="logo-client">
+            <div class="icon" data-icon="logo-client"></div>
+            <div class="icon" data-icon="logo-client-small"></div>
+        </div>
+        <nav>
+            <ul>
+                <li>
+                    <a href="#" class="open-submenu">
+                        <div class="icon" data-icon="portefeuille"></div>
+                        <span>Mon portefeuille</span>
+                    </a>
+                    <ul>
+                        <li><a href="patrimoine.html">Patrimoine</a></li>
+                        <li><a href="projections.html">Projections</a></li>
+                        <li><a href="simulations.html">Simulations</a></li>
+                    </ul>
+                </li>
+                <li>
+                    <a href="#" class="open-submenu">
+                        <div class="icon" data-icon="missions"></div>
+                        <span>Mes missions</span>
+                    </a>
+                    <ul>
+                        <li><a href="tableau-de-bord.html">Tableau de bord</a></li>
+                        <li><a href="audits.html">Audits</a></li>
+                        <li><a href="rapport.html">Rapport</a></li>
+                    </ul>
+                </li>
+                <li>
+                    <a href="#" class="open-submenu">
+                        <div class="icon" data-icon="outils"></div>
+                        <span>Outils experts</span>
+                    </a>
+                    <ul>
+                        <li><a href="prevision.html">Prévision projet</a></li>
+                        <li><a href="refacturation.html">Refacturation</a></li>
+                    </ul>
+                </li>
+                <li>
+                    <a href="#">
+                        <div class="icon" data-icon="veille"></div>
+                        <span>Veille EIF</span>
+                    </a>
+                </li>
+                <li>
+                    <a href="#" class="open-submenu">
+                        <div class="icon" data-icon="compte"></div>
+                        <span>Mon compte</span>
+                    </a>
+                    <ul>
+                        <li><a href="interlocuteur.html">Interlocuteur EIF</a></li>
+                        <li><a href="deconnexion.html">Déconnexion</a></li>
+                    </ul>
+                </li>
+            </ul>
+        </nav>
+        <div id="logo-eif">
+            <div class="icon" data-icon="logo-eif"></div>
+            <span>Powered by EIF</span>
+        </div>
+    </div>
+    <a href="#" class="toggle-menu"></a>
+</header>
\ No newline at end of file
diff --git a/inc/scripts.html b/inc/scripts.html
deleted file mode 100644 (file)
index 0d05e42..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-<script src="https://unpkg.com/@popperjs/core@2"></script>
-<script src="https://unpkg.com/tippy.js@6"></script>
-<script src="js/script.js"></script>
\ No newline at end of file
diff --git a/inc/scripts.php b/inc/scripts.php
new file mode 100644 (file)
index 0000000..9dd37bc
--- /dev/null
@@ -0,0 +1,4 @@
+<script src="https://cdnjs.cloudflare.com/ajax/libs/cash/8.1.1/cash.min.js" integrity="sha512-X+cPfvYTMQ4sCK62U3QG9rdhziHcvR48TwiEJmlaXOpQH/aSaarxkL+zahylcvcZLDkGujg4o/ORdjSeBsRlMQ==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
+<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/2.11.6/umd/popper.min.js" integrity="sha512-6UofPqm0QupIL0kzS/UIzekR73/luZdC6i/kXDbWnLOJoqwklBK6519iUnShaYceJ0y4FaiPtX/hRnV/X/xlUQ==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
+<script src="https://cdnjs.cloudflare.com/ajax/libs/tippy.js/6.3.7/tippy.umd.min.js" integrity="sha512-2TtfktSlvvPzopzBA49C+MX6sdc7ykHGbBQUTH8Vk78YpkXVD5r6vrNU+nOmhhl1MyTWdVfxXdZfyFsvBvOllw==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
+<script src="js/script.js"></script>
\ No newline at end of file
index cb2a96a489585a35eb474270495c71a3c0e45510..c6dba1f17e93e1abf760a852940e01f243811b99 100644 (file)
@@ -1,2 +1,42 @@
 // Utilisation de tippy pour afficher les tooltips.
-tippy('[title]');
\ No newline at end of file
+tippy('[title]');
+
+//
+function getSpriteIcon(icon, attrs, dimensions) {
+    var a = [];
+    var iconSymbol = $('svg symbol[id="' + icon + '"]');
+    if (iconSymbol.length > 1) {
+        $('svg symbol[id="' + icon + '"]:not(:last)').remove();
+        iconSymbol = $('svg symbol[id="' + icon + '"]');
+    }
+
+    if (iconSymbol.length == 0) {
+        return ''; // Bail out because symbol doesn't exist
+    }
+
+    if (attrs == undefined) {
+        attrs = {};
+    }
+    if (attrs.viewBox == null) {
+        attrs.viewBox = iconSymbol.get(0).attributes.viewBox.value;
+    }
+    if (dimensions === true) {
+        var vb = attrs.viewBox.split(' ');
+        attrs.x = vb[0];
+        attrs.y = vb[1];
+        attrs.width = vb[2];
+        attrs.height = vb[3];
+    }
+    if (attrs.class == null) {
+        attrs.class = icon;
+    } else {
+        attrs.class += ' ' + icon;
+    }
+
+    attrs.class += ' nav-icon svg-icon'; // Common class for all icons
+
+    $.each(attrs, function (k, v) {
+        a.push(k + '="' + v + '"');
+    });
+    return '<svg ' + a.join(' ') + ' aria-hidden="true"><use xlink:href="#' + icon + '" /></svg>';
+}
\ No newline at end of file
diff --git a/style/inc/menu.sass b/style/inc/menu.sass
new file mode 100644 (file)
index 0000000..429c3f3
--- /dev/null
@@ -0,0 +1,10 @@
+header
+  position: fixed
+  top: $space
+  left: $space
+
+  width: 150px
+
+  border-radius: 6px
+  height: calc(100% - 2*$space)
+  background-color: $menu-background
diff --git a/style/inc/reset.sass b/style/inc/reset.sass
new file mode 100644 (file)
index 0000000..79d4a7e
--- /dev/null
@@ -0,0 +1,37 @@
+*, *:before, *:after
+  box-sizing: border-box
+
+html, body, div, span, object, iframe, figure, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, code, em, img, small, strike, strong, sub, sup, tt, b, u, i, ol, ul, li, fieldset, form, label, table, caption, tbody, tfoot, thead, tr, th, td, main, canvas, embed, footer, header, nav, section, video
+  margin: 0
+  padding: 0
+  border: 0
+  font-size: 100%
+  font: inherit
+  vertical-align: baseline
+  text-rendering: optimizeLegibility
+  -webkit-font-smoothing: antialiased
+  text-size-adjust: none
+
+footer, header, nav, section, main
+  display: block
+
+body
+  line-height: 1
+
+ol, ul
+  list-style: none
+
+blockquote, q
+  quotes: none
+
+blockquote:before, blockquote:after, q:before, q:after
+  content: ''
+  content: none
+
+table
+  border-collapse: collapse
+  border-spacing: 0
+
+input
+  -webkit-appearance: none
+  border-radius: 0
\ No newline at end of file
diff --git a/style/inc/variables.sass b/style/inc/variables.sass
new file mode 100644 (file)
index 0000000..4b5e43c
--- /dev/null
@@ -0,0 +1,3 @@
+$background-color: #F0EDEB
+$menu-background: #363636
+$space: 25px
\ No newline at end of file
index ed0e54693d9f654ffdffd455981559ef400a5649..a44416705c71aa77e095f39e9ab5fa1be612aab8 100644 (file)
@@ -1,7 +1,10 @@
-@import "variables"
+@import "inc/variables"
+@import "inc/reset"
 
 html,body
   min-height: 100%
 
 body
-  background-color: $background-color
\ No newline at end of file
+  background-color: $background-color
+
+@import "inc/menu"
diff --git a/style/variables.sass b/style/variables.sass
deleted file mode 100644 (file)
index c2832bd..0000000
+++ /dev/null
@@ -1 +0,0 @@
-$background-color: #F0EDEB
\ No newline at end of file
index 318e84a7e8c10cd446f19612aa3a17ea9ed91764..75bf2aebda5afd4f1f5fab101bd77736e213c2d4 100644 (file)
@@ -1,6 +1,2 @@
-<?php include "inc/head.html" ?>
-<body>
-<?php include "inc/menu.html" ?>
-</body>
-<?php include "inc/scripts.html" ?>
-</html>
\ No newline at end of file
+<?php include "inc/head.php" ?>
+<?php include "inc/foot.php" ?>
\ No newline at end of file