another attempt

This commit is contained in:
ahzek 2025-05-02 19:16:54 +02:00
parent a46018302e
commit f22c4e5f9c
2 changed files with 30 additions and 29 deletions

View file

@ -31,41 +31,42 @@
} }
header { header {
background-color: var(--surface);
padding: 2rem;
text-align: center;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
z-index: 10;
}
header .container {
padding: 0.5rem;
display: flex; display: flex;
align-items: center; align-items: center;
gap: 0.5rem; justify-content: space-between;
height: 120px; /* stała wysokość headera */
padding: 0 2rem;
} }
header h1 {
margin-bottom: 0;
font-size: 1.5rem;
}
header p {
margin: 0;
font-size: 0.875rem;
}
.photo-container { .photo-container {
flex-shrink: 0; flex: 0 0 auto;
margin-right: 0.5rem; margin-right: 2rem;
} }
.photo-container img {
.profile-photo { height: 100%; /* dopasuj do wysokości headera */
height: 3em; /* lekko większe niż tekst, ale nie rozciąga headera */ width: auto;
width: 3em;
border-radius: 50%; border-radius: 50%;
object-fit: cover; object-fit: cover;
vertical-align: middle; }
.header-info {
flex: 1 1 auto;
display: flex;
flex-direction: column;
justify-content: center;
}
.header-info h1 {
margin: 0;
font-size: 1.8rem;
}
.header-info p {
margin: 0.5rem 0;
font-size: 1rem;
}
.contact-links {
display: flex;
gap: 1.5rem;
}
.language-switch {
flex: 0 0 auto;
} }
.header-top h1 { .header-top h1 {

View file

@ -14,7 +14,7 @@
<body> <body>
<header> <header>
<div class="photo-container"> <div class="photo-container">
<img src="img/zdjęcie.jpg" alt="Bartłomiej Piekarski" /> <img src="img/profile.jpg" alt="Bartłomiej Piekarski" />
</div> </div>
<div class="header-info"> <div class="header-info">
<h1>Bartłomiej Piekarski</h1> <h1>Bartłomiej Piekarski</h1>