From 69170ef4009cb7145f3a50999b898b9d2e8d7ee7 Mon Sep 17 00:00:00 2001 From: Alban Gruin Date: Sun, 13 Sep 2020 13:51:38 +0200 Subject: Add webpages and style Signed-off-by: Alban Gruin --- src/pages.ml | 96 ++++++++++++++++++++++++++++++++++++++++++++++++++++ src/pages.mli | 19 +++++++++++ static/css/style.css | 38 +++++++++++++++++++++ 3 files changed, 153 insertions(+) create mode 100644 src/pages.ml create mode 100644 src/pages.mli create mode 100644 static/css/style.css diff --git a/src/pages.ml b/src/pages.ml new file mode 100644 index 0000000..0f68092 --- /dev/null +++ b/src/pages.ml @@ -0,0 +1,96 @@ +(* + * Copyright (C) 2020 Alban Gruin + * + * ucs is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published + * by the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * ucs is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with ucs. If not, see . + *) + +let common content = +{| + + + + + µCS + + + +
+

µCS

+
+
|} ^ content ^ +{|
+
+

(c) 2020 – Alban Gruin – µCS 0.1.0 « CANIS MINOR »

+
+ + +|} + +let main = common {| +
+

Récupérer un emploi du temps au format ICS

+
+ + + +
+
+
+

+ Le format ICS (ou iCalendar) permet d’importer un calendrier + dans un agenda électronique.
+ En savoir plus +

+ Il existe plusieurs logiciels ou services permettant + d’utiliser ces fichiers : +

    +
  • sur Linux et Windows, l’extension Lightning du logiciel + Thunderbird ;
  • +
  • sur Mac et iOS, iCloud ;
  • +
  • sur Android, l’application libre ICSx5 peut les + récupérer périodiquement et les afficher sur l’application + Agenda de base. + Elle + est gratuite sur F-Droid ;
  • +
  • sur Web, NextCloud.
  • +
+

+ N’utilisez pas Google Calendar pour synchroniser un + calendrier ICS. Ce service empêche de définir la + fréquence de synchronisation ou de forcer une mise à jour et + conserve les événements en cache, même si on supprime le + calendrier. À cause de cela, il peut y avoir un délai de un + jour entre le changement d’une information sur celcatsanitizer + et sa prise en compte sans aucun recours possible. + +

+|} + +let link lnk = common @@ {| +
+

Lien de l'emploi du temps

+ |} ^ lnk ^ {| +
+|} diff --git a/src/pages.mli b/src/pages.mli new file mode 100644 index 0000000..aef68b4 --- /dev/null +++ b/src/pages.mli @@ -0,0 +1,19 @@ +(* + * Copyright (C) 2020 Alban Gruin + * + * ucs is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published + * by the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * ucs is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with ucs. If not, see . + *) + +val main : string +val link : string -> string diff --git a/static/css/style.css b/static/css/style.css new file mode 100644 index 0000000..2ff6c67 --- /dev/null +++ b/static/css/style.css @@ -0,0 +1,38 @@ +body { + max-width: 60em; + margin: 1em auto; + padding: 0 .62em; + font: 1.2em/1.62em sans-serif; + word-wrap: break-word; +} + +article { + max-width: 50em; + margin: 0 auto; +} + +h1, h3 { + line-height: 1.2em; +} + +a { + text-decoration: none; +} + +a:hover, a:focus { + text-decoration: underline; +} + +h1 a { + color: #31363b; +} + +@media print { + body, article { + max-width: none; + } + + header, footer { + display: none; + } +} -- cgit v1.2.1