Fixes mobile handling on study card images

This commit is contained in:
Andrew Gioia 2026-05-07 19:11:22 -04:00
parent 4defc5fd40
commit 7f5a2f5da7
Signed by: andrew
GPG Key ID: FC09694A000800C8
2 changed files with 40 additions and 7 deletions

View File

@ -920,13 +920,13 @@ section#studies {
} }
} }
/* main card element */
article { article {
background-color: var(--card-color); background-color: var(--card-color);
background-image: var(--card-bg); background-image: var(--card-bg);
background-position: bottom -16rem right -1rem; /* mobile position */
background-repeat: no-repeat; background-repeat: no-repeat;
background-size: auto 30rem; /* mobile size */ border-top: 2px solid var(--hover);
border: none; border-bottom: 0.5rem solid var(--hover);
transition: filter 200ms ease-in-out; transition: filter 200ms ease-in-out;
--card-color: var(--blue); --card-color: var(--blue);
@ -1004,6 +1004,16 @@ section#studies {
} }
} }
/* specific studies */
&#honeycomb {
background-position: bottom -13rem right -4rem;
background-size: auto 30rem;
}
&#legacy {
background-position: bottom -16rem right -1rem;
background-size: auto 30rem;
}
&[color="blue"] { &[color="blue"] {
color: var(--white); color: var(--white);
@ -1024,6 +1034,12 @@ section#studies {
filter: brightness(105%); filter: brightness(105%);
} }
} }
/* inset the article when clicking the link */
&:has(a:active) {
border-bottom-width: 2px;
margin: calc(0.5rem - 2px) 0 0;
}
} }
} }
@ -1395,6 +1411,15 @@ body#values {
p:first-of-type + p { p:first-of-type + p {
display: block; display: block;
} }
&#honeycomb {
background-position: bottom -16rem right 0rem;
background-size: auto 100%;
}
&#legacy {
background-position: bottom -16rem right 2rem;
background-size: auto 100%;
}
} }
} }
@ -1434,8 +1459,6 @@ body#values {
section#studies section#studies
{ {
article { article {
background-position: top 2rem right 2rem;
background-size: 20% auto;
border: 2px solid var(--hover); border: 2px solid var(--hover);
box-shadow: 0.5rem 0.5rem 0 0 var(--hover); box-shadow: 0.5rem 0.5rem 0 0 var(--hover);
width: calc(var(--column-width) + 6px); width: calc(var(--column-width) + 6px);
@ -1471,6 +1494,10 @@ body#values {
} }
} }
} }
&#legacy {
background-position: top 2rem right 2rem;
background-size: 25% auto;
}
} }
} }
@ -1871,6 +1898,12 @@ body#values {
{ {
article { article {
width: calc(var(--column-width) + 4rem + 8px); width: calc(var(--column-width) + 4rem + 8px);
&#honeycomb {
div {
gap: 2rem;
}
}
} }
} }
} }

View File

@ -23,14 +23,14 @@ list:
study: study:
facts: facts:
- label: "Role" - label: "Role"
value: "<span>Principal designer,</span> frontend architect" value: "UI Design, <span>Frontend Dev</span>"
icon: "hat" icon: "hat"
class: "min" class: "min"
- label: "Timeline" - label: "Timeline"
value: "Ongoing production system" value: "Ongoing production system"
icon: "calendar" icon: "calendar"
- label: "Tools" - label: "Tools"
value: "HTML, CSS, JS, Typescript, Figma" value: "HTML, CSS, JS, Figma"
icon: "pen" icon: "pen"
- label: "Industry" - label: "Industry"
value: "K-12 education SaaS" value: "K-12 education SaaS"