diff --git a/pica-etherpad/Dockerfile b/pica-etherpad/Dockerfile index 2fc3d9d1905c0d9c17e5a7e13e628d6a19635592..7d58212b759dd414cc88b1905bdda04f7c361204 100644 --- a/pica-etherpad/Dockerfile +++ b/pica-etherpad/Dockerfile @@ -17,7 +17,9 @@ RUN apt-get update && \ apt-get install -y \ curl \ gzip \ + jpegoptim \ libssl-dev \ + optipng \ pkg-config \ python \ unzip && \ @@ -32,7 +34,8 @@ RUN curl -SL https://github.com/ether/etherpad-lite/archive/${ETHERPAD_VERSION_B bin/installDeps.sh && \ # Build and replace landing page -RUN /builds/$CI_PROJECT_PATH/landing-page/build/build.sh +RUN npm install minify && \ + /builds/$CI_PROJECT_PATH/landing-page/build/build.sh && \ cp /builds/$CI_PROJECT_PATH/landing-page/index.html src/templates/index.html && \ cp -r /builds/$CI_PROJECT_PATH/landing-page/static/* src/static/ diff --git a/pica-etherpad/landing-page/index.full.html b/pica-etherpad/landing-page/index.full.html index e9eea94fa91a0a428d7fcda73af918b239f66928..b7a55ca2be84a705f6900bff5fa4b2d63155f672 100644 --- a/pica-etherpad/landing-page/index.full.html +++ b/pica-etherpad/landing-page/index.full.html @@ -8,16 +8,13 @@ <meta name="description" content=""> <meta name="author" content=""> - <title>Etherpad</title> + <title>Picapad</title> <!-- Bootstrap core CSS --> <link href="static/vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet"> <!-- Custom fonts for this template --> <link href="static/vendor/fontello/css/fontello.min.css" rel="stylesheet" type="text/css"> - <!-- <link href="static/vendor/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css"> --> - <!-- <link href="static/vendor/simple-line-icons/css/simple-line-icons.css" rel="stylesheet" type="text/css"> --> - <!-- <link href="https://fonts.googleapis.com/css?family=Lato:300,400,700,300italic,400italic,700italic" rel="stylesheet" type="text/css"> --> <!-- Custom styles for this template --> <link href="static/css/landing-page.min.css" rel="stylesheet"> @@ -50,11 +47,7 @@ <b>UPDATE (30/03/2020):</b> La charge sur cette instance continue à augmenter très fortement. Nous avons donc décidé d'interdire la création de nouveaux pads (vous pouvez toujours utiliser - <a href="https://week.pad.picasoft.net/" >week.pad.picasoft.net</a> !). Nous sommes également en train de transformer cette instance - pour qu'elle soit en lecture seule, le temps de trouver des solutions avec la team technique - pour continuer à vous fournir un service de qualité. Ne vous inquiètez pas pour vos pads, vous pourrez - toujours les exporter et les importer sur une autre instance) - pour continuer à les éditer. + <a href="https://week.pad.picasoft.net/" >week.pad.picasoft.net</a> !). </div> </div> </br> @@ -125,25 +118,8 @@ <div class="container"> <div class="row"> <div class="col-7 col-lg-9 h-100 text-center text-lg-left my-auto"> - <!--ul class="list-inline mb-2"> - <li class="list-inline-item"> - <a href="#">About</a> - </li> - <li class="list-inline-item">⋅</li> - <li class="list-inline-item"> - <a href="#">Contact</a> - </li> - <li class="list-inline-item">⋅</li> - <li class="list-inline-item"> - <a href="#">Terms of Use</a> - </li> - <li class="list-inline-item">⋅</li> - <li class="list-inline-item"> - <a href="#">Privacy Policy</a> - </li> - </ul--> <p class="text-muted small mb-2"><i class="icon-copyleft"></i>copyleft Picasoft 2020</p> - <p class="text-muted small"><a href="https://framagit.org/DeBugs/picasoft-etherpad-landing-page">Sources de cette page</a></p> + <p class="text-muted small"><a href="https://gitlab.utc.fr/picasoft/projets/dockerfiles/-/tree/master/pica-etherpad/landing-page">Sources de cette page</a></p> </div> <div class="col-5 col-lg-3 h-100 text-right my-auto"> <a href="https://picasoft.net"> diff --git a/pica-etherpad/landing-page/index.html b/pica-etherpad/landing-page/index.html deleted file mode 100644 index 92b0a98b0e592ced17de7a1746c1c1bcc3e7879a..0000000000000000000000000000000000000000 --- a/pica-etherpad/landing-page/index.html +++ /dev/null @@ -1 +0,0 @@ -<!doctype html><html lang=en><meta charset=utf-8><meta name=viewport content="width=device-width,initial-scale=1,shrink-to-fit=no"><meta name=description content=""><meta name=author content=""><title>Etherpad</title><link href=static/vendor/bootstrap/css/bootstrap.min.css rel=stylesheet><link href=static/vendor/fontello/css/fontello.min.css rel=stylesheet><link href=static/css/landing-page.min.css rel=stylesheet><header class="masthead text-white text-left"><div class=overlay></div><div class=container><div class="row align-items-center"><div class="col-10 col-xl-4 text-center mx-auto"><h1 class=mb-5><img class=img-fluid src=static/img/picasoft_logo_pad.png></h1></div><div class="col-md-10 col-lg-8 col-xl-7 mx-auto"><div class="row py-3" style=background-color:#33333333;border-radius:.3rem><div class=col-12><b>COVID-19:</b> En raison d'une forte augmentation de la charge sur pad.picasoft.net, nous avons déployé une deuxième instance sur <a href=https://week.pad.picasoft.net/ >week.pad.picasoft.net</a>. Les pads sur cette nouvelle instance sont supprimés après 14 jours d'inactivité. Si vos pads ont vocation à être temporaires, nous vous remercions de privilégier cette nouvelle instance :)<br><br><b>UPDATE (30/03/2020):</b> La charge sur cette instance continue à augmenter très fortement. Nous avons donc décidé d'interdire la création de nouveaux pads (vous pouvez toujours utiliser <a href=https://week.pad.picasoft.net/ >week.pad.picasoft.net</a> !). Nous sommes également en train de transformer cette instance pour qu'elle soit en lecture seule, le temps de trouver des solutions avec la team technique pour continuer à vous fournir un service de qualité. Ne vous inquiètez pas pour vos pads, vous pourrez toujours les exporter et les importer sur une autre instance) pour continuer à les éditer.</div></div><br><form action=# onsubmit=go()><div class=form-row><div class="col-xl-12 py-2 h5"><div class=row><div class=col-1><input type=radio id=radio_week name=instance value=week checked></div><div class=col-11><label for=week>Créer un pad sur week.pad.picasoft.net !</label><br></div></div><div class=row><div class=col-1><input type=radio id=radio_normal name=instance value=normal disabled></div><div class=col-11><label for=week style=text-decoration:line-through>Créer un pad sur pad.picasoft.net !</label><br></div></div></div><div class="col-12 col-md-6 mb-2 mb-md-0"><input class="form-control form-control-lg" placeholder="Nom du pad" id=padInput1 onchange='onModification("padInput1")' onkeydown='onModification("padInput1")' onpaste='onModification("padInput1")' oninput='onModification("padInput1")'></div><div class="col-12 col-md-2 mb-1 mb-md-0"><button type=button class="btn btn-block btn-lg btn-primary" id=goButton onclick=go()>Go !</button></div><div class="col-12 col-md-4 mb-1 mb-md-0"><button type=button class="btn btn-block btn-lg btn-primary" onclick=randomize()>Au hasard</button></div></div></form><div class="container text-center h5 pt-5"><a href=https://www.picasoft.net/co/cgu.html style=color:#fff>Conditions d'utilisation</a></div></div></div></div></header><footer class="footer bg-light"><div class=container><div class=row><div class="col-7 col-lg-9 h-100 text-center text-lg-left my-auto"><p class="text-muted small mb-2"><i class=icon-copyleft></i>copyleft Picasoft 2020<p class="text-muted small"><a href=https://framagit.org/DeBugs/picasoft-etherpad-landing-page>Sources de cette page</a></div><div class="col-5 col-lg-3 h-100 text-right my-auto"><a href=https://picasoft.net><img class=img-fluid src=static/img/picasoft_logo_secondaire.png></a></div></div></div></footer><script src=static/vendor/jquery/jquery.min.js></script><script src=static/vendor/bootstrap/js/bootstrap.bundle.min.js></script><script src=static/js/etherpad.min.js></script>