jaster.xyz/src/components/Header.astro
2025-06-05 21:53:35 +02:00

94 lines
1.8 KiB
Text

---
import { Image } from "astro:assets";
import { Icon } from "astro-icon/components";
import profileImage from "@assets/profile.jpeg";
---
<header>
<nav>
<span>|</span>
<a href="/">Home</a>
<span>|</span>
<a href="/blog">Blog</a>
<span>|</span>
<a href="https://github.com/JasterV">
<Icon size="1.5rem" name="mdi:github" />
</a>
<a href="https://linkedin.com/in/jaster-victor/">
<Icon size="1.5rem" name="mdi:linkedin" />
</a>
<a href="mailto:jaster.victor@gmail.com">
<Icon size="1.5rem" name="mdi:alternate-email" />
</a>
</nav>
<div class="profile">
<a href="/">
<div class="profile-image-wrapper">
<Image src={profileImage} alt="profile image" class="profile-image" />
</div>
</a>
<div>
<h2>Victor Martinez</h2>
<p class="description">/* Be a catalyst for change */</p>
</div>
</div>
</header>
<style>
header {
display: flex;
flex-direction: column;
gap: 1rem;
margin-bottom: 1rem;
}
.description {
color: var(--text-color-light);
font-size: 0.9rem;
padding-top: 0.25rem;
}
nav {
padding-top: 0.3rem;
display: flex;
flex-direction: row;
gap: 0.5rem;
}
.profile {
display: flex;
flex-direction: row;
gap: 1.5rem;
align-items: start;
}
.profile-image-wrapper {
width: 50px;
height: 50px;
border: 2px solid white;
border-radius: 50%;
position: relative;
overflow: hidden;
}
.profile-image-wrapper:hover {
border-color: var(--link-color);
cursor: pointer;
}
.profile-image {
width: 100%;
height: auto;
margin-top: -35%;
}
@media screen and (min-width: 636px) {
header {
flex-direction: row-reverse;
align-items: start;
justify-content: space-between;
gap: 0.25rem;
}
}
</style>