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
5 changes: 2 additions & 3 deletions src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ import AppIcon from "../components/AppIcon.astro";
const play = document.createElement("button");
play.type = "button";
play.className = "home-film__play";
play.innerHTML = '<svg viewBox="0 0 24 24" aria-hidden="true"><path d="M8 5.5v13l11-6.5z"/></svg><span>Watch the two-minute film</span>';
play.setAttribute("aria-label", "Play video");
play.innerHTML = '<span class="home-film__play-icon" aria-hidden="true"><svg viewBox="0 0 24 24"><path d="M8 5.5v13l11-6.5z"/></svg></span>';
video.controls = false;
frame.append(play);
play.addEventListener("click", () => {
Expand All @@ -68,7 +69,6 @@ import AppIcon from "../components/AppIcon.astro";
});
})();
</script>
<p class="home-status">mdbase is in beta. Keep independent backups of important collections.</p>
</div></section>

<section id="files" class="chapter" data-scene="collection" aria-label="Files"><div class="chapter__inner">
Expand Down Expand Up @@ -135,7 +135,6 @@ the field visit.</code></pre>
<p>Create an account to open your first collection in the Editor. To sync a folder on your computer, install the desktop app. Apps receive no access until you approve them.</p>
<div class="chapter__actions home-actions"><a class="home-action home-action--primary" href="https://connect.mdbase.dev/signup">Create an account</a><a class="home-action" href="/downloads/">Download the desktop app</a></div>
<dl class="home-facts">
<div><dt>Status</dt><dd>Connect is in beta and has no availability guarantee. Service incidents are summarised on the <a href="/incidents/">incidents page</a>.</dd></div>
<div><dt>Source</dt><dd>The specification, Connect, Reader and Writer are open source under the MIT licence, <a href="https://github.com/mdbase-dev">on GitHub</a>.</dd></div>
<div><dt>Developers</dt><dd>Any app can work with a collection. Read the <a href="/sdk/">SDK documentation</a> and the <a href="/spec/">specification</a>.</dd></div>
</dl>
Expand Down
59 changes: 37 additions & 22 deletions src/styles/home.css
Original file line number Diff line number Diff line change
Expand Up @@ -399,13 +399,7 @@
mask-composite: intersect;
}

/* Status line, record file, app list and closing facts. */
#intro .chapter__inner > p.home-status {
margin-top: 1.4rem;
color: var(--color-text-muted);
font-size: 0.88rem;
}

/* Record file, app list and closing facts. */
.home-body .chapter code {
font-family: var(--mono);
font-size: 0.86em;
Expand Down Expand Up @@ -459,27 +453,48 @@
The backgrounds are the film's own canvas in each cut. */
.home-film video { display: block; width: 100%; height: auto; background: light-dark(#fff, oklch(18.7% 0.002 286)); }

/* The film's opening still, with the apps' primary button to start it. */
/* The film's opening still, with a centered play button covering the frame. */
.home-film__frame { position: relative; }
.home-film__play {
position: absolute;
bottom: 14px;
left: 14px;
display: inline-flex;
padding: 0.5rem 0.9rem 0.5rem 0.7rem;
align-items: center;
gap: 0.45rem;
color: var(--color-on-accent);
background: var(--color-accent);
inset: 0;
display: grid;
place-items: center;
padding: 0;
background: transparent;
border: 0;
border-radius: var(--radius-sm);
box-shadow: var(--elevation-low);
font: 500 0.88rem/1 var(--sans);
cursor: pointer;
}
.home-film__play:hover { background: var(--color-accent-strong); }
.home-film__play:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.home-film__play svg { width: 14px; height: 14px; fill: currentColor; }
.home-film__play-icon {
display: grid;
width: 56px;
height: 56px;
place-items: center;
color: var(--color-on-accent);
background: var(--color-accent);
border-radius: 999px;
box-shadow: var(--elevation-raised);
transition: background-color 140ms ease, transform 140ms ease;
}
.home-film__play:hover .home-film__play-icon {
background: var(--color-accent-strong);
transform: scale(1.05);
}
.home-film__play:focus-visible { outline: none; }
.home-film__play:focus-visible .home-film__play-icon {
outline: 2px solid var(--color-accent);
outline-offset: 3px;
}
.home-film__play svg {
width: 22px;
height: 22px;
fill: currentColor;
transform: translateX(1px);
}
@media (prefers-reduced-motion: reduce) {
.home-film__play-icon { transition: none; }
.home-film__play:hover .home-film__play-icon { transform: none; }
}

/* The opening chapter starts under the header so the film is in view without scrolling. */
@media (width > 820px) {
Expand Down