Update About component and styles for responsive design

This commit is contained in:
dertyp7
2024-01-13 17:42:17 +01:00
parent 7715d626ad
commit 9b487cab47
3 changed files with 41 additions and 1 deletions

View File

@@ -7,7 +7,7 @@ export default function About() {
<h1 className="name">Janis Meister</h1> <h1 className="name">Janis Meister</h1>
<br /> <br />
<h3 className="job">Software Developer.</h3> <h3 className="job">Software Developer.</h3>
<h3 className="interest">With an interest for modern technology.</h3> <h3 className="interest">With an interest for modern technologies.</h3>
<div className="social-links"> <div className="social-links">
<a href="https://github.com/DerTyp7" target="_blank"> <a href="https://github.com/DerTyp7" target="_blank">
<svg <svg

View File

@@ -33,4 +33,20 @@
} }
} }
} }
@media (max-width: 1150px) {
padding: 5rem 2rem;
}
@media (max-width: 600px) {
.social-links {
flex-direction: column;
align-items: stretch;
a {
width: 100%;
text-align: center;
}
}
}
} }

View File

@@ -28,16 +28,40 @@ html {
h1 { h1 {
font-size: 8rem; font-size: 8rem;
font-weight: 700; font-weight: 700;
@media screen and (max-width: 900px) {
font-size: 6rem;
}
@media screen and (max-width: 480px) {
font-size: 4rem;
}
} }
h2 { h2 {
font-size: 4rem; font-size: 4rem;
font-weight: 700; font-weight: 700;
@media screen and (max-width: 900px) {
font-size: 3rem;
}
@media screen and (max-width: 480px) {
font-size: 2rem;
}
} }
h3 { h3 {
font-size: 2rem; font-size: 2rem;
font-weight: 700; font-weight: 700;
@media screen and (max-width: 900px) {
font-size: 1.5rem;
}
@media screen and (max-width: 480px) {
font-size: 1rem;
}
} }
body, body,