small fixes

This commit is contained in:
Claudio Maggioni 2024-01-10 14:31:30 +01:00
parent 3fcebe8bad
commit eabc5ba217
8 changed files with 51 additions and 17 deletions

View File

@ -19,9 +19,7 @@
></a> ></a>
</div> </div>
<div class="author"> <div class="author">
<i class="fas fa-cc" aria-hidden="true"></i> Last updated on {{ site.time | date: '%Y-%m-%d' }}<br />
by Claudio Maggioni (last updated on {{ site.time | date: '%Y-%m-%d'
}})<br />
Content under Content under
<a href="https://creativecommons.org/licenses/by-nc-sa/4.0/"> <a href="https://creativecommons.org/licenses/by-nc-sa/4.0/">
CC BY-NC-SA 4.0</a CC BY-NC-SA 4.0</a

View File

@ -2,7 +2,6 @@
{% for my_page in site.pages %} {% if my_page.title %} {% for my_page in site.pages %} {% if my_page.title %}
<a href="{{ my_page.url }}">{{ my_page.title }}</a> <a href="{{ my_page.url }}">{{ my_page.title }}</a>
{% endif %} {% endfor %} {% endif %} {% endfor %}
<a href="/feed.xml">RSS</a>
<a href="/cv.pdf?v={{ site.time | date: '%s' }}">CV</a> <a href="/cv.pdf?v={{ site.time | date: '%s' }}">CV</a>
<a href="https://git.maggioni.xyz">Git</a> <a href="https://git.maggioni.xyz">Git</a>
<a href="https://cloud.maggioni.xyz">Cloud</a> <a href="https://cloud.maggioni.xyz">Cloud</a>

View File

