{home, login, utenti}.html, style.css: Nuovo stile sito

main-old
Antonio De Lucreziis 4 years ago
parent 935278357b
commit 8885f40c43

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 790 B

@ -5,136 +5,334 @@
/* @import url('https://fonts.googleapis.com/css2?family=Sen&family=Work+Sans:wght@700&display=swap'); */ /* @import url('https://fonts.googleapis.com/css2?family=Sen&family=Work+Sans:wght@700&display=swap'); */
:root { :root {
--accent-1: royalblue; --font-title: 'Share', cursive;
--font-text: 'Ubuntu', sans-serif;
--font-mono: 'Ubuntu Mono', monospace;
} }
* { * {
box-sizing: border-box; box-sizing: border-box;
} }
html {
position: relative;
}
html, html,
body { body {
position: relative;
margin: 0; margin: 0;
min-height: 100vh; min-height: 100%;
display: flex;
flex-direction: column;
font-family: 'Ubuntu', sans-serif; font-family: var(--font-text);
font-weight: 300; font-weight: 300;
font-size: 17px; font-size: 17px;
line-height: 1.25; line-height: 1.25;
} }
html {
background: gray;
height: 100%;
min-height: 100%;
}
body {
margin: 0 auto;
padding-bottom: 5rem;
max-width: 850px;
text-align: justify;
background: white;
}
/* Typography */
h1, h2, h3, h4 { h1, h2, h3, h4 {
font-family: 'Share', cursive; margin: 0;
font-family: var(--font-title);
font-weight: 700; font-weight: 700;
} }
a, a:focus, a:visited { p {
color: #666; margin: 0.5rem 0 0 0;
text-decoration: #aaa underline;
padding: 1px 2px;
border-radius: 2px;
} }
a:hover { body > h1, body > h2, body > h3, body > h4, body > p {
background: var(--accent-1); margin-left: 1rem;
color: white; margin-right: 1rem;
} }
body { /* Elements */
max-width: 100%;
width: 50rem;
margin: 0 auto;
padding: 0 0.5rem;
overflow-y: scroll;
}
nav { nav {
display: flex; display: flex;
align-items: center;
border-bottom: 1px solid #ddd;
flex-wrap: wrap; flex-wrap: wrap;
padding: 0.5rem;
border-bottom: 0.5rem solid gray;
} }
.hfill { .nav-item {
flex-grow: 1; display: flex;
align-items: center;
justify-content: center;
height: 2.5rem;
padding: 0 0.5rem;
font-size: 130%;
font-weight: bold;
} }
.vfill { nav > * {
flex-grow: 1; border: 2px solid black;
border-right: none;
}
nav > :last-child {
border: 2px solid black;
} }
.news-list { nav a {
text-decoration: none;
}
header {
display: flex; display: flex;
width: 100%;
justify-content: center;
margin: 2.5rem 0;
} }
.news-list > article { header .logo {
margin: 1rem; margin-right: 1rem;
} }
.nav-item:first-child { header .title {
font-size: 25px; display: flex;
flex-direction: column;
justify-content: space-around;
} }
.nav-item { header .title h1 {
font-family: 'Share', cursive; font-size: 56px;
font-weight: 700; display: inline-block;
transform: translate(-0.125rem);
}
.service-list {
display: flex;
flex-wrap: wrap;
font-size: 21px; margin: 1rem;
gap: 0.5rem;
} }
.nav-item:hover { .service {
background: #f0f0f0; flex: 1 1 calc(50% - 1rem);
min-width: 300px;
padding: 1rem 0.75rem;
/* Brutal */
border: 2px solid black;
} }
.nav-item a, .nav-item a:focus, .nav-item a:visited { .user-list {
display: flex; display: flex;
flex-direction: row;
flex-wrap: wrap;
margin: 1rem 2rem;
gap: 0.25rem;
}
.user {
display: flex;
width: calc(50% - 0.25rem / 2);
align-items: center; align-items: center;
justify-content: center; justify-content: space-between;
padding: 0 0.75rem; padding: 0.125rem 0.25rem;
height: 3.25rem;
color: black; border: 2px solid;
}
.user h4 {
font-size: 90%;
line-height: 1;
font-family: var(--font-mono);
}
.user a {
text-decoration: none; text-decoration: none;
} }
body > div:last-of-type { .user a:hover img {
margin-bottom: 20rem; opacity: 0.6;
}
.user img {
margin: 0.5rem;
} }
footer { footer {
position: absolute; position: absolute;
bottom: 0; bottom: 0;
left: 0; left: 0;
width: 100%; right: 0;
height: 3rem;
display: flex; display: flex;
flex-wrap: wrap;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
border-top: 1px solid #ddd;
border-top: 0.5rem solid gray;
} }
.footer-item:not(:last-child)::after { .footer-item {
content: '•'; padding: 0.5rem;
margin: 0 1rem; font-size: 90%;
} }
@media screen and (max-width: 600px) { .search {
display: flex;
align-items: center;
body { max-width: 27rem;
margin: 1rem auto;
border: 2px solid black;
}
#search-field {
width: 100%; width: 100%;
overflow-x: hidden; flex-grow: 1;
}
.news-list { height: 1.75rem;
flex-direction: column; padding: 0 0.5rem;
}
border: none;
border-right: 2px solid black;
}
.search img {
display: block;
transform: scale(0.8);
width: 1.75rem;
height: 1.75rem;
cursor: pointer;
}
/* Common */
a, a:visited {
color: black;
}
a:hover {
color: gray;
}
hr {
width: 100%;
height: 0.5rem;
margin: 1rem 0;
padding: 0;
background: gray;
border: none;
}
ul {
list-style: square;
}
li {
margin: 0.25rem 0;
}
form {
margin: 1rem auto;
padding: 0.75rem;
max-width: 30rem;
border: 2px solid black;
}
form .row {
display: flex;
width: 100%;
margin-bottom: 0.5rem;
}
form p {
margin-bottom: 1rem;
}
form label {
width: 30%;
}
form input[type=text], form input[type=password] {
flex-grow: 1;
}
input[type=text], input[type=password] {
font-size: 15px;
padding: 0 0.2rem;
height: 1.5rem;
appearance: none;
outline: none;
border: 2px solid black;
}
input[type=text]:focus, input[type=password]:focus {
background: #e0e0e0;
}
button, input[type=submit] {
font-size: 17px;
font-family: var(--font-title);
padding: 0 2rem;
height: 1.5rem;
background: white;
border: 2px solid black;
cursor: pointer;
}
button:hover, input[type=submit]:hover {
background: #e0e0e0;
}
/* Utils */
.icons8 {
width: 25px;
height: 25px;
display: inline-block;
vertical-align: middle;
}
h2 .icons8 {
transform: translateY(-0.125rem);
}
.hfill {
flex-grow: 1;
} }

