{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'); */
:root {
--accent-1: royalblue;
--font-title: 'Share', cursive;
--font-text: 'Ubuntu', sans-serif;
--font-mono: 'Ubuntu Mono', monospace;
}
* {
box-sizing: border-box;
}
html {
position: relative;
}
html,
body {
position: relative;
margin: 0;
min-height: 100vh;
display: flex;
flex-direction: column;
min-height: 100%;
font-family: 'Ubuntu', sans-serif;
font-family: var(--font-text);
font-weight: 300;
font-size: 17px;
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 {
font-family: 'Share', cursive;
margin: 0;
font-family: var(--font-title);
font-weight: 700;
}
a, a:focus, a:visited {
color: #666;
text-decoration: #aaa underline;
padding: 1px 2px;
border-radius: 2px;
p {
margin: 0.5rem 0 0 0;
}
a:hover {
background: var(--accent-1);
color: white;
body > h1, body > h2, body > h3, body > h4, body > p {
margin-left: 1rem;
margin-right: 1rem;
}
body {
max-width: 100%;
width: 50rem;
margin: 0 auto;
padding: 0 0.5rem;
overflow-y: scroll;
}
/* Elements */
nav {
display: flex;
align-items: center;
border-bottom: 1px solid #ddd;
flex-wrap: wrap;
padding: 0.5rem;
border-bottom: 0.5rem solid gray;
}
.hfill {
flex-grow: 1;
.nav-item {
display: flex;
align-items: center;
justify-content: center;
height: 2.5rem;
padding: 0 0.5rem;
font-size: 130%;
font-weight: bold;
}
.vfill {
flex-grow: 1;
nav > * {
border: 2px solid black;
border-right: none;
}
.news-list {
nav > :last-child {
border: 2px solid black;
}
nav a {
text-decoration: none;
}
header {
display: flex;
width: 100%;
justify-content: center;
margin: 2.5rem 0;
}
.news-list > article {
margin: 1rem;
header .logo {
margin-right: 1rem;
}
.nav-item:first-child {
font-size: 25px;
header .title {
display: flex;
flex-direction: column;
justify-content: space-around;
}
.nav-item {
font-family: 'Share', cursive;
font-weight: 700;
header .title h1 {
font-size: 56px;
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 {
background: #f0f0f0;
.service {
flex: 1 1 calc(50% - 1rem);
min-width: 300px;
padding: 1rem 0.75rem;
/* Brutal */
border: 2px solid black;
}
.user-list {
display: flex;
flex-direction: row;
flex-wrap: wrap;
margin: 1rem 2rem;
gap: 0.25rem;
}
.nav-item a, .nav-item a:focus, .nav-item a:visited {
.user {
display: flex;
width: calc(50% - 0.25rem / 2);
align-items: center;
justify-content: center;
justify-content: space-between;
padding: 0 0.75rem;
height: 3.25rem;
padding: 0.125rem 0.25rem;
color: black;
border: 2px solid;
}
.user h4 {
font-size: 90%;
line-height: 1;
font-family: var(--font-mono);
}
.user a {
text-decoration: none;
}
body > div:last-of-type {
margin-bottom: 20rem;
.user a:hover img {
opacity: 0.6;
}
.user img {
margin: 0.5rem;
}
footer {
position: absolute;
bottom: 0;
left: 0;
width: 100%;
height: 3rem;
right: 0;
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: center;
border-top: 1px solid #ddd;
border-top: 0.5rem solid gray;
}
.footer-item:not(:last-child)::after {
content: '•';
margin: 0 1rem;
.footer-item {
padding: 0.5rem;
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%;
overflow-x: hidden;
flex-grow: 1;
height: 1.75rem;
padding: 0 0.5rem;
border: none;
border-right: 2px solid black;
}
.news-list {
flex-direction: column;
.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 "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>
<dt><a href="/blog">Blog & Notizie</a></dt>
<dd>
Blog del PHC
</dd>
<p>
Lorem ipsum dolor sit, amet consectetur adipisicing elit. Asperiores quas nostrum suscipit nulla. Reiciendis quos et
vel animi amet facere dignissimos, nemo, repudiandae suscipit esse quod obcaecati iure soluta cumque?
</p>
<dt><a href="/blog/categories/guide">Guide</a></dt>
<dd>
Nel corso del tempo abbiamo scritto alcune guide utili per utilizzare Poisson o Linux in generale.
</dd>
<hr>
<dt><a href="/utenti">Utenti</a></dt>
<dd>
Lista degli utenti di Poisson e link a relativi siti.
</dd>
<h2>
<img class="icons8" src="https://img.icons8.com/ios-filled/50/000000/service.png"/>
Servizi
</h2>
<dt><a href="https://git.phc.dm.unipi.it">Git</a></dt>
<dd>
<p>
Questi sono tutte le risorse e i servizi offerti dal PHC.
</p>
<div class="service-list">
<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.
</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>
<dd>
Forum in stile Disocurse per parlare di Matematica, Informatica e argomenti accademici in generale.
</dd>
</dl>
<hr>
<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>
<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 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 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>
<!--
<div class="news-list">
<article>
<h3>Notizie 1</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 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> -->
<h3>Vuoi diventare un macchinista?</h3>
<p>
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.
</p>
&nbsp;
{{end}}

@ -3,24 +3,28 @@
{{define "title"}}PHC &bull; Accedi &bull; phc.dm.xxxxx.xx{{end}}
{{define "body"}}
<h1>Login</h1>
<p>Inserisci le tue credenziali di Poisson per accedere</p>
<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">
<label for="login-username">Username:</label>
<input type="text" name="username" id="login-username">
</div>
<div class="row">
<label for="login-password">Password:</label>
<input type="text" name="password" id="login-password">
<input type="password" name="password" id="login-password">
</div>
<input type="submit" value="Accedi">
</form>
<p title="Vieni al phc per parlarne con calma o inviaci una mail">
🛈 Recupero credenziali
</p>
{{end}}

@ -3,28 +3,262 @@
{{define "title"}}PHC &bull; Utenti &bull; phc.dm.xxxxx.xx{{end}}
{{define "body"}}
<h1>Utenti</h1>
<ul>
<li>Persona 1</li>
<li>Persona 2</li>
<li>Persona 3</li>
<li>Persona 4</li>
<li>Persona 5</li>
<li>Persona 6</li>
<li>Persona 7</li>
<li>Persona 8</li>
<li>Persona 9</li>
<li>Persona 10</li>
<li>Persona 11</li>
<li>Persona 12</li>
<li>Persona 13</li>
<li>Persona 14</li>
<li>Persona 15</li>
<li>Persona 16</li>
<li>Persona 17</li>
<li>Persona 18</li>
<li>Persona 19</li>
<li>Persona 20</li>
</ul>
&nbsp;
<h2>
<img class="icons8" src="https://img.icons8.com/ios-filled/50/000000/find-user-male.png" />
Utenti
</h2>
<p>
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.
</p>
<div class="search">
<input type="text" id="search-field" placeholder="Cerca...">
<img class="icons8" src="https://img.icons8.com/ios-filled/50/000000/search.png"/>
</div>
<div class="user-list">
<div class="user">
<div class="contact">
<h3 class="fullname">Persona 1</h3>
<h4 class="username">persona1</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 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}}
Loading…
Cancel
Save