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
11 changes: 11 additions & 0 deletions scripts/check.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,17 @@ for (const value of [
assert(html.includes(value), value);
}
assert.equal((html.match(/data-here-now-credit/g) || []).length, 2);
for (const page of [html, learnHtml, agentHtml]) {
const brandPosition = page.indexOf('class="brand-lockup"');
const creditPosition = page.indexOf(
'class="here-now-credit here-now-credit--header"',
);
const navPosition = page.indexOf('class="site-nav"');
assert(brandPosition < creditPosition && creditPosition < navPosition);
}
assert(
css.includes("grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);"),
);
assert(learnHtml.includes("How agent loops work"));
assert(agentHtml.includes("For AI agents"));
assert(css.includes(".loop-row"));
Expand Down
39 changes: 20 additions & 19 deletions site/agents/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,26 @@
<span class="brand-product">Loop Library</span>
</a>

<a
class="here-now-credit here-now-credit--header"
data-here-now-credit
href="https://here.now/r/signals"
target="_blank"
rel="noopener noreferrer"
aria-label="Hosted by here.now"
>
<img
class="here-now-credit__icon"
src="../assets/here-now-icon.svg"
alt=""
aria-hidden="true"
/>
<span class="here-now-credit__text">
<small>Hosted by</small>
<strong>here.now</strong>
</span>
</a>

<nav class="site-nav" aria-label="Primary navigation">
<a href="../#library">Loops</a>
<a href="../learn/">Learn</a>
Expand Down Expand Up @@ -140,25 +160,6 @@
<span class="theme-label theme-label-dark">Dark</span>
</button>
<a class="nav-cta" href="../#submit">Submit a loop</a>
<a
class="here-now-credit here-now-credit--header"
data-here-now-credit
href="https://here.now/r/signals"
target="_blank"
rel="noopener noreferrer"
aria-label="Hosted by here.now"
>
<img
class="here-now-credit__icon"
src="../assets/here-now-icon.svg"
alt=""
aria-hidden="true"
/>
<span class="here-now-credit__text">
<small>Hosted by</small>
<strong>here.now</strong>
</span>
</a>
</nav>
<nav class="mobile-site-nav" aria-label="Primary navigation on small screens">
<a href="../#library">Loops</a>
Expand Down
39 changes: 20 additions & 19 deletions site/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,26 @@
<span class="brand-product">Loop Library</span>
</a>

<a
class="here-now-credit here-now-credit--header"
data-here-now-credit
href="https://here.now/r/signals"
target="_blank"
rel="noopener noreferrer"
aria-label="Hosted by here.now"
>
<img
class="here-now-credit__icon"
src="./assets/here-now-icon.svg"
alt=""
aria-hidden="true"
/>
<span class="here-now-credit__text">
<small>Hosted by</small>
<strong>here.now</strong>
</span>
</a>

<nav class="site-nav" aria-label="Primary navigation">
<a href="#library" aria-current="page">Loops</a>
<a href="./learn/">Learn</a>
Expand Down Expand Up @@ -247,25 +267,6 @@
<span class="theme-label theme-label-dark">Dark</span>
</button>
<a class="nav-cta" href="#submit">Submit a loop</a>
<a
class="here-now-credit here-now-credit--header"
data-here-now-credit
href="https://here.now/r/signals"
target="_blank"
rel="noopener noreferrer"
aria-label="Hosted by here.now"
>
<img
class="here-now-credit__icon"
src="./assets/here-now-icon.svg"
alt=""
aria-hidden="true"
/>
<span class="here-now-credit__text">
<small>Hosted by</small>
<strong>here.now</strong>
</span>
</a>
</nav>
<nav class="mobile-site-nav" aria-label="Primary navigation on small screens">
<a href="#library" aria-current="page">Loops</a>
Expand Down
39 changes: 20 additions & 19 deletions site/learn/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,26 @@
<span class="brand-product">Loop Library</span>
</a>

<a
class="here-now-credit here-now-credit--header"
data-here-now-credit
href="https://here.now/r/signals"
target="_blank"
rel="noopener noreferrer"
aria-label="Hosted by here.now"
>
<img
class="here-now-credit__icon"
src="../assets/here-now-icon.svg"
alt=""
aria-hidden="true"
/>
<span class="here-now-credit__text">
<small>Hosted by</small>
<strong>here.now</strong>
</span>
</a>

<nav class="site-nav" aria-label="Primary navigation">
<a href="../#library">Loops</a>
<a href="./" aria-current="page">Learn</a>
Expand Down Expand Up @@ -137,25 +157,6 @@
<span class="theme-label theme-label-light">Light</span>
<span class="theme-label theme-label-dark">Dark</span>
</button>
<a
class="here-now-credit here-now-credit--header"
data-here-now-credit
href="https://here.now/r/signals"
target="_blank"
rel="noopener noreferrer"
aria-label="Hosted by here.now"
>
<img
class="here-now-credit__icon"
src="../assets/here-now-icon.svg"
alt=""
aria-hidden="true"
/>
<span class="here-now-credit__text">
<small>Hosted by</small>
<strong>here.now</strong>
</span>
</a>
<a class="nav-cta" href="../#submit">Submit a loop</a>
</nav>
<nav class="mobile-site-nav" aria-label="Primary navigation on small screens">
Expand Down
37 changes: 31 additions & 6 deletions site/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -141,10 +141,10 @@ code {
position: sticky;
z-index: 20;
top: 0;
display: flex;
display: grid;
grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
min-height: 64px;
align-items: center;
justify-content: space-between;
gap: 24px;
padding: 0 var(--page-pad);
border-bottom: 1px solid var(--ink);
Expand All @@ -154,6 +154,7 @@ code {

.brand-lockup {
display: flex;
justify-self: start;
align-items: center;
gap: 10px;
text-decoration: none;
Expand All @@ -180,10 +181,12 @@ code {

.site-nav {
display: flex;
justify-self: end;
align-items: center;
gap: clamp(16px, 2.5vw, 32px);
gap: clamp(12px, 1.6vw, 24px);
font-size: 0.86rem;
font-weight: 700;
white-space: nowrap;
}

.site-nav a {
Expand Down Expand Up @@ -333,6 +336,10 @@ code {
color: var(--light);
}

.here-now-credit--header {
justify-self: center;
}

.here-now-credit--footer .here-now-credit__icon {
width: 30px;
height: 30px;
Expand Down Expand Up @@ -1881,19 +1888,18 @@ code {
}

.site-header {
flex-wrap: wrap;
padding-top: 8px;
row-gap: 0;
}

.site-nav > a:not(.nav-cta):not(.here-now-credit) {
.site-nav > a:not(.nav-cta) {
display: none;
}

.mobile-site-nav {
display: flex;
grid-column: 1 / -1;
width: 100%;
flex: 0 0 100%;
align-items: center;
justify-content: center;
gap: clamp(28px, 8vw, 64px);
Expand Down Expand Up @@ -2111,6 +2117,25 @@ code {
}

@media (max-width: 620px) {
.site-header {
grid-template-columns: auto minmax(0, 1fr);
}

.here-now-credit--header {
grid-column: 1 / -1;
grid-row: 2;
padding-top: 6px;
}

.site-nav {
grid-column: 2;
grid-row: 1;
}

.mobile-site-nav {
grid-row: 3;
}

.brand-name {
display: none;
}
Expand Down
Loading