@ -3,72 +3,119 @@
{{define "title"}}PHC • phc.dm.xxxxx.xx{{end}} {{define "title"}}PHC • phc.dm.xxxxx.xx{{end}}
{{define "body"}} {{define "body"}}
<h1>PHC</h1>
<h2>Servizi</h2> <div class="float-header">
<header>
<img class="logo" src="https://img.icons8.com/ios-filled/100/000000/electronics.png"/>
<div class="title">
<h1 class="huge">
PHC
</h1>
<h2>Poisson</h2>
</div>
</header>
</div>
<dl> <p>
<dt><a href="/blog">Blog & Notizie</a></dt> Lorem ipsum dolor sit, amet consectetur adipisicing elit. Asperiores quas nostrum suscipit nulla. Reiciendis quos et
<dd> vel animi amet facere dignissimos, nemo, repudiandae suscipit esse quod obcaecati iure soluta cumque?
Blog del PHC </p>
</dd>
<dt><a href="/blog/categories/guide">Guide</a></dt> <hr>
<dd>
Nel corso del tempo abbiamo scritto alcune guide utili per utilizzare Poisson o Linux in generale.
</dd>
<dt><a href="/utenti">Utenti</a></dt> <h2>
<dd> <img class="icons8" src="https://img.icons8.com/ios-filled/50/000000/service.png"/>
Lista degli utenti di Poisson e link a relativi siti. Servizi
</dd> </h2>
<p>
Questi sono tutte le risorse e i servizi offerti dal PHC.
</p>
<dt><a href="https://git.phc.dm.unipi.it">Git</a></dt> <div class="service-list">
<dd> <div class="service">
<h3>
<img class="icons8" src="https://img.icons8.com/ios-filled/50/000000/news.png" />
<a href="/blog">Blog & Notizie</a>
</h3>
<p>
Blog del PHC, qui sono racconte le ultime notizie sui nostri progetti recenti, informazioni su eventuali guasti e giorni di manuntenzione.
</p>
</div>
<div class="service">
<h3>
<img class="icons8" src="https://img.icons8.com/ios-filled/50/000000/user-manual.png" />
<a href="/guides">Guide</a>
</h3>
<p>
Nel corso del tempo abbiamo scritto alcune guide utili per utilizzare Poisson o Linux in generale.
</p>
</div>
<div class="service">
<h3>
<img class="icons8" src="https://img.icons8.com/ios-filled/50/000000/find-user-male.png" />
<a href="/utenti">Utenti</a>
</h3>
<p>
Lista degli utenti di Poisson e link a relativi siti.
</p>
</div>
<div class="service">
<h3>
<img class="icons8" src="https://img.icons8.com/ios-filled/50/000000/git.png" />
<a href="https://git.phc.dm.xxxxx.xx">Git</a>
</h3>
<p>
Server Git per gli utenti di Poisson, i progetti del PHC ad un certo punto verranno tenuti qui. Server Git per gli utenti di Poisson, i progetti del PHC ad un certo punto verranno tenuti qui.
</dd> </p>
</div>
<div class="service">
<h3>
<img class="icons8" src="https://img.icons8.com/ios-filled/50/000000/matrix-logo.png" />
<a href="https://element.phc.dm.xxxxx.xx">Matrix server</a>
</h3>
<p>
Server locale per chattare e fare videoconferenze con altre persone del dipartimento.
</p>
</div>
<div class="service">
<h3>
<img class="icons8" src="https://img.icons8.com/ios-filled/50/000000/road-worker.png" />
<a href="https://forum.phc.dm.xxxxx.xx">Forum</a>
</h3>
<p>
Forum per parlare di Matematica in \(\LaTeX\), Informatica e argomenti accademici in generale.
</p>
</div>
</div>
<dt><a href="https://forum.phc.dm.unipi.it">Forum</a></dt> <hr>
<dd>
Forum in stile Disocurse per parlare di Matematica, Informatica e argomenti accademici in generale.
</dd>
</dl>
<h2>Macchinisti</h2> <h2>
<img class="icons8" src="https://img.icons8.com/ios-filled/50/000000/work.png"/>
Macchinisti
</h2>
I macchinisti sono <p>
Al momento i macchinisti sono:
</p>
<ul> <ul>
<li><a href="https://poisson.phc.dm.unipi.it/~persona">Persona 2</a> dal 2013</li> <li><a href="https://poisson.phc.dm.unipi.it/~persona">Persona 1</a> dal 2018</li>
<li><a href="https://poisson.phc.dm.unipi.it/~persona">Persona 5</a> dal 2017</li>
<li><a href="https://poisson.phc.dm.unipi.it/~persona">Persona 3</a> dal 2016</li>
<li><a href="https://poisson.phc.dm.unipi.it/~persona">Persona 4</a> dal 2015</li> <li><a href="https://poisson.phc.dm.unipi.it/~persona">Persona 4</a> dal 2015</li>
<li><a href="https://poisson.phc.dm.unipi.it/~persona">Persona 6</a> dal 2014</li> <li><a href="https://poisson.phc.dm.unipi.it/~persona">Persona 6</a> dal 2014</li>
<li><a href="https://poisson.phc.dm.unipi.it/~persona">Persona 2</a> dal 2013</li>
<li><a href="https://poisson.phc.dm.unipi.it/~persona">Persona 7</a> dal 2012</li> <li><a href="https://poisson.phc.dm.unipi.it/~persona">Persona 7</a> dal 2012</li>
<li><a href="https://poisson.phc.dm.unipi.it/~persona">Persona 1</a> dal 2018</li>
<li><a href="https://poisson.phc.dm.unipi.it/~persona">Persona 3</a> dal 2016</li>
<li><a href="https://poisson.phc.dm.unipi.it/~persona">Persona 5</a> dal 2017</li>
</ul> </ul>
<!--
<div class="news-list"> <h3>Vuoi diventare un macchinista?</h3>
<article>
<h3>Notizie 1</h3> <p>
<div class="description"> Ti interessa (o interesserebbe) smanettare al PC, montare e smontare i cose? Stai spesso in dipartimento? Allora puoi venire a parlare con noi per diventare un apprendista macchinista per poi entrare nel PHC.
Lorem ipsum dolor sit amet consectetur adipisicing elit. Amet quis eligendi aut consequatur quasi </p>
veniam animi ducimus enim consectetur a.
</div> &nbsp;
</article>
<article>
<h3>Notizie 2</h3>
<div class="description">
Lorem ipsum dolor sit amet consectetur adipisicing elit. Amet quis eligendi aut consequatur quasi
veniam animi ducimus enim consectetur a.
</div>
</article>
<article>
<h3>Notizie 3</h3>
<div class="description">
Lorem ipsum dolor sit amet consectetur adipisicing elit. Amet quis eligendi aut consequatur quasi
veniam animi ducimus enim consectetur a.
</div>
</article>
</div> -->
{{end}} {{end}}

