Skip to content

Commit

Permalink
update wasm. add version
Browse files Browse the repository at this point in the history
  • Loading branch information
alixander committed Sep 4, 2024
1 parent a0c1d3e commit 5e69fbd
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 3 deletions.
11 changes: 10 additions & 1 deletion src/css/hero.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,18 @@
#hero-text {
margin-top: 12px;
color: var(--steel-850);
text-align: center;
}

#hero-text-tagline {
font-size: 14px;
font-family: "Source Sans Pro Medium";
text-align: center;
}

#hero-text-version {
font-size: 12px;
margin-top: 0.4rem;
color: var(--steel-550);
}

#hero-left-drawing,
Expand Down
Binary file modified src/d2.wasm
Binary file not shown.
8 changes: 6 additions & 2 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,12 @@
/>
</picture>
<div id="hero-text">
An online runner to play, learn, and create with D2, the modern diagram
scripting language that turns text to diagrams.
<div id="hero-text-tagline">
An online runner to play, learn, and create with D2, the modern diagram
scripting language that turns text to diagrams.
</div>
<div id="hero-text-version">
</div>
</div>
</div>
<div id="hero-right-drawing">
Expand Down
3 changes: 3 additions & 0 deletions src/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ async function init() {
Layout.init();
Modal.init();

const versionDOM = document.getElementById("hero-text-version");
versionDOM.innerHTML = `d2 version: ${d2Version()}`;

// TODO defer load hero images all the way here
}

Expand Down

0 comments on commit 5e69fbd

Please sign in to comment.