summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpolo <ordipolo@gmx.fr>2025-05-13 16:42:35 +0200
committerpolo <ordipolo@gmx.fr>2025-05-13 16:42:35 +0200
commitd5a636d328989ad950b88015f9b418e17652d8c8 (patch)
treed920dab221fa5579dd47a49c3a054cf9dd43b981
parent2900691707ff5f5b39306db8b405d08a33f5b019 (diff)
downloadcms-d5a636d328989ad950b88015f9b418e17652d8c8.zip
bricoles
-rw-r--r--public/assets/github-nb.svg1
-rw-r--r--public/assets/github.svg37
-rw-r--r--public/css/head.css3
-rw-r--r--src/controller/installation.php3
-rw-r--r--src/view/MenuBuilder.php2
5 files changed, 43 insertions, 3 deletions
diff --git a/public/assets/github-nb.svg b/public/assets/github-nb.svg
new file mode 100644
index 0000000..fdda08a
--- /dev/null
+++ b/public/assets/github-nb.svg
@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M12.001 2C6.47598 2 2.00098 6.475 2.00098 12C2.00098 16.425 4.86348 20.1625 8.83848 21.4875C9.33848 21.575 9.52598 21.275 9.52598 21.0125C9.52598 20.775 9.51348 19.9875 9.51348 19.15C7.00098 19.6125 6.35098 18.5375 6.15098 17.975C6.03848 17.6875 5.55098 16.8 5.12598 16.5625C4.77598 16.375 4.27598 15.9125 5.11348 15.9C5.90098 15.8875 6.46348 16.625 6.65098 16.925C7.55098 18.4375 8.98848 18.0125 9.56348 17.75C9.65098 17.1 9.91348 16.6625 10.201 16.4125C7.97598 16.1625 5.65098 15.3 5.65098 11.475C5.65098 10.3875 6.03848 9.4875 6.67598 8.7875C6.57598 8.5375 6.22598 7.5125 6.77598 6.1375C6.77598 6.1375 7.61348 5.875 9.52598 7.1625C10.326 6.9375 11.176 6.825 12.026 6.825C12.876 6.825 13.726 6.9375 14.526 7.1625C16.4385 5.8625 17.276 6.1375 17.276 6.1375C17.826 7.5125 17.476 8.5375 17.376 8.7875C18.0135 9.4875 18.401 10.375 18.401 11.475C18.401 15.3125 16.0635 16.1625 13.8385 16.4125C14.201 16.725 14.5135 17.325 14.5135 18.2625C14.5135 19.6 14.501 20.675 14.501 21.0125C14.501 21.275 14.6885 21.5875 15.1885 21.4875C19.259 20.1133 21.9999 16.2963 22.001 12C22.001 6.475 17.526 2 12.001 2Z"></path></svg> \ No newline at end of file
diff --git a/public/assets/github.svg b/public/assets/github.svg
new file mode 100644
index 0000000..69a8733
--- /dev/null
+++ b/public/assets/github.svg
@@ -0,0 +1,37 @@
1<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2<svg
3 viewBox="0 0 24 24"
4 fill="currentColor"
5 version="1.1"
6 id="svg1"
7 sodipodi:docname="github.svg"
8 inkscape:version="1.4.1 (93de688d07, 2025-03-30)"
9 xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
10 xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
11 xmlns="http://www.w3.org/2000/svg"
12 xmlns:svg="http://www.w3.org/2000/svg">
13 <defs
14 id="defs1" />
15 <sodipodi:namedview
16 id="namedview1"
17 pagecolor="#ffffff"
18 bordercolor="#000000"
19 borderopacity="0.25"
20 inkscape:showpageshadow="2"
21 inkscape:pageopacity="0.0"
22 inkscape:pagecheckerboard="0"
23 inkscape:deskcolor="#d1d1d1"
24 inkscape:zoom="11.549411"
25 inkscape:cx="4.6755632"
26 inkscape:cy="5.324947"
27 inkscape:window-width="1399"
28 inkscape:window-height="1032"
29 inkscape:window-x="517"
30 inkscape:window-y="0"
31 inkscape:window-maximized="1"
32 inkscape:current-layer="svg1" />
33 <path
34 style="fill:#dd3333;stroke:#dd3333;stroke-width:0.327249"
35 d="M 8.4852814,21.307718 C 7.955914,21.108949 6.9013636,20.552461 6.3671832,20.189993 5.6789926,19.723022 4.5113583,18.59261 3.9886125,17.887248 3.0826649,16.664815 2.3701942,14.947697 2.1595933,13.479147 2.0016653,12.377892 2.0955724,10.579173 2.3645735,9.5529082 3.3853776,5.6584436 6.5930714,2.7581765 10.537033,2.1637012 c 1.066368,-0.1607342 1.836609,-0.1617733 2.883925,-0.00389 2.083052,0.3140198 3.873467,1.188981 5.39679,2.6373669 4.102465,3.9006521 4.17868,10.2469419 0.171245,14.2594069 -1.101446,1.102828 -2.955529,2.231237 -3.867015,2.353493 -0.55147,0.07397 -0.575781,-0.0093 -0.575781,-1.972691 0,-1.792147 -0.08726,-2.364494 -0.423857,-2.780176 l -0.162507,-0.200687 0.777523,-0.15708 c 1.061175,-0.214384 1.782467,-0.559095 2.3976,-1.145834 0.893802,-0.852542 1.260079,-1.870144 1.262674,-3.507994 0.0018,-1.155649 -0.134211,-1.6724702 -0.640257,-2.4323411 -0.230454,-0.3460463 -0.30397,-0.5313214 -0.257672,-0.6493838 0.102813,-0.2621736 0.0741,-1.6893394 -0.04165,-2.0700528 l -0.105297,-0.346338 -0.515787,1.84e-4 c -0.428033,1.526e-4 -0.640999,0.061119 -1.251754,0.358346 C 15.18043,6.7030194 14.775814,6.9205461 14.686065,6.989423 14.543427,7.0988892 14.45623,7.0978007 13.993389,6.980773 13.254615,6.7939818 10.810849,6.7953318 10.06772,6.982943 9.5323043,7.1181146 9.5268032,7.1176101 9.2133081,6.9045846 8.6534451,6.5241479 7.7687298,6.1722058 7.2551882,6.1256395 6.7708068,6.0817174 6.7558534,6.0868789 6.6616746,6.3305022 6.4634945,6.8431577 6.3883536,7.6562797 6.4868767,8.2220414 6.581993,8.7682397 6.5818871,8.7687488 6.2796494,9.2178723 5.8365805,9.8762698 5.6276896,10.638357 5.6294962,11.589798 c 0.005,2.635183 1.2384114,4.232873 3.6350457,4.708641 0.4047826,0.08036 0.7519641,0.157069 0.7715141,0.170474 0.01955,0.01341 -0.02932,0.09605 -0.1086025,0.183656 -0.079282,0.0876 -0.2158076,0.370099 -0.3033907,0.627765 -0.1432863,0.421541 -0.1931333,0.47871 -0.4974888,0.570562 -1.0539106,0.318062 -1.6222978,0.05789 -2.6695591,-1.221956 -0.465256,-0.568585 -0.7730374,-0.739966 -1.3296005,-0.74036 -0.5987893,-4.24e-4 -0.7030483,0.192846 -0.2775657,0.514538 0.52731,0.398679 0.8514007,0.798691 1.170754,1.445012 0.3600775,0.728741 0.817606,1.172213 1.3684944,1.326452 0.2090694,0.05854 0.7280608,0.09106 1.1995571,0.07518 l 0.8310538,-0.028 0.039994,0.865845 c 0.047623,1.031015 -0.033692,1.290675 -0.4122232,1.316335 -0.1425333,0.0097 -0.3955219,-0.03364 -0.5621971,-0.09622 z"
36 id="path2" />
37</svg>
diff --git a/public/css/head.css b/public/css/head.css
index caa5d77..eff7de6 100644
--- a/public/css/head.css
+++ b/public/css/head.css
@@ -40,7 +40,8 @@ header h2
40header img 40header img
41{ 41{
42 vertical-align: bottom; /* supprime espace sous l'image */ 42 vertical-align: bottom; /* supprime espace sous l'image */
43 max-width: 120px; 43 max-width: 150px;
44 max-height: 75px;
44} 45}
45header a 46header a
46{ 47{
diff --git a/src/controller/installation.php b/src/controller/installation.php
index 37d1c3b..d9ea849 100644
--- a/src/controller/installation.php
+++ b/src/controller/installation.php
@@ -107,12 +107,13 @@ function makeStartPage(EntityManager $entityManager){
107 $facebook = new Image("facebook.svg", NULL, "assets/facebook.svg", "image/svg+xml", "facebook"); 107 $facebook = new Image("facebook.svg", NULL, "assets/facebook.svg", "image/svg+xml", "facebook");
108 $instagram = new Image("instagram.svg", NULL, "assets/instagram.svg", "image/svg+xml", "instagram"); 108 $instagram = new Image("instagram.svg", NULL, "assets/instagram.svg", "image/svg+xml", "instagram");
109 $linkedin = new Image("linkedin.svg", NULL, "assets/linkedin.svg", "image/svg+xml", "linkedin"); 109 $linkedin = new Image("linkedin.svg", NULL, "assets/linkedin.svg", "image/svg+xml", "linkedin");
110 $github = new Image("github.svg", NULL, "assets/github.svg", "image/svg+xml", "github");
110 $fond_piscine = new Image("fond-piscine.jpg", "assets/fond-piscine.jpg", NULL, "images/jpg", "fond-piscine"); 111 $fond_piscine = new Image("fond-piscine.jpg", "assets/fond-piscine.jpg", NULL, "images/jpg", "fond-piscine");
111 112
112 /* -- table node_data -- */ 113 /* -- table node_data -- */
113 // paramètres: data, node, images 114 // paramètres: data, node, images
114 $head_accueil_data = new NodeData(["description" => "Club, École de natation et Perfectionnement", "title" => "Les Nageurs Bigoudens"], $head_accueil, new ArrayCollection([$favicon])); 115 $head_accueil_data = new NodeData(["description" => "Club, École de natation et Perfectionnement", "title" => "Les Nageurs Bigoudens"], $head_accueil, new ArrayCollection([$favicon]));
115 $header_data = new NodeData(["description" => "Club, École de natation et Perfectionnement", "social" => ["title" => "Les Nageurs Bigoudens", "facebook_link" => "https://www.facebook.com/nageursbigoudens29120", "instagram_link" => "https://www.instagram.com/nageursbigoudens/"]], $header, new ArrayCollection([$logo, $facebook, $instagram, $linkedin, $fond_piscine])); 116 $header_data = new NodeData(["description" => "Club, École de natation et Perfectionnement", "social" => ["title" => "Les Nageurs Bigoudens", "facebook_link" => "https://www.facebook.com/nageursbigoudens29120", "instagram_link" => "https://www.instagram.com/nageursbigoudens/"]], $header, new ArrayCollection([$logo, $facebook, $instagram, $linkedin, $github, $fond_piscine]));
116 $footer_data = new NodeData(["adresse" => "17, rue Raymonde Folgoas Guillou, 29120 Pont-l’Abbé", "contact_nom" => "Les Nageurs Bigoudens", "e_mail" => "nb.secretariat@orange.fr", "logo_footer" => "assets/logo-nb-et-ffn.png"], $footer); 117 $footer_data = new NodeData(["adresse" => "17, rue Raymonde Folgoas Guillou, 29120 Pont-l’Abbé", "contact_nom" => "Les Nageurs Bigoudens", "e_mail" => "nb.secretariat@orange.fr", "logo_footer" => "assets/logo-nb-et-ffn.png"], $footer);
117 $head_login_data = new NodeData(["description" => "Connexion", "title" => "Connexion"], $head_login, new ArrayCollection([$favicon])); 118 $head_login_data = new NodeData(["description" => "Connexion", "title" => "Connexion"], $head_login, new ArrayCollection([$favicon]));
118 $head_article_data = new NodeData(["description" => "", "title" => ""], $head_article, new ArrayCollection([$favicon])); 119 $head_article_data = new NodeData(["description" => "", "title" => ""], $head_article, new ArrayCollection([$favicon]));
diff --git a/src/view/MenuBuilder.php b/src/view/MenuBuilder.php
index 3b96af1..9d4dda1 100644
--- a/src/view/MenuBuilder.php
+++ b/src/view/MenuBuilder.php
@@ -68,7 +68,7 @@ class MenuBuilder extends AbstractBuilder
68 <i class="url">' . $entry->getEndOfPath() . '</i> 68 <i class="url">' . $entry->getEndOfPath() . '</i>
69 <form style="display: inline;" id="delete-i' . $entry->getId() . '" method="post" action="' . new URL(['from' => 'menu_chemins']) . '"> 69 <form style="display: inline;" id="delete-i' . $entry->getId() . '" method="post" action="' . new URL(['from' => 'menu_chemins']) . '">
70 <input type="hidden" name="delete" value="' . $entry->getId() . '"> 70 <input type="hidden" name="delete" value="' . $entry->getId() . '">
71 <input type="image" class="move_entry_icon" src="assets/delete-bin.svg" alt="delete link button"> 71 <input type="image" class="move_entry_icon" src="assets/delete-bin.svg" alt="delete link button" onclick="return confirm(\'Voulez-vous vraiment supprimer cette entrée?\');">
72 </form>'; 72 </form>';
73 } 73 }
74 else{ 74 else{