Skip to content

Commit

Permalink
update 2023/09/27
Browse files Browse the repository at this point in the history
  • Loading branch information
benrbray committed Sep 27, 2023
1 parent b80e2d9 commit 8f843ae
Show file tree
Hide file tree
Showing 4 changed files with 116 additions and 14 deletions.
Binary file modified docs/images/thumbnails/hindley-milner-3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
65 changes: 58 additions & 7 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -197,25 +197,24 @@
/* ---- */

#about {
display: flex;
flex-direction: row;
display: grid;
gap: 2em;
}

#about .about-portrait {
flex-basis: 40%;

min-width: 16rem;
position: relative;
display: flex;
flex-direction: row;
justify-content: center;
}

#about .about-portrait img {
display: block;
width: 100%;
}

#about .about-description {
grid-area: desc;
grid-area: intro;

display: flex;
flex-direction: column;
justify-content: center;
Expand All @@ -229,6 +228,58 @@
font-weight: bold;
}

@media (min-width: 52rem) {
#about {
grid-template-columns: 1fr 2fr;
grid-template-areas: "photo intro";
}

#about .about-portrait {
justify-self: stretch;
min-height: 100%;
}

#about .about-portrait img {
max-width: 100%;
max-height: 100%;
}
}

@media (max-width: 52rem) {

h2 { text-align: center; }
#about .about-title { text-align: center; }

#about {
grid-template-areas:
"photo"
"intro";
}


#about .about-portrait {
position: relative;
max-height: min(50vh, 30em);
justify-self: center;
border-radius: 50%;
overflow: hidden;
}

#about .about-portrait::after {
content: "";
display: block;
padding-bottom: 100%;
}

#about .about-portrait img {
position: absolute;
width: 100%;
object-fit: cover;
top: -2em;
/* top: 1em; */
}
}

</style>

<div id="page">
Expand Down
Binary file modified images/thumbnails/hindley-milner-3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
65 changes: 58 additions & 7 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -168,25 +168,24 @@
/* ---- */

#about {
display: flex;
flex-direction: row;
display: grid;
gap: 2em;
}

#about .about-portrait {
flex-basis: 40%;

min-width: 16rem;
position: relative;
display: flex;
flex-direction: row;
justify-content: center;
}

#about .about-portrait img {
display: block;
width: 100%;
}

#about .about-description {
grid-area: desc;
grid-area: intro;

display: flex;
flex-direction: column;
justify-content: center;
Expand All @@ -200,6 +199,58 @@
font-weight: bold;
}

@media (min-width: 52rem) {
#about {
grid-template-columns: 1fr 2fr;
grid-template-areas: "photo intro";
}

#about .about-portrait {
justify-self: stretch;
min-height: 100%;
}

#about .about-portrait img {
max-width: 100%;
max-height: 100%;
}
}

@media (max-width: 52rem) {

h2 { text-align: center; }
#about .about-title { text-align: center; }

#about {
grid-template-areas:
"photo"
"intro";
}


#about .about-portrait {
position: relative;
max-height: min(50vh, 30em);
justify-self: center;
border-radius: 50%;
overflow: hidden;
}

#about .about-portrait::after {
content: "";
display: block;
padding-bottom: 100%;
}

#about .about-portrait img {
position: absolute;
width: 100%;
object-fit: cover;
top: -2em;
/* top: 1em; */
}
}

</style>

<div id="page">
Expand Down

0 comments on commit 8f843ae

Please sign in to comment.