diff --git a/main.go b/main.go index f19c414..e6faeed 100644 --- a/main.go +++ b/main.go @@ -39,9 +39,10 @@ func main() { // Routes actuallyStaticRoutes := map[string]string{ - "/": "home.html", - "/link": "link.html", - "/login": "login.html", + "/": "home.html", + "/link": "link.html", + "/login": "login.html", + "/storia": "storia.html", } for route, view := range actuallyStaticRoutes { diff --git a/public/style.css b/public/style.css index 5eb942d..2ec9004 100644 --- a/public/style.css +++ b/public/style.css @@ -732,6 +732,77 @@ form .field-set input { animation: rotate 1s linear infinite; } +.page-storia .history-container { + --bar-size: 6px; + + display: flex; + flex-direction: row; + + margin: 5rem 0; + + position: relative; +} + +.page-storia .history-container .timeline-bar { + position: absolute; + + top: 0; + bottom: 0; + left: -2rem; + width: var(--bar-size); + + background: var(--bg-darker-4); +} + +.page-storia .history-container .timeline-bar::before { + content: ''; + position: absolute; + + top: -3rem; + bottom: -3rem; + left: 0; + border-left: var(--bar-size) dashed var(--bg-darker-4); +} + +.page-storia .history-container .events { + display: flex; + flex-direction: column; + gap: 1rem; +} + +.page-storia .history-container .events .event::before { + --size: 1rem; + + content: ''; + position: absolute; + left: calc(-2rem + var(--bar-size) / 2 - var(--size) / 2); + transform: translate(0, 1rem); + + width: var(--size); + height: var(--size); + + border-radius: 100%; + + background: var(--bg-darker-4); +} + +.page-storia .history-container .events .event .title { + font-size: 22px; + + display: flex; + align-items: center; + gap: 0.25rem; +} + +.page-storia .history-container .events .event .date { + color: var(--card-date); + font-size: 18px; +} + +.page-storia .history-container .events .spacer { + height: 4rem; +} + @keyframes rotate { 0% { transform: rotate(0deg); diff --git a/views/storia.html b/views/storia.html new file mode 100644 index 0000000..ed4832e --- /dev/null +++ b/views/storia.html @@ -0,0 +1,40 @@ +{{template "base" .}} +{{define "title"}}Utenti • PHC{{end}} +{{define "body"}} +
+

+ + Storia del PHC +

+

+ In questa pagina è raccontata la storia del PHC con alcuni degli eventi principali. Al momento è work in progress ma pianifichiamo di aggiungere almeno le date di ingresso di tutti i macchinisti. +

+
+
+
+
+
Nuovo sito del PHC
+
2022/??
+
+
+ +
2022/05
+
+
+
Ingresso di Francesco Minnocci
+
2022/02
+
+
+
+ +
20??/??
+
+
+
+
Apertura del PHC
+
1998/??/??
+
+
+
+
+{{end}} \ No newline at end of file