@ -3,24 +3,28 @@
{{define "title"}}PHC &bull; Accedi &bull; phc.dm.xxxxx.xx{{end}} {{define "title"}}PHC &bull; Accedi &bull; phc.dm.xxxxx.xx{{end}}
{{define "body"}} {{define "body"}}
<h1>Login</h1>
<p>Inserisci le tue credenziali di Poisson per accedere</p>
<form action="/login" method="post"> <form action="/login" method="post">
<h2>
<img class="icons8" src="https://img.icons8.com/ios-filled/50/000000/lock.png"/>
Accedi
</h2>
<p>
Inserisci le tue credenziali di Poisson per accedere, per il recupero credenziali vieni direttamente al PHC per parlarne con calma o inviaci una mail.
</p>
<div class="row"> <div class="row">
<label for="login-username">Username:</label> <label for="login-username">Username:</label>
<input type="text" name="username" id="login-username"> <input type="text" name="username" id="login-username">
</div> </div>
<div class="row"> <div class="row">
<label for="login-password">Password:</label> <label for="login-password">Password:</label>
<input type="text" name="password" id="login-password"> <input type="password" name="password" id="login-password">
</div> </div>
<input type="submit" value="Accedi"> <input type="submit" value="Accedi">
</form> </form>
<p title="Vieni al phc per parlarne con calma o inviaci una mail">
🛈 Recupero credenziali
</p>
{{end}} {{end}}

