From b7d65edbc9692566dc3622cf09ae55fd0f89d42d Mon Sep 17 00:00:00 2001 From: aziis98 Date: Wed, 19 Aug 2020 18:51:47 +0200 Subject: [PATCH] =?UTF-8?q?Icone=20da=20Icons8,=20favicon=20temporanea,=20?= =?UTF-8?q?cambiato=20il=20framework=20(perch=C3=A9=20s=C3=AC),=20i=20temp?= =?UTF-8?q?late=20ora=20sono=20cachate=20in=20produzione?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 2 +- README.md | 11 +- assets/icons/icons8-electronics-100.png | Bin 0 -> 1606 bytes assets/style.css | 7 ++ go.mod | 13 +-- go.sum | 134 +++++------------------- main.go | 58 +++++++--- utils/template_renderer.go | 40 +++++++ views/base.html | 16 ++- views/home.html | 2 +- views/login.html | 22 ++-- views/utenti.html | 2 +- 12 files changed, 159 insertions(+), 148 deletions(-) create mode 100644 assets/icons/icons8-electronics-100.png create mode 100644 utils/template_renderer.go diff --git a/.gitignore b/.gitignore index 66fd13c..7331964 100644 --- a/.gitignore +++ b/.gitignore @@ -12,4 +12,4 @@ *.out # Dependency directories (remove the comment below to include it) -# vendor/ +blog/ diff --git a/README.md b/README.md index 1c3d88d..b085d04 100644 --- a/README.md +++ b/README.md @@ -1,20 +1,20 @@ # Nuovo Sito Poisson -Servizio del nuovo sito del PHC +Server che gestisce il nuovo sito del PHC, che verrà hostato a `https://phc.dm.*****.**`. ## Technologies -- [Gin Web Framework](https://gin-gonic.com/) — https://github.com/gin-gonic/gin +- [Echo Web Framework](https://echo.labstack.com/) — https://github.com/labstack/echo Sembra un framework abbastanza usato ed ha molte stelle. - [Hugo](https://gohugo.io) — Generatore statico di blog scritto in Go. - Tutta la parte di contenuti: blog, notizie, guide, etc. Verrà gestita da Hugo e servita sotto l'url `/blog`. + Tutta la parte di contenuti: blog, notizie, guide, etc. Verrà gestita da Hugo e servita sotto l'url `/blog` ed in teoria sarà sotto `content-poisson`. ## Development -Esegui `go run main.go` per farlo girare su `localhost:8000` e vedere le modifiche in diretta, amico. +Usare il comando `MODE=development go run main.go` per lanciare il server su `localhost:8000`. ## Design (?) @@ -22,7 +22,8 @@ Esegui `go run main.go` per farlo girare su `localhost:8000` e vedere le modific - Share 700: per le intestazioni - Ubuntu 300, 700: per il testo. -- Ubuntu Mono: per i blocchi di codice +- Ubuntu Mono: per i blocchi di codice + ```css @import url('https://fonts.googleapis.com/css2?family=Share:wght@700&family=Ubuntu+Mono&family=Ubuntu:wght@300;700&display=swap'); diff --git a/assets/icons/icons8-electronics-100.png b/assets/icons/icons8-electronics-100.png new file mode 100644 index 0000000000000000000000000000000000000000..0ff2511af47062eb7553183f54c35cbc8ece9c2e GIT binary patch literal 1606 zcmYjSdsNbQ6#t>9-~%yyk(#1K?u3?+iMkpn`PdLFEgzX0j@DFW`9KY6VwSi>aVC9Mp-nUZD07sp81dRWUxh(k=xv=pgUX%mO1owJ?qeVqHxJ@?$t=X1Y>q2xd_U~B!?fg?C*W6 zY@fm-TccghjqLgw)eF94&4Gh}KLz z0MsM#^>4%l1iTx>b{nW`5*x4~)I`rb#EEOxZ`QJE&<9NjC2%2Bq%()capI%$BG2gx zlNayNWx?OYPf2{H$9+n!&rgiH7n@7#W6AQ&JI+c$kZ1Zep`)NDqLcN8&-hy#$x3rR zSfAcPA)9)RJiJoAiY>OIT-m+H!>HgRYJ7Z2&cEq}k6!@)B>mX8<4HwUrKogO+J1>W z+^}%C?=sL+1Q;>LPAy*Al^o9FhbxYuwT6;3^g{H5BLit;gYAt%!Or6(UYD&6Kn#&% zpqxhAXAI%34^0+n=%RK;hwyj3-r5{3wkH4MqoH)#-LsE`MuZTgMkJCt*2dfefQH$G z($}XE4SFU&lh6*-F*=oR^y;?{TyEw8tTvHB8S*uKfFQwEF6g z_J8j7ZdSH!uKHk7wKTC%&4uk3r-_d!QeEa}-gzAZu@P@%B2x?LP9l80l}nZEp7(S= z`+?eYyV+8neNhuiuL=ie6{@0JXW?R}i*d-g`+y%~M62Dz>FwtT&9;m$dua3E&t$7Pf2+r@ITcV>4J?YW_G^Kyw%&5PfZanlvg?EC%_C1-^{ z+%oN5s7U%BP1HX5l=zUnjVZA((!`Bb@0DhGRJp5NgL?SALtvQ*G|6_iuyXzODDKii z6RCK7Z?=iE45QeZ;*eM1Ux{vzB$124jL*{b--?i!xDmr1%reQ#` z$#pQtDC7^JV>!e_QJY)`1|EYbte2^&)N7hoGrw4RW;H_vU4@Tb_H3F0C7iW zCz;`C_?h_72)dOk=4fMBM0Z%kbD4R^MotRoj|!;lY$qROb8XCzV~M;40Wz?2F#1c> z)UNd5Lq`e8Dd}!?r#yMfToqTpOZH@h2=;;z;|!~2&ilOU%6EqVcMeKK5ss_02`0^> z?aAO5NuQ~(KC|BjMnL-VFmiya&+7vLJBxjd@e#Oq>0rP$sP8x2pDE8QwC6wT6>Oc) zK8Zj?ZNSB9?3g7au%{|O)KlaCE1cbHGZVPPbusK#KJ_U|&17BdUl|i8ow1%X*TODV zOCs0{7jUn$;shV5d8HMnz&MCX2t9li0_wm%Ex%mZN+a@WZr6M&o^98c30fl#z$qSK zorPj`E}`QCi8*hKNHNejgzcsmSHL$N_e53h z;Cg5V%CJ_iNI!uv(;E9TjCYHXvmV{Jj+MWZ8undrUg=#cjj-(g#tTe8yJKHvUol%+ z)M4FuD5^f)KQqKMV@P*RpaSH8!yXa!DZ+~A@Vo$~aqRXzmBN3pwZxeH)qqp_ - {{template "title" .}} + {{ template "title" . }} + + + @@ -37,15 +40,20 @@ {{else}} {{end}} - {{template "body" .}} + {{ template "body" . }}
- macchinisti@poisson.phc.dm.unipi.it + +
diff --git a/views/home.html b/views/home.html index e604d8b..21e178d 100644 --- a/views/home.html +++ b/views/home.html @@ -1,6 +1,6 @@ {{template "base" .}} -{{define "title"}}Poisson{{end}} +{{define "title"}}PHC • phc.dm.xxxxx.xx{{end}} {{define "body"}}

PHC

diff --git a/views/login.html b/views/login.html index c96d0c4..0621247 100644 --- a/views/login.html +++ b/views/login.html @@ -1,20 +1,26 @@ {{template "base" .}} -{{define "title"}}Poisson - Utenti{{end}} +{{define "title"}}PHC • Accedi • phc.dm.xxxxx.xx{{end}} {{define "body"}}

Login

Inserisci le tue credenziali di Poisson per accedere

+
+ + +
+
+ + +
+ - - - - - - -
+

+ 🛈 Recupero credenziali +

+ {{end}} \ No newline at end of file diff --git a/views/utenti.html b/views/utenti.html index 3201c1f..3311446 100644 --- a/views/utenti.html +++ b/views/utenti.html @@ -1,6 +1,6 @@ {{template "base" .}} -{{define "title"}}Poisson - Utenti{{end}} +{{define "title"}}PHC • Utenti • phc.dm.xxxxx.xx{{end}} {{define "body"}}

Utenti