new colors

This commit is contained in:
Claudio Maggioni 2024-01-08 12:04:54 +01:00
parent 3c7af26650
commit 3293cd49e5
12 changed files with 146 additions and 92 deletions

View File

@ -32,6 +32,6 @@
<script src="https://unpkg.com/konami@1.6.3/konami.js"></script> <script src="https://unpkg.com/konami@1.6.3/konami.js"></script>
<script> <script>
const easterEgg = new Konami(() => window.location.href = const easterEgg = new Konami(() => window.location.href =
"https://www.youtube.com/watch?v=x9l6eQbKcMw"); "https://www.youtube.com/watch?v=uUTDCOBI1ZI");
</script> </script>
{% comment %} vim: set ts=2 sw=2 et tw=80: {% endcomment %} {% comment %} vim: set ts=2 sw=2 et tw=80: {% endcomment %}

View File

@ -80,8 +80,11 @@ categories: linux
</p> </p>
<p> <p>
{% highlight bash %} # make ARCH=i386 menuconfig # make ARCH=i386 # make {% highlight bash %}
ARCH=i386 install {% endhighlight %} make ARCH=i386 menuconfig
make ARCH=i386
make ARCH=i386 install
{% endhighlight %}
</p> </p>
<p> <p>

View File

@ -44,10 +44,10 @@ categories: linux
</p> </p>
<p> <p>
{% highlight bash %} alias rm=/bin/rmAlias alias sudo='sudo ' # this enables {% highlight bash %}
aliases in sudo, see alias rm=/bin/rmAlias
http://askubuntu.com/questions/22037/aliases-not-available-when-using-sudo {% alias sudo='sudo ' # this enables aliases in sudo, see http://askubuntu.com/q/22037/
endhighlight %} {% endhighlight %}
</p> </p>
<p> <p>
@ -62,18 +62,45 @@ categories: linux
</p> </p>
<p> <p>
{% highlight bash %} #! /bin/bash # Rickroll whoever tries to desert this {% highlight bash %}
system, even root. # To achieve this, set the appropriate aliases even in #!/bin/bash # Rickroll whoever tries to desert this system, even root.
/etc/profile and similars. # Video played when rickrolling # To achieve this, set the appropriate aliases even in /etc/profile and similars.
ROLLVIDEO=/opt/anti-rm/serious-video.mkv # it's just Never Gonna Give You Up
on my system, but be free to customize this! rickroll(){ echo "Never gonna # Video played when rickrolling: it's just Never Gonna Give You Up on my system,
desert this system..." xdg-open $ROLLVIDEO 2>&1 & exit 0 } while getopts # but be free to customize this!
":rf-" opt; do # Prevent '--force' to be detected as -r and -f if [ "$opt" = ROLLVIDEO=/opt/anti-rm/serious-video.mkv
"-" ]; then OPTIND=$OPTIND+1 continue fi if [ "$opt" = "r" ] || [ "$opt" = "f"
]; then if [ "$tmp" = "" ]; then tmp=$opt continue elif [ "$tmp" != "$opt" ]; rickroll() {
then rickroll fi fi done for var in "$@" do if [[ "$var" = "--force" && "$tmp" echo "Never gonna desert this system..."
= "r" ]]; then rickroll fi done # If it's safe, just run rm /bin/rm "$@" exit xdg-open $ROLLVIDEO 2>&1 & exit 0
$? {% endhighlight %} }
while getopts ":rf-" opt; do
# Prevent '--force' to be detected as -r and -f
if [ "$opt" = "-" ]; then
OPTIND=$OPTIND+1
continue
fi
if [ "$opt" = "r" ] || [ "$opt" = "f" ]; then
if [ "$tmp" = "" ]; then
tmp=$opt
continue
elif [ "$tmp" != "$opt" ]; then
rickroll
fi
fi
done
for var in "$@" do
if [[ "$var" = "--force" && "$tmp" = "r" ]]; then
rickroll
fi
done
# If it's safe, just run rm
/bin/rm "$@"
exit $?
{% endhighlight %}
</p> </p>
<p> <p>
@ -87,7 +114,7 @@ categories: linux
<p>Let's give execution permissions to the script we have just created:</p> <p>Let's give execution permissions to the script we have just created:</p>
<p>{% highlight bash %} # chmod +x /bin/rmAlias {% endhighlight %}</p> <p>{% highlight bash %}chmod +x /bin/rmAlias{% endhighlight %}</p>
<p> <p>
Restart your shell, and enjoy. If you want to test safely, I suggest trying to Restart your shell, and enjoy. If you want to test safely, I suggest trying to

View File

