Made pages mobile compatible

This commit is contained in:
2025-01-26 14:11:23 +01:00
parent 1a1d49b83f
commit 475c3458df
7 changed files with 46 additions and 6 deletions

View File

@@ -17,7 +17,7 @@
margin-top: 30px;
}
@media screen and (max-width: var(--mobile-width)) {
@media screen and (max-width: 750px) {
#about {
grid-template-columns: unset;
grid-template-rows: repeat(2, max-content);

View File

@@ -3,6 +3,8 @@
@using Portfolio.Shared.Services
@using Portfolio.Web.Components.Components
<PageTitle>Portfolio von Leon Hoppe</PageTitle>
<section id="hero">
<div class="artwork">
<div class="circle big-circle"></div>
@@ -77,7 +79,8 @@
jobs.state++;
}
displayElement.innerText = jobs.display;
if (displayElement.innerText !== jobs.display)
displayElement.innerText = jobs.display;
}, 50)
</script>

View File

@@ -53,7 +53,6 @@
}
.title {
font-size: 35px;
display: inline;
margin-right: 10px;
}
@@ -126,3 +125,23 @@ a:not(#main-action):hover::before {
opacity: 1;
}
}
@media screen and (max-width: 750px) {
#hero > h2 {
font-size: 2rem;
line-height: 2.5rem;
margin-top: 10vh;
}
.timeline {
flex-direction: column-reverse;
}
.timeline ::deep .timestamp:last-of-type {
--show-bar: block;
}
.timeline ::deep .timestamp:first-of-type {
--show-bar: none;
}
}