forked from phc/website
Scheletro per la pagina sulla storia del PHC
This commit is contained in:
@@ -39,9 +39,10 @@ func main() {
|
|||||||
// Routes
|
// Routes
|
||||||
|
|
||||||
actuallyStaticRoutes := map[string]string{
|
actuallyStaticRoutes := map[string]string{
|
||||||
"/": "home.html",
|
"/": "home.html",
|
||||||
"/link": "link.html",
|
"/link": "link.html",
|
||||||
"/login": "login.html",
|
"/login": "login.html",
|
||||||
|
"/storia": "storia.html",
|
||||||
}
|
}
|
||||||
|
|
||||||
for route, view := range actuallyStaticRoutes {
|
for route, view := range actuallyStaticRoutes {
|
||||||
|
|||||||
@@ -732,6 +732,77 @@ form .field-set input {
|
|||||||
animation: rotate 1s linear infinite;
|
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 {
|
@keyframes rotate {
|
||||||
0% {
|
0% {
|
||||||
transform: rotate(0deg);
|
transform: rotate(0deg);
|
||||||
|
|||||||
@@ -0,0 +1,40 @@
|
|||||||
|
{{template "base" .}}
|
||||||
|
{{define "title"}}Utenti • PHC{{end}}
|
||||||
|
{{define "body"}}
|
||||||
|
<section>
|
||||||
|
<h1>
|
||||||
|
<i class="fas fa-clock"></i>
|
||||||
|
Storia del PHC
|
||||||
|
</h1>
|
||||||
|
<p>
|
||||||
|
In questa pagina è raccontata la storia del PHC con alcuni degli eventi principali. Al momento è <i>work in progress</i> ma pianifichiamo di aggiungere almeno le date di ingresso di tutti i macchinisti.
|
||||||
|
</p>
|
||||||
|
<div class="history-container">
|
||||||
|
<div class="timeline-bar"></div>
|
||||||
|
<div class="events">
|
||||||
|
<div class="event">
|
||||||
|
<div class="title">Nuovo sito del PHC</div>
|
||||||
|
<div class="date">2022/??</div>
|
||||||
|
</div>
|
||||||
|
<div class="event">
|
||||||
|
<div class="title">Ingresso di <a href="#">Francesco Manicastri</a></div>
|
||||||
|
<div class="date">2022/05</div>
|
||||||
|
</div>
|
||||||
|
<div class="event">
|
||||||
|
<div class="title">Ingresso di <a href="#">Francesco Minnocci</a></div>
|
||||||
|
<div class="date">2022/02</div>
|
||||||
|
</div>
|
||||||
|
<div class="spacer"></div>
|
||||||
|
<div class="event">
|
||||||
|
<div class="title">Ingresso di <a href="#">Antonio De Lucreziis</a></div>
|
||||||
|
<div class="date">20??/??</div>
|
||||||
|
</div>
|
||||||
|
<div class="spacer"></div>
|
||||||
|
<div class="event">
|
||||||
|
<div class="title">Apertura del PHC</div>
|
||||||
|
<div class="date">1998/??/??</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
{{end}}
|
||||||
Reference in New Issue
Block a user