refactor: setup header links

This commit is contained in:
Nicola Zambello 2023-07-16 18:30:33 +02:00
parent f6c6758469
commit 34b320f664
Signed by: nzambello
GPG key ID: 56E4A92C2C1E50BA
5 changed files with 16 additions and 6 deletions

View file

@ -1,6 +1,6 @@
<article class="contact-links"> <article class="contact-links">
<hgroup> <hgroup>
<h2 id="contact">Contact me</h2> <h2 id="contacts">Contact me</h2>
<p>Whether you're willing to work with me, or want a chat with me, feel free to contact me any time! I'll do my best to answer to emails in short time.</p> <p>Whether you're willing to work with me, or want a chat with me, feel free to contact me any time! I'll do my best to answer to emails in short time.</p>
</hgroup> </hgroup>

View file

@ -1,6 +1,6 @@
--- ---
const messages = ['Hi', 'Hello', 'Hey', 'Welcome', 'Ciao', 'Xin chào']; const messages = ['Hi', 'Hello', 'Hey', 'Welcome', 'Ciao', 'Xin chào'];
const emojis = ['🍻', '🧑‍💻', '👋', '🤪', '😎']; const emojis = ['🍻', '🧑‍💻', '👋', '😎'];
const randomMessage = messages[Math.floor(Math.random() * messages.length)]; const randomMessage = messages[Math.floor(Math.random() * messages.length)];
const randomEmoji = emojis[Math.floor(Math.random() * emojis.length)]; const randomEmoji = emojis[Math.floor(Math.random() * emojis.length)];
--- ---

View file

@ -22,9 +22,10 @@ import Logo from './Logo.astro';
</button> </button>
<div class="menu-backdrop"></div> <div class="menu-backdrop"></div>
<ul class="menu"> <ul class="menu">
<HeaderLink href="/#contact">Contacts</HeaderLink> <HeaderLink href="/#tech">Tech</HeaderLink>
<HeaderLink href="https://cal.nzambello.dev">Book a call</HeaderLink> <HeaderLink href="/#opensource">Open-source</HeaderLink>
<HeaderLink href="https://github.com/nzambello" target="_blank" rel="noopener noreferrer">GitHub</HeaderLink> <HeaderLink href="/#plone">Plone</HeaderLink>
<HeaderLink href="/#contacts">Contacts</HeaderLink>
</ul> </ul>
<ul class="theme-button-container"> <ul class="theme-button-container">
<li> <li>

View file

@ -1,5 +1,5 @@
<section> <section>
<h2>My tech stack</h2> <h2 id="tech">My tech stack</h2>
<div class="icons-tech" role="presentation"> <div class="icons-tech" role="presentation">
<figure> <figure>
<svg viewBox="0 0 128 128" aria-label="css" <svg viewBox="0 0 128 128" aria-label="css"

View file

@ -37,6 +37,10 @@
</p> </p>
</hgroup> </hgroup>
<article class="github-banner">
You can find my open source projects and contributions at <a href="https://github.com/nzambello">github.com/nzambello</a>.
</article>
<details> <details>
<summary>What is open source software?</summary> <summary>What is open source software?</summary>
<p>Open source software is software with source code that anyone can inspect, review, modify, and enhance.</p> <p>Open source software is software with source code that anyone can inspect, review, modify, and enhance.</p>
@ -70,5 +74,10 @@
float: left; float: left;
margin: 0 1.5rem 1.5rem 0; margin: 0 1.5rem 1.5rem 0;
} }
.github-banner {
padding-top: 1.5rem;
padding-bottom: 1.5rem;
}
</style> </style>
</section> </section>