change(web): split procès-verbaux de page documentation #204

Merged
vlbeaudoin merged 1 commit from vlbeaudoin/change/split-procesverbaux-de-documentation into main 2024-08-23 14:22:55 -04:00 AGit
6 changed files with 41 additions and 4 deletions
Showing only changes of commit 299d685bc2 - Show all commits

7
cmd.go
View file

@ -173,10 +173,9 @@ func init() {
serpents.StringToString(serverCmd.Flags(),
"server.documents.buckets", "server-documents-buckets", map[string]string{
"proces-verbaux": "Procès-verbaux",
"politiques": "Politiques",
"reglements": "Règlements",
"formulaires": "Formulaires",
"politiques": "Politiques",
"reglements": "Règlements",
"formulaires": "Formulaires",
},
"Buckets that are allowed to be accessed by the API")

View file

@ -681,6 +681,12 @@ func HandleAdmin(c echo.Context) error {
return c.Render(http.StatusOK, "admin-html", nil)
}
func HandlePageProcesVerbaux() echo.HandlerFunc {
return func(c echo.Context) error {
return c.Render(http.StatusOK, "procesverbaux-html", nil)
}
}
func (h *WebHandler) HandleAdminDocumentsUpload(c echo.Context) error {
var response HandleAdminDocumentsUploadResponse

View file

@ -0,0 +1,10 @@
.procesVerbauxP {
font-family: "Poppins";
font-weight: 400;
/*regular*/
font-size: 1rem;
/*16px*/
color: #000;
/*Bleu AGECEM*/
line-height: 150%;
}

View file

@ -167,6 +167,8 @@ func RunServer() {
e.GET("/documentation", webHandler.HandleDocumentation)
e.GET("/proces-verbaux", HandlePageProcesVerbaux())
e.GET("/formulaires", HandleFormulaires)
// Public Routes

View file

@ -5,6 +5,7 @@
<ul class="headerMenu">
<li class="headerMenuElement"><a class="headerMenuElementLink" href="/vie-etudiante">Vie étudiante</a></li>
<li class="headerMenuElement"><a class="headerMenuElementLink" href="/documentation">Documentation</a></li>
<li class="headerMenuElement"><a class="headerMenuElementLink" href="/proces-verbaux">Procès-Verbaux</a></li>
<li class="headerMenuElement"><a class="headerMenuElementLink" href="/admin">admin</a></li>
</ul>
<img class="headerMenuHamburger" src="/public/icones/hamburger-menu.svg" onclick="onToggleNav()"></img>
@ -12,6 +13,7 @@
<ul class="headerMenuMobile">
<li class="headerMenuElement"><a class="headerMenuElementLink" href="/vie-etudiante">Vie étudiante</a></li>
<li class="headerMenuElement"><a class="headerMenuElementLink" href="/documentation">Documentation</a></li>
<li class="headerMenuElement"><a class="headerMenuElementLink" href="/proces-verbaux">Procès-Verbaux</a></li>
<li class="headerMenuElement"><a class="headerMenuElementLink" href="/admin">admin</a></li>
</ul>
</div>

View file

@ -0,0 +1,18 @@
{{ define "procesverbaux-html" }}
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="utf-8">
<title>AGECEM | Procès-Verbaux</title>
{{ template "general-html" }}
<link rel="stylesheet" href="/public/css/proces-verbaux.css">
</head>
<body>
{{ template "header-html" }}
<div class="wrapper">
<h1 class="heading1">Procès-Verbaux</h1>
<p class="procesVerbauxP">Les procès-verbaux des différentes instances de l'AGECEM sont disponibles sur demande à la permanence au local B-31 ou par courriel à permanence@agecem.org</p>
</div>
</body>
</html>
{{ end }}