Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 9 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@ jobs:
name: Build Jekyll
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build the site in the jekyll/builder container
run: |
export JEKYLL_VERSION=3.8
docker run \
-v ${{ github.workspace }}:/srv/jekyll -v ${{ github.workspace }}/_site:/srv/jekyll/_site \
-e PAGES_REPO_NWO=${{ github.repository }} \
jekyll/builder:$JEKYLL_VERSION /bin/bash -c "chmod 777 /srv/jekyll && jekyll build --future"
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: '3.3'
bundler-cache: true
- name: Build the site
run: bundle exec jekyll build --future
env:
PAGES_REPO_NWO: ${{ github.repository }}
1 change: 1 addition & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,7 @@ exclude:
- README.md
- screenshot.png
- docs/
- vendor/

plugins:
- jekyll-paginate
Expand Down
Binary file removed assets/img/projects/cookbook-brisket.webp
Binary file not shown.
Binary file added assets/img/projects/cookbook-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/img/projects/cookbook-recipe-dark.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/img/projects/cookbook-recipe-light.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
34 changes: 24 additions & 10 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<meta property="og:title" content="Matt Batchelder">
<meta property="og:description" content="next5 and the family cookbook.">
<meta property="og:url" content="https://mattbat.com/">
<meta property="og:image" content="https://mattbat.com/assets/img/projects/cookbook-brisket.webp">
<meta property="og:image" content="https://mattbat.com/assets/img/projects/cookbook-recipe-light.webp">
<link rel="canonical" href="https://mattbat.com/">
<link rel="icon" href="/assets/img/avatar-icon.png">
<style>
Expand Down Expand Up @@ -128,6 +128,23 @@
}
.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%);
display: flex;
justify-content: center;
}
.cookbook .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);
}
.cookbook .visual img { height: auto; object-fit: initial; }

.body {
display: flex;
flex-direction: column;
Expand All @@ -137,13 +154,7 @@
}
.title { display: flex; align-items: center; gap: 12px; }
.title img { width: 40px; height: 40px; border-radius: 10px; }
.title .emoji {
width: 40px; height: 40px; border-radius: 10px;
display: grid; place-items: center;
background: color-mix(in srgb, var(--cookbook) 16%, transparent);
font-size: 22px;
}
.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 {
Expand Down Expand Up @@ -211,11 +222,14 @@ <h2>next5</h2>

<a class="card cookbook" href="/cookbook/">
<div class="visual">
<img src="/assets/img/projects/cookbook-brisket.webp" width="720" height="480" alt="Sliced smoked brisket on a tray with pickles and barbecue sauces">
<picture>
<source srcset="/assets/img/projects/cookbook-recipe-dark.webp" media="(prefers-color-scheme: dark)">
<img src="/assets/img/projects/cookbook-recipe-light.webp" width="1170" height="2532" alt="Brisket recipe page with servings and cook mode button">
</picture>
</div>
<div class="body">
<div class="title">
<span class="emoji" aria-hidden="true">📖</span>
<img src="/assets/img/projects/cookbook-icon.png" width="40" height="40" alt="">
<h2>Cookbook</h2>
</div>
<p>The Batchelder family cookbook: 50+ recipes, from Memaw's Roast to smoked brisket, with search, a kitchen mode and built-in timers.</p>
Expand Down
Loading