feat: give projects a landing of their own
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
3 files changed
+80
-20
No files matched your search
+49
-19
@@ -267,7 +267,8 @@ footer a {
|
|||||||
.chrnx-journal-card,
|
.chrnx-journal-card,
|
||||||
.chrnx-podcast-card,
|
.chrnx-podcast-card,
|
||||||
.chrnx-related-card,
|
.chrnx-related-card,
|
||||||
.chrnx-release-card {
|
.chrnx-release-card,
|
||||||
|
.chrnx-project-card {
|
||||||
position: relative;
|
position: relative;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
border: 1px solid var(--chrnx-line);
|
border: 1px solid var(--chrnx-line);
|
||||||
@@ -342,7 +343,9 @@ footer a {
|
|||||||
.chrnx-podcast-card__link > .chrnx-responsive-portrait,
|
.chrnx-podcast-card__link > .chrnx-responsive-portrait,
|
||||||
.chrnx-related-card__link > .chrnx-responsive-portrait,
|
.chrnx-related-card__link > .chrnx-responsive-portrait,
|
||||||
.chrnx-release-card__art > .chrnx-responsive-portrait,
|
.chrnx-release-card__art > .chrnx-responsive-portrait,
|
||||||
.chrnx-release-detail__art > .chrnx-responsive-portrait {
|
.chrnx-release-detail__art > .chrnx-responsive-portrait,
|
||||||
|
.chrnx-project-card__art > .chrnx-responsive-portrait,
|
||||||
|
.chrnx-project-detail__art > .chrnx-responsive-portrait {
|
||||||
display: block;
|
display: block;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
@@ -876,14 +879,16 @@ html[data-theme="light"] .chrnx-home-music p {
|
|||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.chrnx-release-list {
|
.chrnx-release-list,
|
||||||
|
.chrnx-project-list {
|
||||||
display: grid;
|
display: grid;
|
||||||
gap: 1rem;
|
gap: 1rem;
|
||||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Grunge release cards: torn light, heavy rule, dirt in the corners. */
|
/* Grunge release cards: torn light, heavy rule, dirt in the corners. */
|
||||||
.chrnx-release-card {
|
.chrnx-release-card,
|
||||||
|
.chrnx-project-card {
|
||||||
position: relative;
|
position: relative;
|
||||||
isolation: isolate;
|
isolation: isolate;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
@@ -899,7 +904,8 @@ html[data-theme="light"] .chrnx-home-music p {
|
|||||||
transition: transform 160ms ease, border-color 160ms ease;
|
transition: transform 160ms ease, border-color 160ms ease;
|
||||||
}
|
}
|
||||||
|
|
||||||
.chrnx-release-card::after {
|
.chrnx-release-card::after,
|
||||||
|
.chrnx-project-card::after {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
z-index: -1;
|
z-index: -1;
|
||||||
inset: 0;
|
inset: 0;
|
||||||
@@ -909,18 +915,21 @@ html[data-theme="light"] .chrnx-home-music p {
|
|||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.chrnx-release-card:hover {
|
.chrnx-release-card:hover,
|
||||||
|
.chrnx-project-card:hover {
|
||||||
border-top-color: var(--chrnx-green);
|
border-top-color: var(--chrnx-green);
|
||||||
transform: translateY(-3px);
|
transform: translateY(-3px);
|
||||||
}
|
}
|
||||||
|
|
||||||
.chrnx-release-card__link {
|
.chrnx-release-card__link,
|
||||||
|
.chrnx-project-card__link {
|
||||||
display: block;
|
display: block;
|
||||||
color: inherit;
|
color: inherit;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.chrnx-release-card__art {
|
.chrnx-release-card__art,
|
||||||
|
.chrnx-project-card__art {
|
||||||
display: block;
|
display: block;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
margin-bottom: 1rem;
|
margin-bottom: 1rem;
|
||||||
@@ -930,7 +939,9 @@ html[data-theme="light"] .chrnx-home-music p {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.chrnx-release-card__cover,
|
.chrnx-release-card__cover,
|
||||||
.chrnx-release-card__fallback {
|
.chrnx-release-card__fallback,
|
||||||
|
.chrnx-project-card__cover,
|
||||||
|
.chrnx-project-card__fallback {
|
||||||
display: block;
|
display: block;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
@@ -938,7 +949,9 @@ html[data-theme="light"] .chrnx-home-music p {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.chrnx-release-card__fallback,
|
.chrnx-release-card__fallback,
|
||||||
.chrnx-release-detail__fallback {
|
.chrnx-release-detail__fallback,
|
||||||
|
.chrnx-project-card__fallback,
|
||||||
|
.chrnx-project-detail__fallback {
|
||||||
background-color: var(--chrnx-surface);
|
background-color: var(--chrnx-surface);
|
||||||
background-image:
|
background-image:
|
||||||
linear-gradient(132deg, transparent 0 46%, color-mix(in srgb, var(--chrnx-accent) 42%, transparent) 47% 50%, transparent 51%),
|
linear-gradient(132deg, transparent 0 46%, color-mix(in srgb, var(--chrnx-accent) 42%, transparent) 47% 50%, transparent 51%),
|
||||||
@@ -946,17 +959,21 @@ html[data-theme="light"] .chrnx-home-music p {
|
|||||||
radial-gradient(circle at 70% 28%, color-mix(in srgb, var(--chrnx-accent) 34%, transparent), transparent 52%);
|
radial-gradient(circle at 70% 28%, color-mix(in srgb, var(--chrnx-accent) 34%, transparent), transparent 52%);
|
||||||
}
|
}
|
||||||
|
|
||||||
.chrnx-release-card__title {
|
.chrnx-release-card__title,
|
||||||
|
.chrnx-project-card__title {
|
||||||
margin: 0 0 0.4rem;
|
margin: 0 0 0.4rem;
|
||||||
text-wrap: balance;
|
text-wrap: balance;
|
||||||
}
|
}
|
||||||
|
|
||||||
.chrnx-release-card__link:hover .chrnx-release-card__title {
|
.chrnx-release-card__link:hover .chrnx-release-card__title,
|
||||||
|
.chrnx-project-card__link:hover .chrnx-project-card__title {
|
||||||
color: var(--chrnx-green);
|
color: var(--chrnx-green);
|
||||||
}
|
}
|
||||||
|
|
||||||
.chrnx-release-card__status,
|
.chrnx-release-card__status,
|
||||||
.chrnx-release-detail__status {
|
.chrnx-release-detail__status,
|
||||||
|
.chrnx-project-card__status,
|
||||||
|
.chrnx-project-detail__status {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
color: var(--chrnx-muted);
|
color: var(--chrnx-muted);
|
||||||
font-family: var(--wp--preset--font-family--metadata);
|
font-family: var(--wp--preset--font-family--metadata);
|
||||||
@@ -992,7 +1009,8 @@ html[data-theme="light"] .chrnx-home-music p {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Album page. */
|
/* Album page. */
|
||||||
.chrnx-release-detail__head {
|
.chrnx-release-detail__head,
|
||||||
|
.chrnx-project-detail__head {
|
||||||
display: grid;
|
display: grid;
|
||||||
gap: clamp(1.5rem, 4vw, 3rem);
|
gap: clamp(1.5rem, 4vw, 3rem);
|
||||||
grid-template-columns: minmax(0, 20rem) minmax(0, 1fr);
|
grid-template-columns: minmax(0, 20rem) minmax(0, 1fr);
|
||||||
@@ -1000,11 +1018,13 @@ html[data-theme="light"] .chrnx-home-music p {
|
|||||||
margin-bottom: clamp(2rem, 5vw, 3.5rem);
|
margin-bottom: clamp(2rem, 5vw, 3.5rem);
|
||||||
}
|
}
|
||||||
|
|
||||||
.chrnx-release-detail__head.is-bare {
|
.chrnx-release-detail__head.is-bare,
|
||||||
|
.chrnx-project-detail__head.is-bare {
|
||||||
grid-template-columns: minmax(0, 22rem);
|
grid-template-columns: minmax(0, 22rem);
|
||||||
}
|
}
|
||||||
|
|
||||||
.chrnx-release-detail__art {
|
.chrnx-release-detail__art,
|
||||||
|
.chrnx-project-detail__art {
|
||||||
position: relative;
|
position: relative;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
border: 1px solid color-mix(in srgb, var(--chrnx-accent) 34%, var(--chrnx-line));
|
border: 1px solid color-mix(in srgb, var(--chrnx-accent) 34%, var(--chrnx-line));
|
||||||
@@ -1014,14 +1034,22 @@ html[data-theme="light"] .chrnx-home-music p {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.chrnx-release-detail__cover,
|
.chrnx-release-detail__cover,
|
||||||
.chrnx-release-detail__fallback {
|
.chrnx-release-detail__fallback,
|
||||||
|
.chrnx-project-detail__cover,
|
||||||
|
.chrnx-project-detail__fallback {
|
||||||
display: block;
|
display: block;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
object-fit: cover;
|
object-fit: cover;
|
||||||
}
|
}
|
||||||
|
|
||||||
.chrnx-release-detail__description {
|
.chrnx-release-detail__intro,
|
||||||
|
.chrnx-project-detail__intro {
|
||||||
|
min-width: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.chrnx-release-detail__description,
|
||||||
|
.chrnx-project-detail__description {
|
||||||
margin: 0.75rem 0 0;
|
margin: 0.75rem 0 0;
|
||||||
color: var(--chrnx-text);
|
color: var(--chrnx-text);
|
||||||
}
|
}
|
||||||
@@ -1134,6 +1162,7 @@ html[data-theme="light"] .chrnx-home-music p {
|
|||||||
@media (max-width: 720px) {
|
@media (max-width: 720px) {
|
||||||
|
|
||||||
.chrnx-release-detail__head,
|
.chrnx-release-detail__head,
|
||||||
|
.chrnx-project-detail__head,
|
||||||
.chrnx-track-meta {
|
.chrnx-track-meta {
|
||||||
grid-template-columns: minmax(0, 1fr);
|
grid-template-columns: minmax(0, 1fr);
|
||||||
}
|
}
|
||||||
@@ -1215,7 +1244,8 @@ html[data-theme="light"] .chrnx-home-music p {
|
|||||||
@media (max-width: 900px) {
|
@media (max-width: 900px) {
|
||||||
|
|
||||||
.chrnx-journal-stream__list,
|
.chrnx-journal-stream__list,
|
||||||
.chrnx-release-list {
|
.chrnx-release-list,
|
||||||
|
.chrnx-project-list {
|
||||||
grid-template-columns: 1fr;
|
grid-template-columns: 1fr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -17,7 +17,7 @@
|
|||||||
<!-- wp:group {"className":"chrnx-character-stage__content","layout":{"type":"constrained"}} -->
|
<!-- wp:group {"className":"chrnx-character-stage__content","layout":{"type":"constrained"}} -->
|
||||||
<div class="wp-block-group chrnx-character-stage__content">
|
<div class="wp-block-group chrnx-character-stage__content">
|
||||||
<!-- wp:heading --><h2 class="wp-block-heading"><?php echo esc_html__( 'Selected work', 'chrnx' ); ?></h2><!-- /wp:heading -->
|
<!-- wp:heading --><h2 class="wp-block-heading"><?php echo esc_html__( 'Selected work', 'chrnx' ); ?></h2><!-- /wp:heading -->
|
||||||
<!-- wp:chrnx/selected-work /-->
|
<!-- wp:paragraph --><p><?php echo esc_html__( 'Lo que sobrevive a la loquera nocturna, con su repo y su estado real.', 'chrnx' ); ?></p><!-- /wp:paragraph -->
|
||||||
</div>
|
</div>
|
||||||
<!-- /wp:group -->
|
<!-- /wp:group -->
|
||||||
<!-- wp:html --><div class="chrnx-character-stage__art"><?php echo chrnx_get_topic_portrait_markup( 'code', '', 'chrnx-section-portrait' ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Helper returns escaped, allowlisted markup. ?></div><!-- /wp:html -->
|
<!-- wp:html --><div class="chrnx-character-stage__art"><?php echo chrnx_get_topic_portrait_markup( 'code', '', 'chrnx-section-portrait' ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Helper returns escaped, allowlisted markup. ?></div><!-- /wp:html -->
|
||||||
|
|||||||
@@ -0,0 +1,30 @@
|
|||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* Title: Projects landing
|
||||||
|
* Slug: chrnx/projects-landing
|
||||||
|
* Categories: chrnx-projects
|
||||||
|
* Description: Honest introduction to the projects and every one that exists.
|
||||||
|
* Inserter: yes
|
||||||
|
*
|
||||||
|
* @package CHRNX
|
||||||
|
*/
|
||||||
|
?>
|
||||||
|
<!-- wp:group {"tagName":"section","className":"chrnx-projects-landing","layout":{"type":"constrained"}} -->
|
||||||
|
<section class="wp-block-group chrnx-projects-landing">
|
||||||
|
<!-- wp:group {"className":"chrnx-character-stage","layout":{"type":"constrained"}} -->
|
||||||
|
<div class="wp-block-group chrnx-character-stage">
|
||||||
|
<!-- wp:html --><div class="chrnx-character-stage__atmosphere" aria-hidden="true"><?php echo chrnx_get_atmosphere_markup( 'projects-grunge', 'chrnx-character-stage__backdrop' ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Helper returns escaped, allowlisted markup. ?></div><!-- /wp:html -->
|
||||||
|
<!-- wp:group {"className":"chrnx-character-stage__content","layout":{"type":"constrained"}} -->
|
||||||
|
<div class="wp-block-group chrnx-character-stage__content">
|
||||||
|
<!-- wp:heading {"level":2} --><h2 class="wp-block-heading"><?php echo esc_html__( 'Proyectos', 'chrnx' ); ?></h2><!-- /wp:heading -->
|
||||||
|
<!-- wp:paragraph --><p><?php echo esc_html__( 'Aquí va lo que mi cerebro tira en formato de código.', 'chrnx' ); ?></p><!-- /wp:paragraph -->
|
||||||
|
<!-- wp:paragraph --><p><?php echo esc_html__( 'Una noche me agarra la loquera y sale código. A veces sirve, a veces nomás me deja dormir. Lo que sobrevive lo dejo aquí, con su repo y su estado real, sin adornos.', 'chrnx' ); ?></p><!-- /wp:paragraph -->
|
||||||
|
</div>
|
||||||
|
<!-- /wp:group -->
|
||||||
|
<!-- wp:html --><div class="chrnx-character-stage__art"><?php echo chrnx_get_topic_portrait_markup( 'code', '', 'chrnx-projects-landing__portrait' ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Helper returns escaped, allowlisted markup. ?></div><!-- /wp:html -->
|
||||||
|
</div>
|
||||||
|
<!-- /wp:group -->
|
||||||
|
<!-- wp:heading {"level":3} --><h3 class="wp-block-heading"><?php echo esc_html__( 'Lo que existe', 'chrnx' ); ?></h3><!-- /wp:heading -->
|
||||||
|
<!-- wp:chrnx/project-list /-->
|
||||||
|
</section>
|
||||||
|
<!-- /wp:group -->
|
||||||
Reference in new issue
Block a user