diff --git a/assets/img/projects/lmnt-icon.png b/assets/img/projects/lmnt-icon.png new file mode 100644 index 0000000..280a148 Binary files /dev/null and b/assets/img/projects/lmnt-icon.png differ diff --git a/assets/img/projects/lmnt-recipe-dark.webp b/assets/img/projects/lmnt-recipe-dark.webp new file mode 100644 index 0000000..8cd4b9e Binary files /dev/null and b/assets/img/projects/lmnt-recipe-dark.webp differ diff --git a/assets/img/projects/lmnt-recipe-light.webp b/assets/img/projects/lmnt-recipe-light.webp new file mode 100644 index 0000000..475ac53 Binary files /dev/null and b/assets/img/projects/lmnt-recipe-light.webp differ diff --git a/index.html b/index.html index 2ca09a8..a17c615 100644 --- a/index.html +++ b/index.html @@ -8,12 +8,12 @@ Matt Batchelder - + - + @@ -29,6 +29,7 @@ --shadow-hover: 0 2px 4px rgba(20, 20, 30, .08), 0 16px 40px rgba(20, 20, 30, .14); --next5: #2f6fed; --cookbook: #b4532c; + --lmnt: #4f46e5; --radius: 18px; } @media (prefers-color-scheme: dark) { @@ -42,6 +43,7 @@ --shadow-hover: 0 2px 4px rgba(0, 0, 0, .45), 0 16px 40px rgba(0, 0, 0, .5); --next5: #6d9bff; --cookbook: #e48a62; + --lmnt: #8b93f8; } } @@ -60,7 +62,7 @@ .wrap { width: 100%; - max-width: 960px; + max-width: 1120px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); @@ -83,10 +85,21 @@ main { flex: 1; } .projects { display: grid; - grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); + grid-template-columns: 1fr; gap: 24px; padding-bottom: 56px; } + /* Two columns: the odd card out spans the row, laid out side by side */ + @media (min-width: 680px) and (max-width: 1039px) { + .projects { grid-template-columns: repeat(2, 1fr); } + .card:last-child:nth-child(odd) { grid-column: 1 / -1; flex-direction: row; } + .card:last-child:nth-child(odd) .visual { flex: 0 0 50%; aspect-ratio: auto; min-height: 300px; max-height: 340px; } + .card:last-child:nth-child(odd) .body { justify-content: center; padding: 28px 32px; } + } + /* Three across on wide screens */ + @media (min-width: 1040px) { + .projects { grid-template-columns: repeat(3, 1fr); } + } .card { display: flex; @@ -103,6 +116,7 @@ .card:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; } .card.next5 { --accent: var(--next5); } .card.cookbook { --accent: var(--cookbook); } + .card.lmnt { --accent: var(--lmnt); } .visual { position: relative; @@ -111,30 +125,13 @@ } .visual img { display: block; width: 100%; height: 100%; object-fit: cover; } - /* next5: phone screenshot rising out of a panel in the app's own colors */ - .next5 .visual { - background: radial-gradient(120% 90% at 50% 0%, #1f3566 0%, #0b0f17 70%); - display: flex; - justify-content: center; - } - .next5 .visual picture { - display: block; - width: 46%; - margin-top: 8%; - align-self: flex-start; - border-radius: 22px 22px 0 0; - overflow: hidden; - box-shadow: 0 0 0 6px #2a2d34, 0 18px 40px rgba(0, 0, 0, .5); - } - .next5 .visual img { height: auto; object-fit: initial; } - - /* cookbook: phone screenshot in the app's warm colors */ - .cookbook .visual { - background: radial-gradient(120% 90% at 50% 0%, #e9c9a8 0%, #7a3a1c 75%); + /* Phone screenshot rising out of a panel in each app's own colors */ + .visual { display: flex; justify-content: center; + background: var(--panel); } - .cookbook .visual picture { + .visual picture { display: block; width: 46%; margin-top: 8%; @@ -143,7 +140,10 @@ overflow: hidden; box-shadow: 0 0 0 6px #2a2d34, 0 18px 40px rgba(0, 0, 0, .5); } - .cookbook .visual img { height: auto; object-fit: initial; } + .visual img { height: auto; object-fit: initial; } + .next5 { --panel: radial-gradient(120% 90% at 50% 0%, #1f3566 0%, #0b0f17 70%); } + .cookbook { --panel: radial-gradient(120% 90% at 50% 0%, #e9c9a8 0%, #7a3a1c 75%); } + .lmnt { --panel: radial-gradient(120% 90% at 50% 0%, #4a47b8 0%, #12121f 72%); } .body { display: flex; @@ -154,7 +154,7 @@ } .title { display: flex; align-items: center; gap: 12px; } .title img { width: 40px; height: 40px; border-radius: 10px; } - .title h2 { margin: 0; font-size: 1.4rem; letter-spacing: -0.01em; } + .title h2 { margin: 0; font-size: 1.4rem; letter-spacing: -0.01em; } .body p { margin: 0; color: var(--muted); } .tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 0; padding: 0; list-style: none; } .tags li { @@ -241,6 +241,28 @@

Cookbook

Open the cookbook + + +
+ + + Raw recipe page with batch size, the grams to weigh out and an electrolytes label + +
+
+
+ +

LMNT Calculator

+
+

Mix your own electrolyte drink powder. Pick a recipe and batch size, get the exact grams to weigh, and see the cost per serving and what you save.

+ + Open the calculator +
+