Made pages mobile compatible
This commit is contained in:
@@ -50,7 +50,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media screen and (max-width: var(--mobile-width)) {
|
@media screen and (max-width: 750px) {
|
||||||
.timestamp {
|
.timestamp {
|
||||||
gap: 15px;
|
gap: 15px;
|
||||||
padding-left: 30px;
|
padding-left: 30px;
|
||||||
|
|||||||
@@ -6,7 +6,6 @@
|
|||||||
<NavLink class="nav-link" Match="NavLinkMatch.All" href="projects">Projekte</NavLink>
|
<NavLink class="nav-link" Match="NavLinkMatch.All" href="projects">Projekte</NavLink>
|
||||||
<NavLink class="nav-link" Match="NavLinkMatch.All" href="technologies">Technologien</NavLink>
|
<NavLink class="nav-link" Match="NavLinkMatch.All" href="technologies">Technologien</NavLink>
|
||||||
<NavLink class="nav-link" Match="NavLinkMatch.All" href="about">Über mich</NavLink>
|
<NavLink class="nav-link" Match="NavLinkMatch.All" href="about">Über mich</NavLink>
|
||||||
<NavLink class="nav-link" Match="NavLinkMatch.All" href="contact">Kontakt</NavLink>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="socials">
|
<div class="socials">
|
||||||
|
|||||||
@@ -56,3 +56,13 @@
|
|||||||
visibility: visible;
|
visibility: visible;
|
||||||
transform: scaleX(1);
|
transform: scaleX(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media screen and (max-width: 750px) {
|
||||||
|
a:not(.nav-link) {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.links {
|
||||||
|
margin-inline: auto;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
@@ -17,7 +17,7 @@
|
|||||||
margin-top: 30px;
|
margin-top: 30px;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media screen and (max-width: var(--mobile-width)) {
|
@media screen and (max-width: 750px) {
|
||||||
#about {
|
#about {
|
||||||
grid-template-columns: unset;
|
grid-template-columns: unset;
|
||||||
grid-template-rows: repeat(2, max-content);
|
grid-template-rows: repeat(2, max-content);
|
||||||
|
|||||||
@@ -3,6 +3,8 @@
|
|||||||
@using Portfolio.Shared.Services
|
@using Portfolio.Shared.Services
|
||||||
@using Portfolio.Web.Components.Components
|
@using Portfolio.Web.Components.Components
|
||||||
|
|
||||||
|
<PageTitle>Portfolio von Leon Hoppe</PageTitle>
|
||||||
|
|
||||||
<section id="hero">
|
<section id="hero">
|
||||||
<div class="artwork">
|
<div class="artwork">
|
||||||
<div class="circle big-circle"></div>
|
<div class="circle big-circle"></div>
|
||||||
@@ -77,7 +79,8 @@
|
|||||||
jobs.state++;
|
jobs.state++;
|
||||||
}
|
}
|
||||||
|
|
||||||
displayElement.innerText = jobs.display;
|
if (displayElement.innerText !== jobs.display)
|
||||||
|
displayElement.innerText = jobs.display;
|
||||||
}, 50)
|
}, 50)
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -53,7 +53,6 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.title {
|
.title {
|
||||||
font-size: 35px;
|
|
||||||
display: inline;
|
display: inline;
|
||||||
margin-right: 10px;
|
margin-right: 10px;
|
||||||
}
|
}
|
||||||
@@ -126,3 +125,23 @@ a:not(#main-action):hover::before {
|
|||||||
opacity: 1;
|
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;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
@@ -9,7 +9,6 @@
|
|||||||
|
|
||||||
--padding: 12.5vw;
|
--padding: 12.5vw;
|
||||||
--padding-small: 5vw;
|
--padding-small: 5vw;
|
||||||
--mobile-width: 750px;
|
|
||||||
|
|
||||||
--desc-color: #7c8393;
|
--desc-color: #7c8393;
|
||||||
--border-color: #2d2d2d;
|
--border-color: #2d2d2d;
|
||||||
@@ -90,3 +89,13 @@ h2 {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media screen and (max-width: 750px) {
|
||||||
|
.artwork {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
h2 {
|
||||||
|
font-size: 1.625rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user