@ -5,7 +5,7 @@ layout: main
<div class="portfolio"> <div class="portfolio">
<section class="port-elem"> <section class="port-elem">
<div class="side"> <div class="side">
<div class="date">{{ page.date-start }} to {{ page.date-end }}</div> <div class="date">{{ page.date-start }} {{ page.date-end }}</div>
<div class="category {{ page.category }}"> <div class="category {{ page.category }}">
{% case page.category %} {% when 'usi' %}University project {% when {% case page.category %} {% when 'usi' %}University project {% when
'high-school' %}High school project {% when 'internship' %}Internship {% 'high-school' %}High school project {% when 'internship' %}Internship {%

View File

@ -4,7 +4,7 @@ title: Vimtok
date-start: 2019-11 date-start: 2019-11
date-end: 2019-12 date-end: 2019-12
category: usi category: usi
languages: ExpressJS (Node.js) + Mostly vanilla JS languages: ExpressJS (Node.js) + JS
authors: authors:
- Mejrima Smajilbasic - Mejrima Smajilbasic
- Renato Iannace - Renato Iannace

View File

@ -27,7 +27,7 @@ categories: linux
entire entire
<code>/home</code> directory or, even worse, <code>/</code>. Since I learned <code>/home</code> directory or, even worse, <code>/</code>. Since I learned
how to use the <code>alias</code> built-in, I wanted a way to prevent that how to use the <code>alias</code> built-in, I wanted a way to prevent that
random people tinkering with my laptop (that I may forgot to lock) could random people tinkering with my laptop (that I may forget to lock) could
delete potentially important stuff, just for fun or boredom. delete potentially important stuff, just for fun or boredom.
</p> </p>
@ -46,7 +46,9 @@ categories: linux
<p> <p>
{% highlight bash %} {% highlight bash %}
alias rm=/bin/rmAlias alias rm=/bin/rmAlias
alias sudo='sudo ' # this enables aliases in sudo, see http://askubuntu.com/q/22037/
# this enables aliases in sudo, see http://askubuntu.com/q/22037/
alias sudo='sudo '
{% endhighlight %} {% endhighlight %}
</p> </p>
@ -63,8 +65,9 @@ alias sudo='sudo ' # this enables aliases in sudo, see http://askubuntu.com/q/22
<p> <p>
{% highlight bash %} {% highlight bash %}
#!/bin/bash # Rickroll whoever tries to desert this system, even root. #!/bin/bash
# To achieve this, set the appropriate aliases even in /etc/profile and similars. # Rickroll whoever tries to desert this system, even root.
# To achieve this, set the appropriate aliases in /etc/profile and others.
# Video played when rickrolling: it's just Never Gonna Give You Up on my system, # Video played when rickrolling: it's just Never Gonna Give You Up on my system,
# but be free to customize this! # but be free to customize this!

View File

@ -129,10 +129,10 @@ ul.navbar-list {
.line-end, .line-end,
.line-end-bottom { .line-end-bottom {
position: absolute; position: absolute;
left: 0.75rem; left: 0.675rem;
width: 1rem; width: 1rem;
height: 1rem; height: 1rem;
border-radius: 0.25rem; border-radius: 1rem;
background: #aaa; background: #aaa;
z-index: 200; z-index: 200;
} }
@ -173,16 +173,17 @@ ul.navbar-list {
.repo, .repo,
.languages { .languages {
background: white; background: white;
border-left: 3px solid white; border: 3px solid #7cafe4;
border-bottom: 3px solid white; border-top: 0px;
} }
.authors { .authors {
text-align: left; text-align: left;
ul { ul {
margin-left: 4rem; margin: 0 0 0 1rem;
list-style-type: square; list-style-type: square;
font-size: 0.8em;
} }
} }
} }
@ -190,6 +191,7 @@ ul.navbar-list {
.description { .description {
border: $border; border: $border;
flex-grow: 1; flex-grow: 1;
background: $background-color;
.images { .images {
background: $brand-color; background: $brand-color;
@ -210,6 +212,29 @@ ul.navbar-list {
} }
} }
@include media-query($on-laptop) {
.portfolio {
padding-bottom: 1rem;
.port-elem {
flex-direction: column;
.side {
width: 100%;
text-align: center;
.authors {
text-align: center;
ul {
list-style-type: none;
}
}
}
}
}
}
@media (max-width: 700px) { @media (max-width: 700px) {
.navbar-list .navbar-item { .navbar-list .navbar-item {
width: calc(100% - 2em); width: calc(100% - 2em);
@ -283,10 +308,16 @@ footer {
.container { .container {
padding-top: 1rem; padding-top: 1rem;
padding-bottom: 1rem; padding-bottom: 1rem;
max-width: 1280px; max-width: min(1280px, 100%);
margin: 0 auto; margin: 0 auto;
} }
@media screen and (max-width: 1280px) {
main.container {
margin: 0 0;
}
}
/* Utility class for centering block elements */ /* Utility class for centering block elements */
.block-center { .block-center {
display: block; display: block;

View File

@ -5,6 +5,9 @@ permalink: /blog/
--- ---
<div class="home"> <div class="home">
<p style="margin-top: -2rem; margin-bottom: 2rem">
<a href="/feed.xml">RSS feed</a>
</p>
<ul class="post-list"> <ul class="post-list">
{% for post in site.posts %} {% for post in site.posts %}
<li> <li>

View File

@ -13,7 +13,7 @@ permalink: /portfolio/
{% for p in ps reversed %} {% for p in ps reversed %}
<section class="port-elem"> <section class="port-elem">
<div class="side"> <div class="side">
<div class="date">{{ p.date-start }} to {{ p.date-end }}</div> <div class="date">{{ p.date-start }} {{ p.date-end }}</div>
<div class="category {{ p.category }}"> <div class="category {{ p.category }}">
{% case p.category %} {% when 'usi' %}University project {% when {% case p.category %} {% when 'usi' %}University project {% when
'high-school' %}High school project {% when 'internship' %}Internship {% 'high-school' %}High school project {% when 'internship' %}Internship {%