Merge: Aggiunte le cose che mi ero dimenticato di pullare

main
Antonio De Lucreziis 2 years ago
commit b9ac8a61f7

4
.gitignore vendored

@ -1,3 +1,5 @@
# Environment files
.env
# Miscellaneous
tags

@ -28,7 +28,6 @@
box-sizing: border-box;
}
html, body {
margin: 0;
}
@ -59,7 +58,7 @@ body {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
@ -215,7 +214,6 @@ nav .nav-main .nav-item.dropdown .nav-items {
display: none;
background: var(--bg-dark);
border-radius: 4px;
border: 1px solid var(--bg-darker-2);
@ -359,4 +357,4 @@ a:hover {
.page-home .nav-logo {
display: none;
}
}

@ -35,6 +35,14 @@ func main() {
}
})
r.Get("/link", func(w http.ResponseWriter, r *http.Request) {
err := renderer.Render(w, "link.html", util.H{})
if err != nil {
http.Error(w, err.Error(), http.StatusInternalServerError)
return
}
})
r.Get("/utenti", func(w http.ResponseWriter, r *http.Request) {
err := renderer.Render(w, "utenti.html", util.H{})
if err != nil {

@ -32,11 +32,11 @@
document.addEventListener('DOMContentLoaded', () => {
const $toggle = document.querySelector('#toggle-dark-mode');
const $toggleIcon = document.querySelector('#toggle-dark-mode i');
const $toggleIcon = document.querySelector('#toggle-dark-mode i');
// Loads prefered dark from from localStorage or defaults to media query.
let prefersDarkMode = localStorage.getItem('theme') !== undefined ? localStorage.getItem('theme') === 'dark' : window.matchMedia('(prefers-color-scheme: dark)').matches;
function storePrefersDarkMode(mode) {
prefersDarkMode = mode;
localStorage.setItem('theme', mode ? 'dark' : 'light');
@ -73,9 +73,6 @@
<div class="nav-item">
<a class="nav-element" href="/utenti">Utenti</a>
</div>
<div class="nav-item">
<a class="nav-element" href="/news">News</a>
</div>
<div class="nav-item dropdown">
<div class="name">
<a class="nav-element" href="/progetti">
@ -94,11 +91,31 @@
<div class="nav-item">
<a class="nav-element" href="{{ .Config.ForumUrl }}">Zulip</a>
</div>
<div class="nav-item">
<a class="nav-element" href="/seminari">Seminari</a>
</div>
</div>
</div>
<div class="nav-item dropdown">
<div class="name">
<a class="nav-element" href="/risorse">
<div class="icon">
<i class="fas fa-chevron-down"></i>
</div>
<div class="label">
Risorse
</div>
</a>
</div>
<div class="nav-items">
<div class="nav-item">
<a class="nav-element" href="/news">News</a>
</div>
<div class="nav-item">
<a class="nav-element" href="/guide">Guide</a>
</div>
<div class="nav-item">
<a class="nav-element" href="/seminari">Seminari</a>
<a class="nav-element" href="/link">Link Utili</a>
</div>
</div>
</div>
@ -141,4 +158,4 @@
</body>
</html>
{{end}}
{{end}}

@ -0,0 +1,26 @@
{{template "base" .}}
{{define "title"}}PHC &bull; Link Utili &bull; phc.dm.xxxxx.xx{{end}}
{{define "body"}}
<section>
<h2>
<i class="fas fa-link"></i>
Link Utili
</h2>
<h3>
Questo è un elenco di alcuni indirizzi potenzialmente utili:
</h3>
<a href="https://linktr.ee/aulastudenti">Link dell'Aula Studenti</a>
<a href="http://www.dm.unipi.it/webnew/it/cds/home-cds">Dipartimento di Matematica</a>
<a href="http://detexify.kirelabs.org/classify.html">Non trovi un simbolo in Latex?</a>
<a href="https://github.com/SuzanneSoy/WiTeX">Wikipedia + Latex</a>
</section>
<script>
</script>
{{end}}
Loading…
Cancel
Save