Skip to content

Commit

Permalink
Merge pull request #127 from ClubCedille/feature/EHP/add-notification…
Browse files Browse the repository at this point in the history
…-bar

adding notification bar
  • Loading branch information
EdvinHonda authored Sep 25, 2023
2 parents 4e4276e + 79620fc commit 919c439
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 23 deletions.
5 changes: 4 additions & 1 deletion config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -105,5 +105,8 @@ baseURL = 'https://cedille.etsmtl.ca'
icon = "fa-brands fa-linkedin"
url = "https://www.linkedin.com/company/cedille/about/"
weight = 4

[[params.footer.social]]
icon = "fa-brands fa-discord"
url = "https://discord.gg/RAhFnbs3"
weight = 5

4 changes: 4 additions & 0 deletions themes/cedille/layouts/_default/baseof.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
{{- partial "head.html" . -}}
<body>
<div>
{{ if in .Name "Accueil" }}
{{ partial "notification.html" . }}
{{ end }}
{{- partial "header.html" . -}}
<div id="content">
{{- block "main" . }}{{- end }}
Expand All @@ -11,5 +14,6 @@
<script src="{{ .Site.BaseURL }}/js/gmap.js"></script>
<script async defer src="https://maps.googleapis.com/maps/api/js?key={{ .Site.Params.map.APIkey }}&callback=initMap"></script>
</div>

</body>
</html>
7 changes: 7 additions & 0 deletions themes/cedille/layouts/partials/notification.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<div class="notification py-2" id="notification-bar" style="background-color: rgba(255, 166, 0, 0.748);">
<div class="container">
<div class="row text-center">
<p class="m-0">🛑 Attention : En raison d'une demande exceptionnellement élevée, nous ne pouvons temporairement plus accepter de nouvelles demandes pour développer des sites web pour d'autres clubs. Pendant ce temps, nous continuons d'assurer l'hébergement. Pour toute question ou mise à jour, veuillez nous rejoindre sur Discord.</p>
</div>
</div>
</div>
22 changes: 0 additions & 22 deletions themes/cedille/static/js/main.js
Original file line number Diff line number Diff line change
@@ -1,24 +1,2 @@
// //Javascript to enable link to tab
// var hash = location.hash.replace(/^#/, ''); // ^ means starting, meaning only match the first hash
// if (hash) {
// $('a[href="#' + hash + '"]').tab('show');
// }

// // Change hash for page-reload
// $('.nav-link').on('shown.bs.tab', function (e) {
// window.location.hash = e.target.hash;
// })

// function test() {
// var url = document.location.toString();
// if (url.match('#')) {
// $('a[href="#' + url.split('#')[1] + '"]').tab('show');
// console.log(url);
// }

// // Change hash for page-reload
// $('a').on('shown.bs.tab', function (e) {
// window.location.hash = e.target.hash;
// })
// }

1 comment on commit 919c439

@vercel
Copy link

@vercel vercel bot commented on 919c439 Sep 25, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

cedille-etsmtl-ca – ./

cedille-etsmtl-ca-git-master-cedille.vercel.app
cedille-etsmtl-ca-cedille.vercel.app
cedille-etsmtl-ca.vercel.app

Please sign in to comment.