chore: cleanup + organize
This commit is contained in:
parent
ac9a617fcd
commit
1852951f24
21 changed files with 38 additions and 75 deletions
10
package-lock.json
generated
10
package-lock.json
generated
|
@ -1,12 +1,12 @@
|
|||
{
|
||||
"name": "coryd.dev",
|
||||
"version": "16.0.1",
|
||||
"version": "16.0.2",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "coryd.dev",
|
||||
"version": "16.0.1",
|
||||
"version": "16.0.2",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@cdransf/api-text": "^1.2.2",
|
||||
|
@ -1158,9 +1158,9 @@
|
|||
"integrity": "sha512-6AMQ/tl6uI3wXknv8exYJguym/bPHxIW5XOYg7aWCQtMbP4XUDAsWp2pv4o9wtesIF8K7CssNPR93qFOh7D8lw=="
|
||||
},
|
||||
"node_modules/@emnapi/runtime": {
|
||||
"version": "1.1.1",
|
||||
"resolved": "https://registry.npmjs.org/@emnapi/runtime/-/runtime-1.1.1.tgz",
|
||||
"integrity": "sha512-3bfqkzuR1KLx57nZfjr2NLnFOobvyS0aTszaEGCGqmYMVDRaGvgIZbjGSV/MHSSmLgQ/b9JFHQ5xm5WRZYd+XQ==",
|
||||
"version": "1.2.0",
|
||||
"resolved": "https://registry.npmjs.org/@emnapi/runtime/-/runtime-1.2.0.tgz",
|
||||
"integrity": "sha512-bV21/9LQmcQeCPEg3BDFtvwL6cwiTMksYNWQQ4KOxCZikEGalWtenoZ0wCiukJINlGCIi2KXx01g4FoH/LxpzQ==",
|
||||
"dev": true,
|
||||
"optional": true,
|
||||
"dependencies": {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "coryd.dev",
|
||||
"version": "16.0.1",
|
||||
"version": "16.0.2",
|
||||
"description": "The source for my personal site. Built using 11ty.",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
|
|
|
@ -14,4 +14,4 @@ layout: default
|
|||
<p>I finished <strong class="highlight-text">{{ bookData.size }} books</strong> in {{ year }}</p>
|
||||
{% endif %}
|
||||
<hr class="large-spacing" />
|
||||
{% render "partials/now/media-grid.liquid", data:bookData, shape: "vertical", count: 200, loading: "eager" %}
|
||||
{% render "partials/media/grid.liquid", data:bookData, shape: "vertical", count: 200, loading: "eager" %}
|
|
@ -3,6 +3,6 @@
|
|||
{%- assign show = tv.recentlyWatched | first -%}
|
||||
<div class="now-topper">
|
||||
<p><strong class="highlight-text">I'm a software developer based in Camarillo, California</strong>. I enjoy hanging out with my beautiful family and 3 rescue dogs, technology, automation, <a href="https://coryd.dev/music">music</a>, writing, <a href="https://coryd.dev/books">reading</a>, <a href="https://coryd.dev/watching#tv">tv</a> and <a href="https://coryd.dev/watching#movies">movies</a>. Lately I've been listening to a lot of <strong class="highlight-text">{{ artist.title }}</strong>, reading <strong class="highlight-text">{{ book.title }}</strong> and watching <strong class="highlight-text">{{ show.name }}</strong>.</p>
|
||||
{% render "partials/now/status.liquid", status:status %}
|
||||
<p>{{ status.emoji }} {{ status.content }}</p>
|
||||
{% render "partials/widgets/now-playing.liquid" %}
|
||||
</div>
|
|
@ -12,7 +12,7 @@
|
|||
<div class="subtext">{{ item.artist }} • {{ item.plays }} plays</div>
|
||||
</div>
|
||||
</div>
|
||||
{% render "partials/now/progress-bar.liquid", percentage:percentage %}
|
||||
{% render "partials/media/progress-bar.liquid", percentage:percentage %}
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
|
@ -1 +0,0 @@
|
|||
<p>{{ status.emoji }} {{ status.content }}</p>
|
|
@ -1,10 +0,0 @@
|
|||
<div class="post-graph">
|
||||
{% assign years = postYears | reverse %}
|
||||
{%- for year in years %}
|
||||
<div class="wrapper">
|
||||
<div class="year">{{ year.year }}</div>
|
||||
<div class="progress" style="width: {{ year.yearProgress }}%"></div>
|
||||
<div class="data">{{ year.postCount }}</div>
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
|
@ -1,25 +0,0 @@
|
|||
.post-graph {
|
||||
margin-top: var(--sizing-base);
|
||||
margin-bottom: var(--sizing-base);
|
||||
|
||||
& .wrapper {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
height: var(--sizing-3xl);
|
||||
margin-bottom: var(--sizing-sm);
|
||||
|
||||
& .year {
|
||||
font-family: var(--font-mono);
|
||||
}
|
||||
|
||||
& .progress {
|
||||
background-color: var(--accent-color);
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
& .progress,
|
||||
& .data {
|
||||
margin-left: var(--sizing-sm);
|
||||
}
|
||||
}
|
||||
}
|
|
@ -36,7 +36,6 @@
|
|||
@import url('./components/media-grid.css') layer(components);
|
||||
@import url('./components/menu.css') layer(components);
|
||||
@import url('./components/paginator.css') layer(components);
|
||||
@import url('./components/post-graph.css') layer(components);
|
||||
@import url('./components/progress-bar.css') layer(components);
|
||||
@import url('./components/share-button.css') layer(components);
|
||||
@import url('./components/theme-toggle.css') layer(components);
|
||||
|
|
|
@ -24,16 +24,16 @@ permalink: "/music/index.html"
|
|||
</div>
|
||||
</div>
|
||||
<div id="artists-window">
|
||||
{% render "partials/now/media-grid.liquid", data:music.week.artists, shape: "square", count: 8, loading: "eager" %}
|
||||
{% render "partials/media/grid.liquid", data:music.week.artists, shape: "square", count: 8, loading: "eager" %}
|
||||
</div>
|
||||
<div class="hidden" id="artists-month">
|
||||
{% render "partials/now/media-grid.liquid", data:music.month.artists, shape: "square", count: 8 %}
|
||||
{% render "partials/media/grid.liquid", data:music.month.artists, shape: "square", count: 8 %}
|
||||
</div>
|
||||
<div class="hidden" id="artists-three-months">
|
||||
{% render "partials/now/media-grid.liquid", data:music.threeMonth.artists, shape: "square", count: 8 %}
|
||||
{% render "partials/media/grid.liquid", data:music.threeMonth.artists, shape: "square", count: 8 %}
|
||||
</div>
|
||||
<div class="hidden" id="artists-all-time">
|
||||
{% render "partials/now/media-grid.liquid", data:music.allTime.artists, shape: "square", count: 8 %}
|
||||
{% render "partials/media/grid.liquid", data:music.allTime.artists, shape: "square", count: 8 %}
|
||||
</div>
|
||||
<p><strong class="highlight-text">More:</strong> <a href="/music/artists/this-week/">This week</a> • <a href="/music/artists/this-month/">This month</a> • <a href="/music/artists/three-months/">3 months</a> • <a href="/music/artists/all-time/">All time</a></p>
|
||||
<div class="section-header-wrapper">
|
||||
|
@ -49,16 +49,16 @@ permalink: "/music/index.html"
|
|||
</div>
|
||||
</div>
|
||||
<div id="albums-window">
|
||||
{% render "partials/now/media-grid.liquid", data:music.week.albums, shape: "square", count: 8 %}
|
||||
{% render "partials/media/grid.liquid", data:music.week.albums, shape: "square", count: 8 %}
|
||||
</div>
|
||||
<div class="hidden" id="albums-month">
|
||||
{% render "partials/now/media-grid.liquid", data:music.month.albums, shape: "square", count: 8 %}
|
||||
{% render "partials/media/grid.liquid", data:music.month.albums, shape: "square", count: 8 %}
|
||||
</div>
|
||||
<div class="hidden" id="albums-three-months">
|
||||
{% render "partials/now/media-grid.liquid", data:music.threeMonth.albums, shape: "square", count: 8 %}
|
||||
{% render "partials/media/grid.liquid", data:music.threeMonth.albums, shape: "square", count: 8 %}
|
||||
</div>
|
||||
<div class="hidden" id="albums-all-time">
|
||||
{% render "partials/now/media-grid.liquid", data:music.allTime.albums, shape: "square", count: 8 %}
|
||||
{% render "partials/media/grid.liquid", data:music.allTime.albums, shape: "square", count: 8 %}
|
||||
</div>
|
||||
<p><strong class="highlight-text">More:</strong> <a href="/music/albums/this-week/">This week</a> • <a href="/music/albums/this-month/">This month</a> • <a href="/music/albums/three-months/">3 months</a> • <a href="/music/albums/all-time/">All time</a></p>
|
||||
<div class="section-header-wrapper">
|
||||
|
@ -75,20 +75,20 @@ permalink: "/music/index.html"
|
|||
</div>
|
||||
</div>
|
||||
<div id="tracks-recent">
|
||||
{% render "partials/now/tracks-recent.liquid", data:music.recent.tracksChronological %}
|
||||
{% render "partials/media/tracks-recent.liquid", data:music.recent.tracksChronological %}
|
||||
</div>
|
||||
<div class="hidden" id="tracks-window">
|
||||
{% render "partials/now/track-chart.liquid", data:music.week.tracks, mostPlayed:music.week.tracks[0].plays %}
|
||||
{% render "partials/media/track-chart.liquid", data:music.week.tracks, mostPlayed:music.week.tracks[0].plays %}
|
||||
</div>
|
||||
<div class="hidden" id="tracks-month">
|
||||
{% render "partials/now/track-chart.liquid", data:music.month.tracks, mostPlayed:music.month.tracks[0].plays %}
|
||||
{% render "partials/media/track-chart.liquid", data:music.month.tracks, mostPlayed:music.month.tracks[0].plays %}
|
||||
</div>
|
||||
<div class="hidden" id="tracks-three-months">
|
||||
{% render "partials/now/track-chart.liquid", data:music.threeMonth.tracks, mostPlayed:music.threeMonth.tracks[0].plays %}
|
||||
{% render "partials/media/track-chart.liquid", data:music.threeMonth.tracks, mostPlayed:music.threeMonth.tracks[0].plays %}
|
||||
</div>
|
||||
<div class="hidden" id="tracks-all-time">
|
||||
{% render "partials/now/track-chart.liquid", data:music.allTime.tracks, mostPlayed:music.allTime.tracks[0].plays %}
|
||||
{% render "partials/media/track-chart.liquid", data:music.allTime.tracks, mostPlayed:music.allTime.tracks[0].plays %}
|
||||
</div>
|
||||
<p><strong class="highlight-text">More:</strong> <a href="/music/tracks/this-week/">This week</a> • <a href="/music/tracks/this-month/">This month</a> • <a href="/music/tracks/three-months/">3 months</a> • <a href="/music/tracks/all-time/">All time</a></p>
|
||||
{% render "partials/now/album-releases.liquid", albumReleases:albumReleases %}
|
||||
{% render "partials/media/album-releases.liquid", albumReleases:albumReleases %}
|
||||
<p class="explainer text-small text-centered"><em>This page was last updated on {{ "now" | date: "%B %-d, %-I:%M%p", "America/Los_Angeles" }}. It typically updates once an hour.</em></p>
|
|
@ -24,7 +24,7 @@ permalink: "/music/tracks/three-months/{% if pagination.pageNumber > 0 %}{{ pagi
|
|||
<div class="subtext">{{ item.artist }} • {{ item.plays }} plays</div>
|
||||
</div>
|
||||
</div>
|
||||
{% render "partials/now/progress-bar.liquid", percentage:percentage %}
|
||||
{% render "partials/media/progress-bar.liquid", percentage:percentage %}
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
|
|
|
@ -24,7 +24,7 @@ permalink: "/music/tracks/all-time/{% if pagination.pageNumber > 0 %}{{ paginati
|
|||
<div class="subtext">{{ item.artist }} • {{ item.plays }} plays</div>
|
||||
</div>
|
||||
</div>
|
||||
{% render "partials/now/progress-bar.liquid", percentage:percentage %}
|
||||
{% render "partials/media/progress-bar.liquid", percentage:percentage %}
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
|
|
|
@ -24,7 +24,7 @@ permalink: "/music/tracks/this-month/{% if pagination.pageNumber > 0 %}{{ pagina
|
|||
<div class="subtext">{{ item.artist }} • {{ item.plays }} plays</div>
|
||||
</div>
|
||||
</div>
|
||||
{% render "partials/now/progress-bar.liquid", percentage:percentage %}
|
||||
{% render "partials/media/progress-bar.liquid", percentage:percentage %}
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
|
|
|
@ -24,7 +24,7 @@ permalink: "/music/tracks/this-week/{% if pagination.pageNumber > 0 %}{{ paginat
|
|||
<div class="subtext">{{ item.artist }} • {{ item.plays }} plays</div>
|
||||
</div>
|
||||
</div>
|
||||
{% render "partials/now/progress-bar.liquid", percentage:percentage %}
|
||||
{% render "partials/media/progress-bar.liquid", percentage:percentage %}
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
|
|
|
@ -12,12 +12,12 @@ permalink: "/watching/index.html"
|
|||
{% tablericon "movie" "Recent movies" %}
|
||||
Recent movies
|
||||
</h2>
|
||||
{% render "partials/now/media-grid.liquid", data:movies.recentlyWatched, shape: "vertical", count: 6 %}
|
||||
{% render "partials/media/grid.liquid", data:movies.recentlyWatched, shape: "vertical", count: 6 %}
|
||||
<h2 id="tv" class="section-header flex-centered">
|
||||
{% tablericon "device-tv" "Recent shows" %}
|
||||
Recent shows
|
||||
</h2>
|
||||
{% render "partials/now/media-grid.liquid", data:tv.recentlyWatched, shape: "vertical", count: 6 %}
|
||||
{% render "partials/media/grid.liquid", data:tv.recentlyWatched, shape: "vertical", count: 6 %}
|
||||
<a class="link-icon flex-centered" href="/watching/favorite-movies">
|
||||
<h2 class="section-header flex-centered">
|
||||
{% tablericon "star" "Favorite movies" %}
|
||||
|
|
|
@ -18,12 +18,12 @@ tags: ['books', 'music', 'development', 'Eleventy']
|
|||
{% tablericon "books" "Favorite books" %}
|
||||
Favorite books
|
||||
</h2>
|
||||
{% render "partials/now/media-grid.liquid", data:roundups['2023'].books, shape: "vertical", count: 6 %}
|
||||
{% render "partials/media/grid.liquid", data:roundups['2023'].books, shape: "vertical", count: 6 %}
|
||||
<h2 class="section-header flex-centered">
|
||||
{% tablericon "vinyl" "Favorite albums" %}
|
||||
Favorite books
|
||||
</h2>
|
||||
{% render "partials/now/media-grid.liquid", data:roundups['2023'].albums, shape: "square", count: 8 %}
|
||||
{% render "partials/media/grid.liquid", data:roundups['2023'].albums, shape: "square", count: 8 %}
|
||||
|
||||
<p><strong><a href="https://coryd.dev">I wrote some things:</a></strong></p>
|
||||
<ul>
|
||||
|
|
|
@ -119,7 +119,7 @@ Now, leveraging this looks like the following:
|
|||
{% raw %}
|
||||
|
||||
```liquid
|
||||
{% render "partials/now/media-grid.liquid", data:artists, icon: "microphone-2", title: "Artists", shape: "square", count: 8, loading: 'eager' %}
|
||||
{% render "partials/media/grid.liquid", data:artists, icon: "microphone-2", title: "Artists", shape: "square", count: 8, loading: 'eager' %}
|
||||
```
|
||||
|
||||
{% endraw %}
|
||||
|
@ -134,13 +134,13 @@ layout: main
|
|||
---
|
||||
{% render "partials/header.liquid", meta: meta, page: page, nav: nav %}
|
||||
{{ content }}
|
||||
{% render "partials/now/media-grid.liquid", data:artists, icon: "microphone-2", title: "Artists", shape: "square", count: 8, loading: 'eager' %}
|
||||
{% render "partials/now/media-grid.liquid", data:albums, icon: "vinyl", title: "Albums", shape: "square", count: 8, loading: 'lazy' %}
|
||||
{% render "partials/now/album-releases.liquid", albumReleases:albumReleases %}
|
||||
{% render "partials/now/media-grid.liquid", data:books, icon: "books", title: "Books", shape: "vertical", count: 6, loading: 'lazy' %}
|
||||
{% render "partials/media/grid.liquid", data:artists, icon: "microphone-2", title: "Artists", shape: "square", count: 8, loading: 'eager' %}
|
||||
{% render "partials/media/grid.liquid", data:albums, icon: "vinyl", title: "Albums", shape: "square", count: 8, loading: 'lazy' %}
|
||||
{% render "partials/media/album-releases.liquid", albumReleases:albumReleases %}
|
||||
{% render "partials/media/grid.liquid", data:books, icon: "books", title: "Books", shape: "vertical", count: 6, loading: 'lazy' %}
|
||||
{% render "partials/now/links.liquid", links:links %}
|
||||
{% render "partials/now/media-grid.liquid", data:movies, icon: "movie", title: "Movies", shape: "vertical", count: 6, loading: 'lazy' %}
|
||||
{% render "partials/now/media-grid.liquid", data:tv, icon: "device-tv", title: "TV", shape: "vertical", count: 6, loading: 'lazy' %}
|
||||
{% render "partials/media/grid.liquid", data:movies, icon: "movie", title: "Movies", shape: "vertical", count: 6, loading: 'lazy' %}
|
||||
{% render "partials/media/grid.liquid", data:tv, icon: "device-tv", title: "TV", shape: "vertical", count: 6, loading: 'lazy' %}
|
||||
<p class="text-xs text-centered pt-6">This is a
|
||||
<a href="https://nownownow.com/about">now page</a>, and if you have your own site,
|
||||
<a href="https://nownownow.com/about">you should make one too</a>.</p>
|
||||
|
|
Reference in a new issue