136 lines
2.9 KiB
Plaintext
136 lines
2.9 KiB
Plaintext
---
|
|
import {age} from "../../utils/getAge"
|
|
import {study} from "../../utils/getCurrentStudy"
|
|
|
|
import hero_img from "../../assets/hero.png"
|
|
|
|
import Button from "./Button.astro"
|
|
import EmailButton from "./EmailButton.astro"
|
|
|
|
const hero_img_src = `url(${hero_img.src})`;
|
|
|
|
---
|
|
|
|
<div id="container">
|
|
<div class="titleContainer">
|
|
<h1 class="main-title">Valentijn van der Jagt</h1>
|
|
<h3 class="sub-title">{age} Jaar - {study?.label}</h3>
|
|
</div>
|
|
|
|
<div class="buttonContainer">
|
|
<Button icon="mdi:git" label="Gitea" href="https://git.herpiederpiee.nl/valentijn?tab=repositories"/>
|
|
<Button icon="mdi:linkedin" label="LinkedIn" href="https://nl.linkedin.com/in/valentijn-van-der-jagt"/>
|
|
<EmailButton icon="mdi:email-outline" label="E-mail" />
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
<style define:vars={{hero_img_src}}>
|
|
|
|
|
|
|
|
#container {
|
|
font-family: Inter, Roboto, 'Helvetica Neue', 'Arial Nova', 'Nimbus Sans', Arial, sans-serif;
|
|
position: relative;
|
|
min-height: clamp(420px, 58vh, 680px);
|
|
margin: 10px;
|
|
padding: clamp(1.5rem, 3vw, 2.5rem);
|
|
background: radial-gradient(circle at 15% 18%, rgba(255, 246, 228, 0.32), transparent 24%),
|
|
linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(10, 10, 10, 0.24)),
|
|
var(--hero_img_src);
|
|
background-size: cover;
|
|
background-position: center;
|
|
border-radius: 20px;
|
|
box-shadow: 0 24px 60px rgba(16, 14, 12, 0.18);
|
|
overflow: hidden;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: flex-start;
|
|
animation: driftBackground 16s ease-in-out infinite alternate;
|
|
}
|
|
|
|
.buttonContainer {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
justify-content: flex-start;
|
|
gap: 1rem;
|
|
margin-top: 1.4rem;
|
|
padding: 0;
|
|
}
|
|
|
|
.buttonContainer > * {
|
|
flex: 0 1 auto;
|
|
}
|
|
|
|
.titleContainer {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.9rem;
|
|
}
|
|
|
|
h1, h3 {
|
|
font-family: "Work Sans", sans-serif;
|
|
font-optical-sizing: auto;
|
|
font-style: normal;
|
|
margin: 0;
|
|
color: #ecfbff;
|
|
}
|
|
|
|
.main-title {
|
|
font-size: clamp(2.5rem, 6vw, 5.25rem);
|
|
font-weight: 700;
|
|
line-height: 0.95;
|
|
letter-spacing: -0.03em;
|
|
animation: floatText 10s ease-in-out infinite alternate;
|
|
}
|
|
|
|
.sub-title {
|
|
font-size: clamp(1.5rem, 2.5vw, 2.5rem);
|
|
font-weight: 300;
|
|
color: rgba(255, 255, 255, 0.9);
|
|
margin-top: 0.7rem;
|
|
opacity: 0.94;
|
|
}
|
|
|
|
@keyframes floatText {
|
|
0% { transform: translateY(0); }
|
|
100% { transform: translateY(-8px); }
|
|
}
|
|
|
|
@keyframes driftBackground {
|
|
0% { background-position: center top; }
|
|
100% { background-position: 12% 62%; }
|
|
}
|
|
|
|
@media (max-width: 900px) {
|
|
#container {
|
|
padding: 1.5rem 1.2rem;
|
|
}
|
|
|
|
.buttonContainer {
|
|
justify-content: center;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 760px) {
|
|
.buttonContainer {
|
|
justify-content: center;
|
|
gap: 0.85rem;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 600px) {
|
|
#container {
|
|
min-height: 360px;
|
|
}
|
|
|
|
.buttonContainer {
|
|
justify-content: center;
|
|
gap: 0.8rem;
|
|
padding: 0.75rem 0 0;
|
|
}
|
|
}
|
|
</style>
|