@ -3,28 +3,262 @@
{{define "title"}}PHC &bull; Utenti &bull; phc.dm.xxxxx.xx{{end}} {{define "title"}}PHC &bull; Utenti &bull; phc.dm.xxxxx.xx{{end}}
{{define "body"}} {{define "body"}}
<h1>Utenti</h1>
&nbsp;
<ul>
<li>Persona 1</li> <h2>
<li>Persona 2</li> <img class="icons8" src="https://img.icons8.com/ios-filled/50/000000/find-user-male.png" />
<li>Persona 3</li> Utenti
<li>Persona 4</li> </h2>
<li>Persona 5</li>
<li>Persona 6</li> <p>
<li>Persona 7</li> Questa è la lista di tutti gli utenti con un account su Poisson. Scrivi nome, cognome o username di un utente per filtrare la lista in tempo reale.
<li>Persona 8</li> </p>
<li>Persona 9</li>
<li>Persona 10</li> <div class="search">
<li>Persona 11</li> <input type="text" id="search-field" placeholder="Cerca...">
<li>Persona 12</li> <img class="icons8" src="https://img.icons8.com/ios-filled/50/000000/search.png"/>
<li>Persona 13</li> </div>
<li>Persona 14</li>
<li>Persona 15</li> <div class="user-list">
<li>Persona 16</li> <div class="user">
<li>Persona 17</li> <div class="contact">
<li>Persona 18</li> <h3 class="fullname">Persona 1</h3>
<li>Persona 19</li> <h4 class="username">persona1</h4>
<li>Persona 20</li> </div>
</ul> <div class="links">
<a href="#">
<img class="icons8" src="https://img.icons8.com/ios-filled/50/000000/web.png"/>
</a>
<a href="#">
<img class="icons8" src="https://img.icons8.com/ios-filled/50/000000/git.png" />
</a>
</div>
</div>
<div class="user">
<div class="contact">
<h3 class="fullname">Persona 2</h3>
<h4 class="username">persona2</h4>
</div>
<div class="links">
<a href="#">
<img class="icons8" src="https://img.icons8.com/ios-filled/50/000000/web.png"/>
</a>
<a href="#">
<img class="icons8" src="https://img.icons8.com/ios-filled/50/000000/git.png" />
</a>
</div>
</div>
<div class="user">
<div class="contact">
<h3 class="fullname">Persona 3</h3>
<h4 class="username">persona3</h4>
</div>
<div class="links">
<a href="#">
<img class="icons8" src="https://img.icons8.com/ios-filled/50/000000/web.png"/>
</a>
<a href="#">
<img class="icons8" src="https://img.icons8.com/ios-filled/50/000000/git.png" />
</a>
</div>
</div>
<div class="user">
<div class="contact">
<h3 class="fullname">Persona 4</h3>
<h4 class="username">persona4</h4>
</div>
<div class="links">
<a href="#">
<img class="icons8" src="https://img.icons8.com/ios-filled/50/000000/web.png"/>
</a>
<a href="#">
<img class="icons8" src="https://img.icons8.com/ios-filled/50/000000/git.png" />
</a>
</div>
</div>
<div class="user">
<div class="contact">
<h3 class="fullname">Persona 5</h3>
<h4 class="username">persona5</h4>
</div>
<div class="links">
<a href="#">
<img class="icons8" src="https://img.icons8.com/ios-filled/50/000000/web.png"/>
</a>
<a href="#">
<img class="icons8" src="https://img.icons8.com/ios-filled/50/000000/git.png" />
</a>
</div>
</div>
<div class="user">
<div class="contact">
<h3 class="fullname">Persona 6</h3>
<h4 class="username">persona6</h4>
</div>
<div class="links">
<a href="#">
<img class="icons8" src="https://img.icons8.com/ios-filled/50/000000/web.png"/>
</a>
<a href="#">
<img class="icons8" src="https://img.icons8.com/ios-filled/50/000000/git.png" />
</a>
</div>
</div>
<div class="user">
<div class="contact">
<h3 class="fullname">Persona 7</h3>
<h4 class="username">persona7</h4>
</div>
<div class="links">
<a href="#">
<img class="icons8" src="https://img.icons8.com/ios-filled/50/000000/web.png"/>
</a>
<a href="#">
<img class="icons8" src="https://img.icons8.com/ios-filled/50/000000/git.png" />
</a>
</div>
</div>
<div class="user">
<div class="contact">
<h3 class="fullname">Persona 8</h3>
<h4 class="username">persona8</h4>
</div>
<div class="links">
<a href="#">
<img class="icons8" src="https://img.icons8.com/ios-filled/50/000000/web.png"/>
</a>
<a href="#">
<img class="icons8" src="https://img.icons8.com/ios-filled/50/000000/git.png" />
</a>
</div>
</div>
<div class="user">
<div class="contact">
<h3 class="fullname">Persona 9</h3>
<h4 class="username">persona9</h4>
</div>
<div class="links">
<a href="#">
<img class="icons8" src="https://img.icons8.com/ios-filled/50/000000/web.png"/>
</a>
<a href="#">
<img class="icons8" src="https://img.icons8.com/ios-filled/50/000000/git.png" />
</a>
</div>
</div>
<div class="user">
<div class="contact">
<h3 class="fullname">Persona 10</h3>
<h4 class="username">persona10</h4>
</div>
<div class="links">
<a href="#">
<img class="icons8" src="https://img.icons8.com/ios-filled/50/000000/web.png"/>
</a>
<a href="#">
<img class="icons8" src="https://img.icons8.com/ios-filled/50/000000/git.png" />
</a>
</div>
</div>
<div class="user">
<div class="contact">
<h3 class="fullname">Persona 11</h3>
<h4 class="username">persona11</h4>
</div>
<div class="links">
<a href="#">
<img class="icons8" src="https://img.icons8.com/ios-filled/50/000000/web.png"/>
</a>
<a href="#">
<img class="icons8" src="https://img.icons8.com/ios-filled/50/000000/git.png" />
</a>
</div>
</div>
<div class="user">
<div class="contact">
<h3 class="fullname">Persona 12</h3>
<h4 class="username">persona12</h4>
</div>
<div class="links">
<a href="#">
<img class="icons8" src="https://img.icons8.com/ios-filled/50/000000/web.png"/>
</a>
<a href="#">
<img class="icons8" src="https://img.icons8.com/ios-filled/50/000000/git.png" />
</a>
</div>
</div>
<div class="user">
<div class="contact">
<h3 class="fullname">Persona 13</h3>
<h4 class="username">persona13</h4>
</div>
<div class="links">
<a href="#">
<img class="icons8" src="https://img.icons8.com/ios-filled/50/000000/web.png"/>
</a>
<a href="#">
<img class="icons8" src="https://img.icons8.com/ios-filled/50/000000/git.png" />
</a>
</div>
</div>
<div class="user">
<div class="contact">
<h3 class="fullname">Persona 14</h3>
<h4 class="username">persona14</h4>
</div>
<div class="links">
<a href="#">
<img class="icons8" src="https://img.icons8.com/ios-filled/50/000000/web.png"/>
</a>
<a href="#">
<img class="icons8" src="https://img.icons8.com/ios-filled/50/000000/git.png" />
</a>
</div>
</div>
<div class="user">
<div class="contact">
<h3 class="fullname">Persona 15</h3>
<h4 class="username">persona15</h4>
</div>
<div class="links">
<a href="#">
<img class="icons8" src="https://img.icons8.com/ios-filled/50/000000/web.png"/>
</a>
<a href="#">
<img class="icons8" src="https://img.icons8.com/ios-filled/50/000000/git.png" />
</a>
</div>
</div>
<div class="user">
<div class="contact">
<h3 class="fullname">Persona 16</h3>
<h4 class="username">persona16</h4>
</div>
<div class="links">
<a href="#">
<img class="icons8" src="https://img.icons8.com/ios-filled/50/000000/web.png"/>
</a>
<a href="#">
<img class="icons8" src="https://img.icons8.com/ios-filled/50/000000/git.png" />
</a>
</div>
</div>
<div class="user">
<div class="contact">
<h3 class="fullname">Persona 17</h3>
<h4 class="username">persona17</h4>
</div>
<div class="links">
<a href="#">
<img class="icons8" src="https://img.icons8.com/ios-filled/50/000000/web.png"/>
</a>
<a href="#">
<img class="icons8" src="https://img.icons8.com/ios-filled/50/000000/git.png" />
</a>
</div>
</div>
</div>
{{end}} {{end}}
Loading…
Cancel
Save