@ -29,7 +29,6 @@ html {
font-family: $base-font-family; font-family: $base-font-family;
color: $text-color; color: $text-color;
background-color: $background-color; background-color: $background-color;
-webkit-text-stroke: 0.25px #888;
} }
/* Images */ /* Images */
@ -63,9 +62,8 @@ h6 {
/* Links */ /* Links */
a { a {
color: $brand-color; color: $brand-color;
background: $nav-bg; background: $background-color;
text-decoration: none; text-decoration: none;
-webkit-text-stroke: 0.25px #1B1256;
font-weight: bold; font-weight: bold;
&:visited { &:visited {
@ -80,8 +78,8 @@ a {
* Blockquotes * Blockquotes
*/ */
blockquote { blockquote {
color: $nav-bg; color: white;
background: $nav-col; background: $top-col;
border-left: 4px solid $brand-color; border-left: 4px solid $brand-color;
letter-spacing: -1px; letter-spacing: -1px;
font-style: italic; font-style: italic;
@ -118,11 +116,11 @@ pre {
pre, pre,
code { code {
font-size: 0.95rem; font-size: 0.95rem;
background: $nav-col; background: $background-color;
} }
a code { a code {
background: $nav-bg; background: $background-color;
} }
/* Disable borders between line numbers and code when /* Disable borders between line numbers and code when

View File

@ -1,7 +1,7 @@
/* vim: set ts=2 sw=2 et tw=80: */ /* vim: set ts=2 sw=2 et tw=80: */
body { body {
background-color: $background-color; background-color: $background-color;
font-family: "Bombardier", sans-serif; font-family: "Radio Canada", sans-serif;
display: flex; display: flex;
min-height: 100vh; min-height: 100vh;
flex-direction: column; flex-direction: column;
@ -22,9 +22,8 @@ ul.navbar-list {
} }
.header { .header {
border-bottom: $border; background: $top-col;
background: $nav-bg; color: $top-col;
color: $nav-col;
.head.navbar { .head.navbar {
display: flex; display: flex;
@ -42,6 +41,7 @@ ul.navbar-list {
padding: 0; padding: 0;
a { a {
background: $top-col;
color: white; color: white;
} }
} }
@ -54,6 +54,8 @@ ul.navbar-list {
text-transform: uppercase; text-transform: uppercase;
display: inline-block; display: inline-block;
padding: 0.25rem 0.5rem; padding: 0.25rem 0.5rem;
background: $top-col;
color: white;
} }
a:first-child { a:first-child {
@ -69,33 +71,48 @@ ul.navbar-list {
.homequote { .homequote {
display: flex; display: flex;
background: $nav-bg; color: $text-color;
color: $nav-col;
align-items: stretch; align-items: stretch;
margin-bottom: 1rem; margin-bottom: 1rem;
figure { figure {
margin: 0; margin: 0;
flex: 0; flex: 0;
display: flex; background-image: url(/images/claudio.jpg);
align-items: center; background-size: cover;
min-width: 300px; background-position: center;
background: black;
} }
@include media-query($on-palm) { figure .blur {
figure { width: 100%;
display: none; height: 100%;
} backdrop-filter: blur(10px) contrast(0.7) brightness(1.3);
display: flex;
align-items: center;
justify-content: center;
min-width: 300px;
} }
.quote { .quote {
border-left: 3px dotted $brand-color;
flex: 1; flex: 1;
padding: 1rem 1.5rem; padding: 1rem 1.5rem;
} }
} }
@include media-query($on-laptop) {
.homequote {
flex-direction: column;
figure img {
filter: none;
object-fit: cover;
height: 300px;
width: 300px;
object-position: center top;
}
}
}
.portfolio { .portfolio {
position: relative; position: relative;
padding-top: 2rem; padding-top: 2rem;
@ -147,8 +164,8 @@ ul.navbar-list {
text-align: right; text-align: right;
.date { .date {
background: $nav-bg; background: $top-col;
color: $nav-col; color: white;
} }
.category, .category,
@ -156,8 +173,8 @@ ul.navbar-list {
.repo, .repo,
.languages { .languages {
background: white; background: white;
border-left: 3px solid $nav-bg; border-left: 3px solid white;
border-bottom: 3px solid $nav-bg; border-bottom: 3px solid white;
} }
.authors { .authors {
@ -171,19 +188,22 @@ ul.navbar-list {
} }
.description { .description {
border: 3px solid $nav-bg; border: $border;
flex-grow: 1; flex-grow: 1;
.images { .images {
background: $nav-bg; background: $brand-color;
padding: 0.5rem; padding: 0.5rem;
margin: -0.5rem -0.5rem 0.5rem -0.5rem; margin: -0.5rem -0.5rem 0.5rem -0.5rem;
text-align: center; text-align: center;
a {
background: none;
}
img { img {
width: 175px; width: 175px;
margin: 0.25rem; margin: 0.25rem;
border: 3px solid $nav-col;
} }
} }
} }
@ -213,9 +233,7 @@ ul.post-list li:first-child {
footer { footer {
justify-content: space-between; justify-content: space-between;
border-top: $border; background: $brand-color;
background: $nav-bg;
color: $nav-col;
.container { .container {
display: flex; display: flex;
@ -224,6 +242,13 @@ footer {
flex: 1; flex: 1;
font-size: 1rem; font-size: 1rem;
text-align: right; text-align: right;
background: $brand-color;
color: white;
a {
background: $brand-color;
color: white;
}
} }
@include media-query($on-palm) { @include media-query($on-palm) {
@ -242,8 +267,8 @@ footer {
.icon { .icon {
display: inline-table; display: inline-table;
background: $nav-col; color: $brand-color;
color: $nav-bg; background: white;
width: 2.5em; width: 2.5em;
height: 2.5em; height: 2.5em;
text-align: center; text-align: center;

View File

@ -1,8 +1,8 @@
/* vim: set ts=2 sw=2 et tw=80: */ /* vim: set ts=2 sw=2 et tw=80: */
@font-face { @font-face {
font-family: "Bombardier"; font-family: "Radio Canada";
font-style: normal; font-style: regular;
font-weight: 400; font-weight: 400;
src: url(/webfonts/bombardier.ttf) format("truetype"); src: url(/webfonts/RadioCanada-VariableFont_wdth,wght.ttf) format("truetype");
} }

View File

@ -12,11 +12,11 @@ $base-line-height: 1.5;
$spacing-unit: 30px; $spacing-unit: 30px;
$nav-bg: #222; $text-color: #222;
$nav-col: #eee; $background-color: #fafafa;
$text-color: $nav-bg;
$background-color: $nav-col; $top-col: #018e71;
$brand-color: #D3B5F0; $brand-color: #4f47cc;
$border: 3px solid $brand-color; $border: 3px solid $brand-color;
// Width of the content area // Width of the content area

Binary file not shown.

Before

Width:  |  Height:  |  Size: 257 KiB

After

Width:  |  Height:  |  Size: 1.5 MiB

View File

@ -4,18 +4,40 @@ layout: main
<div class="homequote"> <div class="homequote">
<figure> <figure>
<img <div class="blur">
width="300" <img
height="460" width="300"
src="images/claudio.jpg" height="460"
alt="Me eating src="images/claudio.jpg"
raclette" alt="Me"
/> />
</div>
</figure> </figure>
<div class="quote"> <div class="quote">
<p> <p>
I once read a Linus Torvalds quote comparing computer science to physics, Welcome to my website! My name is Claudio, and here is where I upload all
stating that the stuff I make with computers.
</p>
<p>
I am an <a href="https://www.usi.ch/">USI</a> Informatics student
in the Master of Software and Data Engineering. Over on <a
href="https://git.maggioni.xyz/maggicl">Gitea</a> you will find
materials and assignments I had to solve during the years should you be a
fellow student (always glad to lend a hand!).
</p>
<p>
As you can see I am an archer in my free time. Shout out to the folks at
<a href="https://atal-arco.ch/">ATAL</a>, where I was able to snap that
picture (by the way I got <em>very</em> lucky there, don't mind the other
impacts please).
</p>
<p>
I don't have much else to say, but I would like to leave you with this
quote from Linus Torvalds which still rings true to me after many years
of working with computers:
</p> </p>
<blockquote> <blockquote>
@ -24,27 +46,6 @@ layout: main
up, in computer science you create the world.</cite up, in computer science you create the world.</cite
> >
</blockquote> </blockquote>
<p>
Hello, my name is Claudio Maggioni, and I have been a passionate "world
builder" for 7 years.
</p>
<p>
Since when I began high school, I meddled with software development,
developing a creative mindset and an interest in problem solving. Since
then, I have always been at least in part a self-taught student of
computer science, satisfying my curiosity for topics that were not covered
in general school curriculum.
</p>
<p>
My expertise includes web development, mobile application development of
multiplatform applications, a passion for functional programming, and
DevOps skills for Linux systems.
</p>
<p>
Reaching the end of my undergraduate studies in computer science, I am
currently seeking job opportunities to follow at the end of my studies,
eager to apply my skills in a corporate setting.
</p>
</div> </div>
</div> </div>
<div class="home"> <div class="home">

Binary file not shown.

Binary file not shown.

Binary file not shown.